320 to 330: Connect the source output signal to the output
terminals.
340 to 380: Print results table header.
390 to 460: This is the main measurement lo op. Line 400 contains
two commands.
:SOURce:VOLT
sets the output level of the source.
*OPC?
is used to signal that the preceding command has nished
executing. To make an accurate measurement, the source output
must be allowed to settle. When the output has settled,
*OPC?
places
a 1 in the source Output Queue. The program waits at line 410 until
the 1 returned by
*OPC?
is entered.
Note that following each
OUTPUT
containing a query is an
ENTER
to
retrieve the queried value. If you do not use paired
OUTPUT
s and
ENTER
s, you can overwrite data in the instrument Output Queue and
generate instrument errors.
470 to 480: Disconnect output terminals of the instruments from the
unit under test, and end the program. All HP BASIC programs must
have END as the last statement of the main program.
Getting Started Programming 1-79