Agilent Technologies manual 34937A, 34938A and 34939A Scpi Programming Examples

Page 10

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

Image 10
Contents Agilent 34937A-34939A General Purpose Switch Modules Agilent Technologies, Inc 34980-90037Frame or chassis terminal Additional Safety NoticesUnited States 800 Europe 31 20 547 Japan Declaration of Conformity DoC for the 34980A mainframe Contents Page General Purpose Switch Modules Hardware Power-Fail Jumper Temperature SensorSwitching Reactive Loads Operating ConsiderationsPower Down State OpenOpening and Closing Channels 34937A, 34938A and 34939A Scpi Programming ExamplesReading Jumper State and System Identity Reading Cycle Count and Resetting Modules to Power-On State Command resets a module in slot 4 to its power- on state34937A 32-Channel GP Switch Module 34937A Simplified Schematic34937A D-Sub Connectors Wire Size AWG Typical AWG Max 34937T Terminal Block34938A 20-Channel High-Current GP Switch Module 34938A Simplified Schematic34938A D-Sub Connectors 34938T Terminal Block 34939A 64-Channel High-Density Form-A GP Switch Module 34939A Simplified Schematic34939A D-Sub Connectors 33 no 40 no 47 no 54 no 61 no Male ConnectorPin D-Sub 34 no 41 no 48 no 55 no 62 no34939T Terminal Block 34939A 64-Channel High-Density Form-A GP Switch Module Temperature sensor JumperIndex