768 Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
12 Programming Examples
' the left.
' - CENTER sets the display reference to the center of the
' screen.
myScope.DoCommand(":TIMebase:REFerence CENTer")
' TRIGGER_SOURCE - Selects the channel that actually produces
' the TV trigger. Any channel can be selected.
myScope.DoCommand(":TRIGger:TV:SOURCe CHANnel1")
' TRIGGER_MODE - Set the trigger mode to, EDGE, GLITch,
' PATTern, CAN, DURation, IIC, LIN, SEQuence, SPI, TV,
' UART, or USB.
myScope.DoCommand(":TRIGger:MODE EDGE")
' TRIGGER_EDGE_SLOPE - Set the slope of the edge for the
' trigger to either POSITIVE or NEGATIVE.
myScope.DoCommand(":TRIGger:EDGE:SLOPe POSitive")
End Sub
'
' Extra()
' --------------------------------------------------------------
' The commands in this function are not executed and are shown
' for reference purposes only. To execute these commands, call
' this function from main.
'
Private Shared Sub Extra()
' 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.DoCommand(":RUN")
myScope.DoCommand(":STOP")
' VIEW_BLANK (not executed in this example):
' - VIEW turns on (starts displaying) an active channel or
' pixel memory.
' - BLANK turns off (stops displaying) a specified channel or
' pixel memory.
'
myScope.DoCommand(":BLANk CHANnel1")
myScope.DoCommand(":VIEW CHANnel1")
' TIME_MODE (not executed in this example) - Set the time base
' mode to MAIN, DELAYED, XY or ROLL.
'
myScope.DoCommand(":TIMebase:MODE MAIN")
End Sub
' Capture()
' --------------------------------------------------------------