User`s guide
Agilent 4155C/4156C User’s Guide Vol.2, Edition 6 8-7
Support Functions
User Function and User Variable
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.










