HP Sander 16500C manual Multiple Queries, Definite-length Block Response Data

Models: Sander 16500C

1 252
Download 252 pages 12.2 Kb
Page 36
Image 36

Introduction to Programming

Multiple Queries

For example, for transmitting 80 bytes of data, the syntax would be:

Figure 1-2

Definite-length Block Response Data

The "8" states the number of digits that follow, and "00000080" states the number of bytes to be transmitted, which is 80.

Example

Multiple Queries

You can send multiple queries to the system 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.

You can read the result of the query :SYSTEM:HEADER?;LONGFORM? into the string variable Results$ with the BASIC command:

ENTER XXX; Results$

When you read the result of multiple queries into string variables, each response is separated by a semicolon.

1–22

Page 36
Image 36
HP Sander 16500C manual Multiple Queries, Definite-length Block Response Data