Query Command - HP 54620A Programmer's Manual

Logic analyzer
Hide thumbs Also See for 54620A:
Table of Contents

Advertisement

Introduction to Programming

Query command

Query command
Command headers immediately followed by a question mark (?) are queries.
After receiving a query, 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 answer is
transmitted across the bus to the designated listener (typically a controller).
For example, the query :TIMebase:RANGE? places the current time base
setting in the output queue. In HP BASIC, the controller input statement:
ENTER < device address > ;Range
passes the value across the bus to the controller and places it in the variable
Range.
Query commands are used to find out how the instrument is currently
configured. They are also used to get results of measurements made by the
instrument. For example, the command :MEASure:PERiod? instructs the
instrument to measure the period of the current measurement source
channel and places the result in the output queue.
The output queue must be read before the next program message is sent. For
example, when you send the query :MEASure:PERiod? you must follow that
query with an input statement. In HP BASIC, this is usually done with an
ENTER statement immediately followed by a variable name. This statement
reads the result of the query and places the result in a specified variable.
Read the Query Result First
Sending another command or query before reading the result of a query causes
the output buffer to be cleared and the current response to be lost. This also
generates a query interrupted error in the error queue.
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

54620c

Table of Contents