
Query Usage
Command headers immediately followed by a question mark (?) are
queries. After receiving a query, the instrument interrogates the
requested function and places the response in its output queue. The
output message remains in the 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). For example, the logic
analyzer query
places the
current seconds per division full scale range for machine 1 in the output
queue. In BASIC, the input statement
ENTER XXX; Range
passes the value across the bus to the controller and places it in the
variable Range.
Query commands are used to
out how the instrument is currently
configured. They are also used to get results of measurements made by
the instrument. For example, the command
instructs the instrument to
place the X to 0 time in the output queue.
The output queue must be read before the next program message is sent.
or example, when you send the query
you
must follow that with an input statement. In BASIC, this is usually done
with an ENTER statement.
Sending another command before reading the result of the query will
cause the output buffer to be cleared and the current response to be lost.
This will also generate a “QUERY UNTERMINATED” error in the
error queue.
HP
1651B
Programming Reference
Introduction to Programming an Instrument
1-7
Содержание 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: ......