Query Command - Agilent Technologies 54621A Programmer's Manual

Mixed-signal oscilloscopes
Hide thumbs Also See for 54621A:
Table of Contents

Advertisement

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:RISETIME? instructs the
instrument to measure the rise time of your waveform 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:RISETIME? 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 clears the
output buffer and the current response. It also generates a query interrupted error
in the error queue.
Introduction to Programming
Query Command
1-9

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

54624a54622a54641a54621d54622d54641d ... Show all

Table of Contents