AN2263 Freescale Semiconductor / Motorola, AN2263 Datasheet - Page 31

no-image

AN2263

Manufacturer Part Number
AN2263
Description
PC Master Software: Creation of Advanced Control Pages
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
End Sub
MOTOROLA
Else ' something failed
End If
' Signals & Statistics
succ = pcm.GetCurrentRecorderData_t(data, serNames, tbase, msg)
If succ Then
End If
ScheduleTime = Now + TimeValue("00:00:05")
Application.OnTime ScheduleTime, "RecordAndAnalyze"
Else ' something failed
End If
MsgBox (msg)
' clear columns
sht.Range("E:H").ClearContents
' returned array bounds
serCnt = UBound(data, 1)
valCnt = UBound(data, 2)
' timebase valid ?
If tbase > 0 Then
Else
End If
' fill X-axis column
For i = 0 To valCnt
Next i
' fill data
For s = 0 To serCnt
Next s
' returned array bounds
serCnt = UBound(data)
' fill data
For s = 0 To (serCnt \ 2)
Next s
MsgBox (msg)
sht.Cells(1, 5).Value = "time [sec]"
sht.Cells(1, 5).Value = "index"
tbase = 1
sht.Cells(i + 2, 5).Value = i * tbase
sht.Cells(1, s + 6).Value = serNames(s)
For i = 0 To valCnt
Next i
MSB = data(2 * s + 1)
LSB = data(2 * s)
If MSB >= 128 Then
Else
End If
sht.Cells(i + 2, s + 6).Value = data(s, i)
sht.Cells(s + 2, 1).Value = (256 * MSB + LSB - 65535) / 32768
sht.Cells(s + 2, 1).Value = (256 * MSB + LSB) / 32768
PC Master Software: Creation of Advanced Control Pages
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
Appendix C
AN2263/D
31

Related parts for AN2263