Programming
3
Keysight 53147A/148A/149A Operating and Programming Guide
169
Overview of Response Message Formats
Response Messages
Response messages are data sent from the instrument to a computer in response
to a query. A query is a command followed by a question mark. Queries are used
to find out how the instrument is currently configured and to transfer data from
the instrument to the computer.
After receiving a query, the instrument interrogates the requested configuration
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 GPIB or the serial interface to the computer. You read the
message by using some type of enter statement that includes the device address
and an appropriate variable. Use a print statement to display the message. The
following BASIC example illustrates how to query the instrument and display
the message:
10 OUTPUT 703;":ROSC:SOUR?"
20 ENTER 703; A$
30 PRINT A$
40 END
Response Message Syntax
shows the simplified syntax of a Response Message. Response
messages may contain both commas and semicolon separators. When a single
query command returns multiple values, a comma is used to separate each item.
When multiple queries are sent in the same program message, the groups of data
corresponding to each query are separated by a semicolon. Note that a
<new
line> ^END
is always sent as a response message terminator.
,
response data
<new line>
^END
;
Содержание 53147A
Страница 1: ...Keysight 53147A 148A 149A Microwave Frequency Counter Power Meter DVM Operating and Programming Guide ...
Страница 20: ...20 Keysight 53147A 148A 149A Operating and Programming Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Страница 310: ...312 Keysight 53147A 148A 149A Operating and Programming Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...