50
Understanding the Relay Driver Module
Scanning With
External
Instruments
Scanning Relay Driver Module channels has the same effect as executing
multiple OPEN and CLOSe commands. Thus, scanning is useful when a
number of relays (or other user devices) are to be closed and opened in
sequence. See "Example Programs" in this chapter for an example of
scanning using an external instrument.
Using the Scan
Complete Bit
You can use the Scan Complete bit (bit 8) in the Operation Status Register
of a switchbox to determine when a scanning cycle completes (no other
bits in the register apply to the switchbox). See Figure 5-1 in
Chapter 5 -
Relay Driver Module Command Reference
for the Status System Register
diagrams for the Relay Driver Module. Bit 8 has a decimal value of 256, and
you can read it directly with the STAT:OPER? command. See "Example
Programs" in this chapter for an example using the Scan Complete bit.
When enabled by the STAT:OPER:ENAB 256 command, the Scan
Complete bit will be reported as bit 7 of the Status Byte Register. Use
the GPIB Serial Poll or *STB? to read the Status Byte Register.
When bit 7 of the Status Byte Register is enabled by *SRE 128 to assert an
GPIB Service Request (SRQ), you can interrupt the computer when the Scan
Complete bit is set, after a scanning cycle completes. This allows the
computer to do other operations while the scanning cycle is in progress.
Setting/Checking States
This section describes the response of the Relay Driver Module to three
IEEE 488.2 common commands: *SAV, *RCL, and *RST and the response
to the error query (SYST:ERR?).
Storing
States (*SAV)
The *SAV <
numeric_state
> command saves the current instrument state.
The state number (0-9) is specified by the numeric state parameter. The
settings saved by *SAV are:
•
ARM:COUNt
•
TRIGger.SOURce
•
OUTput:STATe
•
INITiate:CONTinuous
•
SCAN (the scan list is set to invalid so the command
does not save a scan list)
•
SCAN:MODE
•
SCAN:PORT
•
CLOSed Channels
Recalling
States (*RCL)
The *RCL <
numeric_state
> command recalls the state when the last *SAV
was executed for the specified
numeric_state
parameter (0-9). If no *SAV
was executed for the
numeric_state
, *RST default settings are used. Refer
to the *SAV settings list for the settings recalled by *RCL.
Содержание E1339A
Страница 2: ......
Страница 3: ......
Страница 11: ...10 Notes ...
Страница 12: ...11 Notes ...
Страница 13: ...12 Notes ...
Страница 21: ...20 Getting Started ...
Страница 47: ...46 Using the Relay Driver Module ...
Страница 81: ...80 Relay Driver Module Command Reference Figure 5 1 Relay Driver Module Status System Register Diagram GPIB ...
Страница 95: ...94 Relay Driver Specifications ...
Страница 103: ...102 Relay Driver Register Definitions ...
Страница 109: ...108 Index ...