Keysight 34921A-34925A User’s Guide 13
SCPI Programming Examples for the Multiplexer Modules
The programming examples below provide you with SCPI command examples to 
use for actions specific to the MUX 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 three-digit 
channel number. For information on specific MUX channel configurations, refer to 
the simplified schematics contained in each MUX section of this manual.
For complete information on the SCPI commands used to program the 34980A, 
with example programs, refer to the Keysight 34980A Programmer’s Reference 
which can be downloaded from www.keysight.com/find/34980A.
Opening and Closing Channels
Example: Closing and opening channels on the armature and reed MUX 
modules 
This command closes the specified channels on a MUX module. If any 
channel in a bank is defined to be part of the scan list, and a scan is occurring, 
attempting to close another channel (including Analog Bus channels) within the 
same bank will result in an error. Channel closures in the other bank are allowed 
as long as no channels are part of the scan list.
The following commands close and open channels 13 and 15 through 18 in slot 3.
ROUTe:CLOSe (@3013,3015:3018) 
ROUTe:OPEN (@3013,3015:3018)
Example: Closing channels on the FET MUX module 
The FET MUX module 
supports a 1:N type closure, meaning that you can have only one channel per 
bank closed at a time. The following command closes then automatically opens 
each channel from 1-19 (Bank 1) in succession, leaving channel 20 closed. Then 
the command continues closing and opening channels 21 to 39 (Bank 2), then 
leaving channel 40 closed. At the end, only channels 20 and 40 will be closed, 
while all other channels will have been closed and then opened. In this process, a 
channel will open before the next channel in succession closes, making this a 
“break-before-make” series. 
ROUTe:CLOSe (@3001:3040)
The following command opens the closed channel on Bank 1 of a FET MUX 
module in slot 3, and closes channel 15 on that bank. 
ROUTe:CLOSe (@3015)