Example 10 OUTPUT XXX;":SELECT 2"
20 OUTPUT XXX;":AUTOSCALE"
25 WAIT 5
30 DIM Me$[200]
40 OUTPUT ;":MEASURE:SOURCE CHANNEL1;ALL?"
50 ENTER XXX;Me $
60 PRINT Me$
70 END
The three Xs (XXX) after the OUTPUT and ENTER statements in the above
example refer to the device address required for programming over either GPIB
or RS-232-C. Refer to chapter 1, "Introduction to Programming" for information
on initializing the interface.
Program Comments
Line 10 selects the oscilloscope in slot B.
Line 20 causes the oscilloscope to execute the AUTOSCALE command.
Line 25 causes the oscilloscope to wait 5 seconds (the time you allow
for the measurement to be complete).
Line 30 dimensions and reserves memory for the string array.
Line 40 causes the oscilloscope to make all the parametric
measurements of the Measure subsystem. The source for the
measurements is channel 1.
Line 50 enters data from the oscilloscope.
Line 60 causes the data to be printed either on controller screen or
hardcopy, depending on the output device chosen.
For more information on the specific oscilloscope commands, refer to
chapters 28 through 35 of this manual.
Oscilloscope Root Level Commands
AUToscale
27-4