Opc Programming Example - Keithley 2520 User Manual

Pulsed laser diode test system
Hide thumbs Also See for 2520:
Table of Contents

Advertisement

12-4
Common Commands

*OPC programming example

The command sequence in
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.
Table 12-2
*OPC programming example
*RST
:TRIG:COUN 10
:OUTP1 ON
:INIT
*OPC?
* Additional code required to test for "1" in Output Queue.
*OPT? — option query
When *OPT? is sent, Model 2520 returns a list of any installed options.
*SAV <NRf> — save
*RCL <NRf> — recall
Parameters: 0 = Memory location 0
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 2520 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 12-2
Command
Return Model 2520 to GPIB defaults (idle).
Program for 10 measurements and stop.
Turn on output.
Start measurements.
Send *OPC? to query Output Queue.*
1 = Memory location 1
2 = Memory location 2
3 = Memory location 3
4 = Memory location 4
will perform 10 measurements. After the measure-
Description
Return list of installed options
Save present setup in memory
Return to setup stored in memory
Model 2520 User's Manual

Advertisement

Table of Contents
loading

Table of Contents