Keysight E5260/E5270 Programming Guide, Edition 4 4- 129
Command Reference
Command Reference
VA R
This command defines the Keysight E5260/E5270 internal variable, and sets the
value. The variable name is automatically assigned by using the parameters you
specify.
Syntax VAR type,n,value
Parameters type : Variable type. Integer expression. 0 or 1.
0: Integer variable. Variable name will be %In.
1: Real variable. Variable name will be %Rn.
n : Number n added to the variable name. Integer expression. 0 to 99.
value : Value entered in the variable. Numeric value. The value must be 6
digits or less. Available values are as follows:
For integer variables: -999999 to 999999
For real variables: -9999.9 to 9999.9
Example
Statements
OUTPUT @E5270;"ST1;CN1;DV1,0,%R99,1E-4;TI1,0"
OUTPUT @E5270;"END"
OUTPUT @E5270;"VAR 1,99,2.5"
This example sets 2.5 to the real variable %R99.
VAR?
Returns the value of the variable set by the VAR command.
Syntax VAR? type,n
Parameters type : Variable type. Integer expression. 0 or 1.
0: Integer variable. For the variable %In.
1: Real variable. For the variable %Rn.
n : Number n added to the variable name. Integer expression. 0 to 99.
Query Response
value<CR/LF^EOI>
Example
Statements
OUTPUT @E5270;"VAR? 1,99"
ENTER @E5270;A$
This example reads the %R99 real variable value.