Rst - Reset; Sav - Save; Sre <Nrf> - Service Request Enable; Sre? - Service Request Enable Query - Keithley 2002 User Manual

Hide thumbs Also See for 2002:
Table of Contents

Advertisement

IEEE-488 Reference
3.10.9
Description
Program fragment
3.10.10
Parameters
Description
Program fragment
3.10.11
Parameters
Description
3-36
*RST — reset
Reset the Model 2002
When the *RST command is sent, the Model 2002 performs the following operations:
1. Returns the Model 2002 to the *RST default conditions (see SCPI tables).
2. Cancels all pending commands.
3. Cancels response to any previously received *OPC and *OPC? commands.
PRINT #1, "output 16; *rst"
*SAV — save
Save the current setup in memory
No extended
Model 2002-MEM1
memory
<NRf> = 0
<NRf> = 0 to 4
The *SAV command is used to save the current instrument setup configuration in memory for
later recall. Any control affected by *RST can be saved by the *SAV command. The *RCL com-
mand is used to restore the instrument to a saved setup configuration.
If the Model 2002 does not have any extended memory installed, only one setup configuration
can be saved and recalled. In this situation, memory location "0" is the only valid parameter for
the *SAV command. If the Model 2002-MEM1 memory element is installed, up to five setup
configurations can be saved and recalled. In this situation, memory locations "0" through "4"
are valid parameters. If the Model 2002-MEM2 memory element is installed, up to 10 setup
configurations can be saved and recalled. Memory locations "0" through "9" are then valid
parameters.
PRINT #1, "output 16; *SAV 0"
*SRE <NRf> — service request enable
*SRE? — service request enable query
<NRf> = 0
Clears enable register
= 1
Set MSB bit (Bit 0)
= 4
Set EAV bit (Bit 2)
= 8
Set QSB bit (Bit 3)
= 16
Set MAV bit (Bit 4)
= 32
Set ESB bit (Bit 5)
= 128 Set OSB bit (Bit 7)
= 255 Sets all bits
The *SRE command is used to program the Service Request Enable Register. This command is
sent with the decimal equivalent of the binary value that determines the desired state (0 or 1) of
each bit in the register. This register is cleared on power-up.
This enable register is used along with the Status Byte Register to generate service requests
(SRQ). With a bit in the Service Request Enable Register set, an SRQ occurs when the corre-
sponding bit in the Status Byte Register is set by an appropriate event. For details on register
structure, refer to paragraph 3.7.
' Return 2002 to *rst defaults
Model 2002-MEM2
installed
' Store setup at memory location 0.
installed
<NRf> = 0 to 9
Program the Service Request Enable Register
Read the Service Request Enable Register

Advertisement

Table of Contents
loading

Table of Contents