User`s guide
2-6
Programming Getting Started
Example Program
Example Program
This program demonstrates the basic command structure used to program the
oscilloscope.
10 CLEAR 707 ! Initialize instrument interface
20 OUTPUT 707;"*RST" ! Initialize to preset state
30 OUTPUT 707;":TIMEBASE:RANGE 5E-4" ! Time base to 50 us/div
40 OUTPUT 707;":TIMEBASE:DELAY 0" ! Delay to zero
50 OUTPUT 707;":TIMEBASE:REFERENCE CENTER" ! Display reference at center
60 OUTPUT 707;":CHANNEL1:PROBE 10" ! Probe attenuation to 10:1
70 OUTPUT 707;":CHANNEL1:RANGE 1.6" ! Vertical range to 1.6 V full scale
80 OUTPUT 707;":CHANNEL1:OFFSET -.4" ! Offset to -0.4
90 OUTPUT 707;":CHANNEL1:COUPLING DC" ! Coupling to DC
100 OUTPUT 707;":TRIGGER:SWEEP NORMAL" ! Normal triggering
110 OUTPUT 707;":TRIGGER:LEVEL -.4" ! Trigger level to -0.4
120 OUTPUT 707;":TRIGGER:SLOPE POSITIVE" ! Trigger on positive slope
130 OUTPUT 707;":ACQUIRE:TYPE NORMAL" ! Normal acquisition
140 END
• Line 10 initializes the instrument interface to a known state.
• Line 20 initializes the instrument to a preset state.
• Lines 30 through 50 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.
• Lines 60 through 90 set the vertical range to 1.6 volts full scale with center
screen at -0.4 volts with 10:1 probe attenuation and DC coupling.
• Lines 100 through 120 configure the instrument to trigger at -0.4 volts with
normal triggering.
• Line 130 configures the instrument for normal acquisition.