HP 4155A/4156A SCPI Programming
Programming: Data Transfer
To Transfer Data to HP 4155A/4156A (Using User
Variable)
To transfer a user variable to HP 4155A/4156A, use DATA
j
TRACe subsystem
commands. A user variable consists of a name, unit, and numeric data.
Transferred user variable data can be used like other data variables in HP
4155A/4156A. You can perform calculations between measurement results
and transferred data, plot transferred data on GRAPH/LIST: GRAPHICS page,
or list transferred data on GRAPH/LIST: LIST page.
To transfer numeric data to the HP 4155A/4156A:
1. Dene the data transfer format by using :FORMat[:D
ATA] command.
For ASCII data transfer format, send
:FORM ASC
.
For REAL 64-bit length data transfer format, send
:FORM REAL,64
.
For REAL 32-bit length data transfer format, send
:FORM REAL,32
.
2. For REAL data transfer format, dene byte order by using
:FORMat:BORDer command.
For normal order, send
:FORM:BORD NORM
.
For swapped order, send
:FORM:BORD SWAP
.
3. Dene name of the user variable, unit (optional), and number of numeric
data by using the :PAGE:CHANnels:UVARiable:DEFine command.
You can also dene these parameters by using the :D
ATA:DEFine and
:DATA:UNIT command.
If user variable is already dened, you do not have to perform this step.
4. Transfer data by using :DATA
j
:TRACe:[:DATA] command.
4-27