Agilent Technologies InfiniiVision 5000 Series Programmer's Manual page 695

Hide thumbs Also See for InfiniiVision 5000 Series:
Table of Contents

Advertisement

ErrorHandler:
End Sub
Private Sub DoCommand(command As String)
ErrorHandler:
End Sub
Private Function DoCommandIEEEBlock(command As String, _
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
' Set up output file:
strPath = "c:\scope\data\waveform_data.csv"
' Open file for output.
Open strPath For Output Access Write Lock Write As hFile
' Output waveform data in CSV format.
Dim lngDataValue As Long
For lngI = 10 To lngNumBytes - 2
lngDataValue = CLng(byteArray(lngI))
' Write time value, voltage value.
Print #hFile, _
Format(dblXOrigin + lngI * dblXIncrement, "Scientific") + _
", " + _
FormatNumber((lngDataValue - dblYReference) * dblYIncrement + _
dblYOrigin)
Next lngI
' Close output file.
Close hFile
' Close file.
MsgBox "Waveform format BYTE data written to " + _
"c:\scope\data\waveform_data.csv."
Exit Sub
MsgBox "*** Error : " + Error, vbExclamation
End
On Error GoTo ErrorHandler
Call ivprintf(id, command + vbLf)
CheckForInstrumentErrors command
Exit Sub
MsgBox "*** Error : " + Error, vbExclamation
End
lngBlockSize As Long)
On Error GoTo ErrorHandler
' Send command part.
Programming Examples
' Skip past 10-byte header.
12
695

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents