Microwave Switch/Attenuator Driver 8
34980A User’s Guide 213
Simple Switch Control
All examples in this chapter make reference to SCPI commands for switch
control. Details of these commands and their parameters can be found in
the Programmer’s Reference Help file shipped with your 34980A
mainframe.
The switches and attenuators are designed to respond to the SCPI
ROUTe:CLOSe and ROUTe:OPEN commands. For example, to open and close
a switch attached to channel 1 on bank 1 of the second remote module
attached to a 34945A installed in slot 3 of the mainframe, you could use
the following commands (slot = 3, rem = 2, channel = 01).
ROUT:OPEN (@3201)
ROUT:CLOS (@3201)
Before you can close or open a switch, however, several other parameters
must be configured. Each distribution board has a set of factory default
parameters designed to support the type of switches intended to be
present. These defaults are described in more detail on page 221.
Additionally, the drive current source must be selected and configured.
The following commands show a simple command sequence controlling
channel 1 of an Agilent N1810 switch (installed on a Y1150A distribution
board) of the third remote module attached to a 34945A installed in slot 4
of the mainframe (slot = 4, rem = 3, channel = 01).
SYST:RMOD:RES 4
ROUT:RMOD:BANK:PRESET BANK1,(@4300)
ROUT:CHAN:DRIV:CLOS:DEF (@4301)
ROUT:RMOD:DRIV:SOUR INT,(@4300)
ROUT:OPEN (@4301)
<-- other commands -->
ROUT:CLOS (@4301)
In the example above, the SYSTem:RMODule:RESet command resets the
module and disables all drive currents. The next command loads the
factory default settings for the distribution board (Y1150A) used to
support the Agilent N1810 switch. The default state of switch closed is
then configured. When the drive source is set to internal (third remote
module only), the switch assumes its default closed state. The configured
switch may now be controlled using the
ROUTe:OPEN and ROUTe:CLOSe
commands.
These commands and settings are described in more detail later in this
chapter and in the Programmer’s Reference Help file.
NOTE
You must turn off the channel drive before sending the
ROUTe:RMODule:BANK:PRESet command. Once configured, turn the
channel drive back on
(
ROUTe:RMODule:DRIVe:SOURce:IMMediate).