Agilent Technologies InfiniiVision 7000A Series Programmer's Manual page 879

Table of Contents

Advertisement

Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide
Private Shared Sub Initialize()
Dim strResults As StringBuilder
' RESET - This command puts the oscilloscope into a known
' state.
This statement is very important for programs to
' work as expected.
' commands are initialized by *RST.
' reinitialize them unless the default setting is not suitable
' for your application.
' Reset the to the defaults.
oscp.DoCommand("*RST")
' Clear the status data structures.
oscp.DoCommand("*CLS")
' IDN - Ask for the device's *IDN string.
strResults = oscp.DoQueryString("*IDN?")
' Display results.
Console.Write("Result is: {0}", strResults)
' AUTOSCALE - This command evaluates all the input signals
' and sets the correct conditions to display all of the
' active signals.
oscp.DoCommand(":AUToscale")
' CHANNEL_PROBE - Sets the probe attenuation factor for the
' selected channel.
' 0.1 to 1000.
oscp.DoCommand(":CHANnel1:PROBe 10")
' CHANNEL_RANGE - Sets the full scale vertical range in volts.
' The range value is eight times the volts per division.
oscp.DoCommand(":CHANnel1:RANGe 8")
' TIME_RANGE - Sets the full scale horizontal time in seconds.
' The range value is ten times the time per division.
oscp.DoCommand(":TIMebase:RANGe 2e-3")
' TIME_REFERENCE - Possible values are LEFT and CENTER:
'
- LEFT sets the display reference one time division from
'
the left.
'
- CENTER sets the display reference to the center of the
'
screen.
oscp.DoCommand(":TIMebase:REFerence CENTer")
' TRIGGER_SOURCE - Selects the channel that actually produces
' the TV trigger.
oscp.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.
oscp.DoCommand(":TRIGger:MODE EDGE")
' TRIGGER_EDGE_SLOPE - Set the slope of the edge for the
' trigger to either POSITIVE or NEGATIVE.
Most of the following initialization
It is not necessary to
The probe attenuation factor may be from
Any channel can be selected.
Programming Examples
879
12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents