User`s guide
2-13
Programming Getting Started
Multiple Queries
Multiple Queries
You can send multiple queries to the instrument within a single program
message, but you must also read them back within a single program message.
This can be accomplished by either reading them back into a string variable or
into multiple numeric variables. For example, you could read the result of the
query :TIMEBASE:RANGE?;DELAY? into the string variable Results$ with the
command:
ENTER 707;Results$
When you read the result of multiple queries into string variables, each response
is separated by a semicolon. For example, the response of the query
:TIMEBASE:RANGE?;DELAY? would be:
<range_value>; <delay_value>
Use the following program message to read the query
:TIMEBASE:RANGE?;DELAY? into multiple numeric variables and then display
them:
ENTER 707;Result1,Result2
PRINT 707;Result1,Result2
Instrument Status
Status registers track the current status of the instrument. By checking the
instrument status, you can find out whether an operation has been completed,
whether the instrument is receiving triggers, and more. Chapter 6, “Status
Reporting” explains how to check the status of the instrument.