7-6 Agilent 4155B/4156B User’s Guide Vol.2, Edition 5
Data Variable and Analysis Function
Data Variable
User Variable
A user variable is a data variable that is a numeric list, which is passed via GPIB
commands of PAGE:CHANnels:UVARiable and TRACe|DATA subsystems from
an external computer or the Internal IBASIC. For information about the
PAGE:CHANnels:UVARiable and TRACe|DATA subsystems, refer to GPIB
Command Reference.
You can perform calculations between measurement results and the numeric list, or
plot the numeric list on the GRAPH/LIST: GRAPHICS screen.
You can define up to six user variables. A user variable consists of the following:
Calculation between variables of different length
If you perform calculation between user variables, or between a user variable and a
measurement data variable, and the number of data are different, the extra data in
the longer variable are invalid.
Example
Following IBASIC program defines a user variable that has 5 data elements:
10 ASSIGN @Hp4155 TO 800
20 OUTPUT @Hp4155;":FORM:DATA ASC"
30 OUTPUT @Hp4155;":TRAC:DEF 'UVAR1',5"
40 OUTPUT @Hp4155;":TRAC:DATA 'UVAR1',1.1,1.2,1.3,1.4,1.5"
50 END
20 Format of data to be transferred is ASCII format.
30 Defines the name of user variable and number of data.
40 Transfers the data.
user variable name must start with alphabet character and can consist of
maximum six alphanumeric characters. Name must be
unique. Name is case sensitive. For example, VTH is
different from Vth.
data numeric list.
unit Optional. Length: 1 to 6 characters.
Valid characters: any characters.