Specifications

548 Chapter 18
COM Interface Reference
How to read array data
Aim: Skipping data and emptying the queue
Basically, regardless of the specified data type of the variable, specifying only "*" as the
option parameter and executing the command with the
Enter method cancels all of the
data, and the queue becomes empty.
When the data type is numeric:
Example 18-26 Specifying option parameter “*” only
Assume there are returned values ("1,2,3,4") of "SCPI.Output "DATA:RAW?" kept in
the queue.
Dim Dummy as Double
SCPI.Output "DATA:RAW?"
SCPI.Enter Dummy, "*"
When SCPI.Output Dummy "*" is executed, all of the data is cancelled and the queue
becomes empty.
When the data type is string:
Example 18-27 Specifying option parameter “*” only
Assume there are returned values ("Agilent, E4991A, 113,1.0") from "SCPI.Output
"*IDN?" kept in the queue.
Dim Dummy as String
SCPI.Output "*IDN?"
SCPI.Enter Dummy, "*"
When SCPI.Output Dummy "*" is executed, all of the data is cancelled and the queue
becomes empty.
When the data type is variant:
Example 18-28 Specifying option parameter “*” only
Assume there are returned values ("1,2,3,4") of "SCPI.Output "DATA:RAW?" kept in
the queue.
Dim Dummy as Variant
SCPI.Output "DATA:RAW?"
SCPI.Enter Dummy, "*"
When "SCPI.Output Dummy "*"is executed, all of the data is cancelled and the queue
becomes empty.