
34941A and 34942A SCPI Programming Examples
Agilent 34941A-34942A RF Multiplexer Modules User’s Guide
3
34941A and 34942A SCPI Programming Examples
The programming examples below provide you with SCPI command
examples to use for actions specific to the RF MUX switch modules.
The slot and channel addressing scheme used in these examples follow the
form
sccc
where
s
is the mainframe slot number (1 through 8) and
ccc
is
the channel number. For information on specific configurations, refer to
the simplified schematic on
For complete information on the SCPI commands used to program the
34980A, refer to the
Agilent 34980A Programmer’s Reference
contained on
the
34980A Product Reference
CD. For example programs, also refer to the
34980A Product Reference
CD.
Example: Closing channels
You can only
close
channels on the RF MUX
modules. When you close a channel, any already- closed channels open
automatically. The relays switch in sequence to avoid momentary
connection of the wrong input to the multiplexer output. The following
command closes channel 03 on Bank 1 of an RF MUX module in slot 5.
ROUTe:CLOSe (@5103)
Example: Querying channels for open or close state
The following commands
returns the close or open state of channel 33 of a module in slot 5.
ROUT:CLOSe? (@5033)
ROUT:OPEN? (@5033)
Example: Querying the system for module identify
The following command
returns the identify of the module installed in slot 7.
SYSTem:CTYPe? 7
Example: Reading the cycle count for a relay
On these modules, each bank
consists of two
leaf
relays and one
tree
relay (see the simplified schematic
on
). The module stores the cycle count for each of the three relays
on all four banks. The cycle count is the greater of the three values on the
specified bank (i.e., reflecting the cycle count for the entire bank).
Therefore, the count for Channels 101, 102, 103, and 104 will
always
be
equal. The following statement reads back the number of completed cycles
for the channels 101 and 202 on a module installed in slot 6.
DIAGnostic:RELay:CYCLes? (@6101,6202)
Example: Clearing the cycle count for a relay
The following command resets
the cycle count on the channels 103 and 201 for a module in slot 1.
Note that clearing the cycle count on a specific channel will clear the
count on
all
three relays in the corresponding bank.
DIAGnostic:RELay:CYCLes:CLEar (@1103,1201)
Example: Resetting module to power-on state
The following command resets a
module in slot 4 to its power- on state.
SYSTem:CPON 4