
Example Program
This program demonstrates the basic command structure used to program
the HP
10 CLEAR XXX
instrument interface
20 OUTPUT XXX;":SYSTEM:HEADER ON"
headers on
30 OUTPUT XXX;" :SYSTEM:LDNGFORM ON"
on
40 OUTPUT XXX;" :MMEM:LOAD:CONFIG 'TEST-E'"
configuration file
50 OUTPUT
FDRMAT.l"
Format menu for machine 1
60 OUTPUT
SINGLE"
run mode
70 OUTPUT
the measurement
Program Overview
Line 10
initializes the instrument interface to a known state
20 and 30 turn the headers and
on.
Line
40 loads the configuration
“TEST-E” from the disc drive.
Line
50 displays the Format menu for
1.
Lines
60 and 70 tell the analyzer to run the measurement configured by
the file “TEST-E” one time.
Receiving Information
After receiving a query (command header followed by a question mark),
from the instrument
the instrument interrogates the requested function and places the answer
in its output queue. The answer remains in the output queue until it is
read or another command is issued. When read, the message is
transmitted across the bus to the designated listener (typically a
controller). The input statement for receiving a response message from
an instrument’s output queue typically has two parameters; the device
address and a format specification for handling the response message.
For example, to read the result of the query command
:SYSTEM:LONGFORM? you could execute the BASIC statement:
ENTER
Setting
where XXX represents the address of your device. This would enter the
current setting for the
command in the numeric variable Setting.
introduction to Programming an Instrument
1-12
HP
Programming Reference
Содержание 1650B
Страница 2: ......
Страница 16: ......
Страница 40: ......
Страница 48: ......
Страница 58: ......
Страница 74: ......
Страница 76: ...System Commands 6 2 Figure 6 l System Commands Syntax Diagram HP 1650B HP 1651B Programming Reference ...
Страница 112: ......
Страница 128: ......
Страница 134: ......
Страница 160: ......
Страница 184: ... L h E I Figure 13 1 SLlSt Subsystem Syntax Diagram SLIST Subsystem 13 2 HP 165081HP Is5 B Programming Reference ...
Страница 185: ...Figure 13 l SLlSt Subsystem Syntax Diagram continued HP 1650B HP 16518 Programming Reference SLIST Subsystem 13 3 ...
Страница 210: ......
Страница 236: ......
Страница 282: ......
Страница 318: ......
Страница 336: ......
Страница 346: ......