Agilent Technologies Switch/Measure Switch User Manual


 
166 34980A User’s Guide
6 General Purpose Switch Modules
34937A and 34938A SCPI Programming Examples
The programming examples below provide you with SCPI command
examples to use for actions specific to the general purpose 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 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.
Opening and Closing Channels
Example: Closing and opening channels The first two commands close
channel 3 for a module in slot 2, then channel 5 for that module.
The last command opens both channel 3 and channel 5.
ROUTe:CLOSe (@2003)
ROUTe:CLOSe (@2005)
ROUTe:OPEN (@2003,2005)
Example: Querying channels for open or close state The following command
returns a 1 (true) or 0 (false) state of channel 016 for a module in
slot 3.
ROUTe:CLOSe (@3016)
ROUTe:CLOSe? (@3016) !Returns a 1
ROUTe:OPEN? (@3016) !Returns a 0
Reading Jumper State and System Identity
Example: Querying the power-failure state of 5 A relays The following
command returns the position of the power-fail jumper, either “MAIN”
(all relays maintain their present state when power fails) or “OPEN” (all
relays open when power fails) for a module in slot 4. If this command is
sent to a module other than the 34937A or 34938A, “NONE” is returned
(no error is generated).
SYSTem:MODule:PFAil:JUMPer:AMP5? 4
Example: Querying the system for module identify (all modules) The following
command returns the identify of the module installed in slot 7.
SYSTem:CTYPe? 7