15-4 Common Commands Models 2500 and 2502 User’s Manual
*OPC programming example
The command sequence in Table 15-2 will perform 10 measurements. After the measure-
ments are completed (in approximately 10 seconds), an ASCII “1” will be placed in the
output queue and displayed on the computer CRT. Note that additional codes must be
added to query the instrument for the presence of the ASCII “1” in the output queue.
*OPT? — option query Return list of installed options
When *OPT? is sent, Model 2500 returns a list of any installed options.
*SAV <NRf> — save Save present setup in memory
*RCL <NRf> — recall Return to setup stored in memory
Parameters 0 = Memory location 0
1 = Memory location 1
2 = Memory location 2
3 = Memory location 3
4 = Memory location 4
Use the *SAV command to save the present instrument setup configuration in memory for
later recall. Any control affected by *RST can be saved by the *SAV command. The *RCL
command is used to restore the instrument to the saved setup configuration. Five setup
configurations can be saved and recalled.
The Model 2500 ships from the factory with SYSTem:PRESet defaults loaded into the
available setup memory. If a recall error occurs, the setup memory defaults to the
SYSTem:PRESet values.
Table 15-2
*OPC programming example
Command Description
*RST
:TRIG:DEL 1
:ARM:COUN 10
:OUTP1 ON
:INIT
*OPC?
Return Model 2500 to GPIB defaults (idle).
Set trigger delay for 1 second.
Program for 10 measurements and stop.
Turn on output.
Start measurements.
Send *OPC? to query output queue.
* Additional code required to test for “1” in output queue.
Test Equipment Depot - 800.517.8431 - 99 Washington Street Melrose, MA 02176
TestEquipmentDepot.com