34937A, 34938A and 34939A SCPI Programming Examples
34937A, 34938A and 34939A 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, and for example programs, refer to the Agilent 34980A Programmer’s Reference contained on 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 closed 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
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
4 | Agilent |