Agilent Technologies InfiniiVision 5000 Series Programmer's Manual page 747

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

Advertisement

VisaComError:
End Sub
'
' Capture
' -------------------------------------------------------------------
' We will capture the waveform using the digitize command.
' -------------------------------------------------------------------
Private Sub Capture()
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
' TRIGGER_EDGE_SLOPE - Sets the slope of the edge for the trigger.
' Set the slope to positive.
myScope.WriteString ":TRIGGER:EDGE:SLOPE POSITIVE"
' The following commands are not executed and are shown for reference
' purposes only.
To execute these commands, uncomment them.
' RUN_STOP - (not executed in this example)
'
- RUN starts the acquisition of data for the active waveform
'
display.
'
- STOP stops the data acquisition and turns off AUTOSTORE.
' myScope.WriteString ":RUN"
' myScope.WriteString ":STOP"
' VIEW_BLANK - (not executed in this example)
'
- VIEW turns on (starts displaying) a channel or pixel memory.
'
- BLANK turns off (stops displaying) a channel or pixel memory.
' myScope.WriteString ":BLANK CHANNEL1"
' myScope.WriteString ":VIEW CHANNEL1"
' TIMEBASE_MODE - (not executed in this example)
' Set the time base mode to MAIN, DELAYED, XY, or ROLL.
' Set time base mode to main.
' myScope.WriteString ":TIMEBASE:MODE MAIN"
Exit Sub
MsgBox "VISA COM Error:" + vbCrLf + Err.Description
On Error GoTo VisaComError
' AQUIRE_TYPE - Sets the acquisition mode, which can be NORMAL,
' PEAK, or AVERAGE.
myScope.WriteString ":ACQUIRE:TYPE NORMAL"
' AQUIRE_COMPLETE - Specifies the minimum completion criteria for
' an acquisition.
The parameter determines the percentage of time
' buckets needed to be "full" before an acquisition is considered
' to be complete.
myScope.WriteString ":ACQUIRE:COMPLETE 100"
' DIGITIZE - Used to acquire the waveform data for transfer over
' the interface.
Sending this command causes an acquisition to
' take place with the resulting data being placed in the buffer.
Programming Examples
' Start data acquisition.
' Stop the data acquisition.
' Turn channel 1 off.
' Turn channel 1 on.
12
747

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents