Specifications
Chapter 18 545
COM Interface Reference
How to read array data
18. COM Interface Reference
• When the data type is string:
Example 18-21 No specification of option parameters
Assume there are returned values ("Agilent, E4991A, 113,1.0") from "SCPI.Output
"*IDN?" kept in the queue.
Dim Val as String
SCPI.Output "*IDN?"
SCPI.Enter Val
If "SCPI.Enter Val" is executed here, the entire data is read as one string and substituted
into Val (Val = "Agilent, E4991A, 113,1.0"). At this point, the queue becomes empty.
• When the data type is variant:
Example 18-22 No specification of option parameters
Assume there are returned values ("1,2,3,4") of "SCPI.Output "DATA:RAW?" kept in
the queue.
Dim Val as Variant
SCPI.Output "DATA:RAW?"
SCPI.Enter Val
If "SCPI.Enter Val" is executed here, the entire data is read as one string and substituted
into Val (Val = "1,2,3,4"). At this point, the queue becomes empty.