Reference: HP Instrument BASIC
ASP-like Commands
DEFINE USER VARIABLE Directive
This directive denes an HP 4155A/4156A user variable, and transfers values
from an IBASIC variable to the user variable.
Directive syntax
DEFUSERVAR
user variable name
,
no of points
,
ibasic variable name
2
,
unit
3
Directive parameter
Parameter Type Explanation
user variable name
string user variable name that you want to dene.You must enclose the name
with single quotes or double-double quotes.
no of points
numeric number of data for the user variable
ibasic variable name
string name of numeric variable or numeric array of IBASIC program. The data
in this variable will be transferred to the user variable
.
unit
string unit of user variable.You must enclose the unit with single quotes or
double-double quotes.
Example
EXECUTE("DEFUSERVAR 'U_var',101,Vth,'V'")
2-36