HP 4155A/4156A SCPI Programming
Programming: Data Transfer
To Read HP 4155/56 Measurement Data
1. Send
:DATA?
query command to get data variable values (output data,
measurement data, user function values) or read-out function values from
HP 4155/56 to IBASIC variables.
Example
Example 1.
To get measurement data, then store it in a data array:
10 DIM I3(1:501)
20 !
30 ASSIGN @Hp4155 TO 717
40 !
50 OUTPUT @Hp4155;":FORM:DATA ASC"
60 !
70 OUTPUT @Hp4155;":DATA? 'I3'"
80 ENTER @Hp4155;I3(*)
90 !
100 END
Line Number Description
30 Assigns I/O path to control HP 4155A/4156A.
50 Species ASCII data transfer format.
70 to 80 Gets the values of data variable
I3
.
Example 2.
To get slope of LINE1 for Y2 axis curve on GRAPH/LIST: GRAPHICS page:
10 ASSIGN @Hp4155 TO 717
20 !
30 OUTPUT @Hp4155;":DATA? '@L1G2'"
40 ENTER @Hp4155;Slope
50 !
60 PRINT Slope
70 END
Line Number Description
10 Assigns I/O path to control HP 4155A/4156A.
30 to 40 Gets slope of LINE1 for Y2 axis curve on GRAPH/LIST: GRAPHICS page.
4-26