Keysight E5260/E5270 Programming Guide, Edition 4
2- 25
Remote Mode Functions
Program Memory
To call programs
from a memory
program
A memory program can invoke another memory program by storing the DO or RU
command in the memory program. Up to eight levels of nesting are available. The
first level is always the DO or RU command sent by the external computer.
To execute
programs
Send the RU or DO command to execute the memory program.
•
OUTPUT @E5270;”RU 1,5”
This example executes the programs numbered 1 through 5 sequentially. These
programs must be stored in the memory.
•
OUTPUT @E5270;”DO 1,2,3,4,5”
This example executes programs 1, 2, 3, 4, and 5 in this order. These programs
must be stored in the memory. A maximum of eight numbers can be specified.
To use variables
You can use variables in the memory programs. To enter the value to the variable,
send the VAR command. If the variable is referred by multiple programs or
commands, set or change the value carefully so that the program works fine without
errors. Format of the variable is %
tn
(
t
: integer I or real R,
n
: integer, 1 to 99).
In the following example, the first line stores a program (program 99) which uses
the
%I50
variable. The second line enters 2 to
%I50
, and executes the program 99.
OUTPUT @E5270;”ST99;CN%I50;DV%I50,0,2;TI%I50;CL%I50;END”
OUTPUT @E5270;”VAR0,50,2;DO99”
To read programs
To read the program numbers of the memory programs, send the LST? command
without a command parameter.
To read the contents of a memory program, send the LST? command with the
program number as shown below. Up to 3000 commands can be read by one
command execution.
OUTPUT @E5270;”LST?
100
”
To delete
programs
To delete all memory programs, send the SCR command without a parameter.
To delete a memory program, send the SCR command with the program number as
shown below.
OUTPUT @E5270;”SCR
100
”
NOTE
Turning off the instrument also clears the program memory. The device clear and
*RST commands do not clear the program memory.
Summary of Contents for E5260 Series
Page 1: ...Keysight Technologies E5260 E5270 Series of Parametric Measurement Solutions Programming Guide...
Page 3: ...User s Guide B2900 9001x xxxx 201x Edition x...
Page 13: ...1 Programming Basics...
Page 63: ...2 Remote Mode Functions...
Page 108: ...2 46 Keysight E5260 E5270 Programming Guide Edition 4 Remote Mode Functions Initial Settings...
Page 109: ...3 Programming Examples...
Page 185: ...4 Command Reference...
Page 335: ...5 Error Messages...
Page 349: ......