![Keysight Technologies 34921A User Manual Download Page 13](http://html.mh-extra.com/html/keysight-technologies/34921a/34921a_user-manual_1961815013.webp)
12
Keysight 34941A-34942A User’s Guide
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
page 14
.
For complete information on the SCPI commands used to program the 34980A,
refer to the
Keysight 34980A Programmer’s Reference
www.keysight.com/find/34980A
.
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
page 14
). 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)