Chapter 3 Programming Your Counter for Remote Operation
Overview of Response Message Formats
Programming Guide
3-21
3
Overview of Response Message Formats
Response Messages
Response messages are data sent from the Counter 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 Counter is currently configured and
to transfer data from the Counter to the computer.)
After receiving a query, the Counter 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 HP-IB 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
HP BASIC example illustrates how to query the Counter and display the
message:
10 OUTPUT 703;":ROSC:SOUR?"
20 ENTER 703; A$
30 PRINT A$
40 END
Response Message Syntax
Figure 3-9 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.
Summary of Contents for 53150A Series
Page 1: ... Programming Guide HP 53150A 151A 152A Microwave Frequency Counter ...
Page 2: ......
Page 10: ...Contents x Programming Guide ...
Page 11: ...1 Before You Start ...
Page 20: ...Chapter 1 Before You Start Related Documentation 1 10 Programming Guide 1 ...
Page 21: ...2 Command Summary A Quick Reference ...
Page 41: ...3 Programming Your Counter for Remote Operation ...
Page 101: ...4 Command Reference A Dictionary ...
Page 162: ...Chapter 4 Command Reference Common Commands 4 62 Programming Guide 4 ...
Page 163: ...5 Errors ...
Page 174: ...Chapter 5 Errors Error Types 5 12 Programming Guide 5 ...
Page 184: ......
Page 186: ... Manual Part Number 53150 90002 Printed in U S A NOVEMBER 1997 ...