Multiple queries
You can send multiple queries to the instrument in a single program message.
When sending multiple queries in this way, you must then read them back in
a single program message. You can do this 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:
ENTER 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.
Programming Getting Started
Multiple queries
34
Содержание 54620A
Страница 6: ...6 ...
Страница 9: ...1 Introduction to Programming ...
Страница 21: ...2 Programming Getting Started ...
Страница 35: ...3 Programming over HP IB ...
Страница 40: ...40 ...
Страница 41: ...4 Programming over RS 232 C ...
Страница 48: ...48 ...
Страница 49: ...5 Programming and Documentation Conventions ...
Страница 53: ...Programming and Documentation Conventions The command tree 53 ...
Страница 60: ...60 ...
Страница 61: ...6 Status Reporting ...
Страница 63: ...Status Reporting Data Structures Figure 4 Status Reporting 63 ...
Страница 68: ...68 ...
Страница 69: ...7 Installing and Using the Programmer s Reference ...
Страница 76: ...76 ...
Страница 77: ...8 Programmer s Quick Reference ...