TDS200/1000/2000 Series Oscilloscope Programmer Manual
4−1
Programming Example
The following series of commands and queries illustrate many of the
most common commands and techniques.
To use these commands and queries over RS232, you will need to
use a communications program on your computer, such as tip in the
Unix environment, or Hyperterminal in the Microsoft Windows
environment.
To use these commands and queries over GPIB, you will need to use
a program or routines that interface to the GPIB hardware in your
computer. This software is usually supplied by the GPIB hardware
manufacturer.
In these examples, data sent from the controller computer to the
oscilloscope is prefaced with the > symbol. Replies from the
oscilloscope have no preface.
> rem "Check for any messages, and clear them from the queue."
> *esr?
128
> allev?
:ALLEV 401,"Power on; "
> rem "Set the scope to the default state."
> factory
> rem "Set the scope parameters that differ from the defaults."
> ch1:volts 2.0
> hor:main:scale 100e−6
> trig:main:level 2.4
> rem "Start a single sequence acquisition."
> acquire:stopafter sequence
> acquire:state on
> rem "Wait for the acquisition to complete."
> rem "Note: your controller program time−out must be set long
enough to handle the wait."
> *opc?
1