Getting Started | 2 |
Using Other Oscilloscope Setup Commands
A typical oscilloscope setup would set the vertical range and offset voltage, the horizontal range, delay time, delay reference, trigger mode, trigger level, and slope. An example of the commands that might be sent to the oscilloscope are:
myScope.WriteString “:CHANNEL1:PROBE 10" myScope.WriteString “:CHANNEL1:RANGE 16" myScope.WriteString “:CHANNEL1:OFFSET 1.00" myScope.WriteString “:TIMEBASE:MODE NORMAL" myScope.WriteString “:TIMEBASE:RANGE
Vertical is set to 16 V
Example Oscilloscope Setup Code
This program demonstrates the basic command structure used to program the oscilloscope.
'Initialize the instrument interface to a known state. myScope.IO.Clear
'Initialize the instrument to a preset state. myScope.WriteString "*RST"
'Set the time base mode to normal with the horizontal time at 50 ms/div
'with 0 s of delay referenced at the center of the graticule.
myScope.WriteString ":TIMEBASE:RANGE | ' Time base to 50 us/div. | |
myScope.WriteString | ":TIMEBASE:DELAY 0" | ' Delay to zero. |
myScope.WriteString | ":TIMEBASE:REFERENCE CENTER" ' Display ref. at center. |
'Set the vertical range to 1.6 volts full scale with center screen at
'
myScope.WriteString ":CHANNEL1:PROBE 10" | ' Probe attenuation to 10:1. | |||
myScope.WriteString ":CHANNEL1:RANGE 1.6" | ' Vert rng1.6 | V full scale. | ||
myScope.WriteString | ":CHANNEL1:OFFSET | ' | Offset to | |
myScope.WriteString | ":CHANNEL1:COUPLING DC" | ' | Coupling to | DC. |
'Configure the instrument to trigger at
'triggering.
myScope.WriteString ":TRIGGER:SWEEP NORMAL" | ' Normal triggering. | ||
myScope.WriteString ":TRIGGER:LEVEL | ' Trigger level to | ||
myScope.WriteString | ":TRIGGER:SLOPE POSITIVE" | ' | Trigger on pos. slope. |
' Configure the instrument for normal acquisition. | |||
myScope.WriteString | ":ACQUIRE:TYPE NORMAL" | ' | Normal acquisition. |
Agilent 6000 Series Oscilloscopes Programmer’s Quick Start Guide | 21 |