34937A, 34938A And 34939A Scpi Programming Examples; Opening And Closing Channels; Reading Jumper State And System Identity - Agilent Technologies 34937A User Manual

General purpose switch modules
Table of Contents

Advertisement

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 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). In particular, the position of the power- fail jumper on the
34939A module cannot be queried using this commmand.
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 34937A-34939A General Purpose Switch Modules User's Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

34939a

Table of Contents