Agilent Technologies E1470A user manual RSTDIAGThis programCLOS042,043,053,054,256REL?returns

Page 32

DIAGnostic:RELAY?

DIAGnostic:RELAY? returns the relay numbers of all relays that are closed. Closed is the SET position (COMMON to NO) and is the opposite state of the power-on/reset relay state. The command can be used to determine which relays are closed by a given PATH command.

Comments Output Buffer Strings. The output buffer contains an unquoted, comma-separated string of numbers where each number is a relay number. If no relay is closed, the output buffer will contain the null string. This is a register readback command that returns the current state of the registers controlling the relays. It does not account for failed relays.

*RST condition. At power-on or reset (*RST), DIAG:REL? will not return any channel numbers.

Example Returning Closed Relay Numbers

*RSTDIAG:This programCLOS042,043,053,054,256REL?returns:

!Reset the module

!Completes a path from COM25 !to channel 42.This is equivalent !to PATH 25,42

!Query the relays

32 RF Switch Command Reference

Chapter 3

Image 32
Contents E1470-90002 Page Contents Appendix C RF Switch Error Messages Index Agilent Technologies Warranty Statement Government Restricted RightsSafety Symbols Documentation HistoryManufacturer’s Name Manufacturer’s AddressDeclares, that the product Product Name Model NumberPage Chapter Using This ChapterSwitching Diagram Cascade Relays COM 33 332 Configuring the RF Switch Chapter Creating Multiple MultiplexersRF Switch Configuration Maximum POWER. The maximum RF power that can be appliedChapter Configuring the RF Switch On this moduleSetting the Logical Address Setting the Interrupt Request Level Connecting User Wiring Installing User Wiring Configuring the RF Switch ChapterAssembling SMB Connector Jacks SMB Connectors and Connector HousingsUser Connections Wiring Installing Device Drivers RF SwitchAddressing the Switch Programming the RF Switch ChapterChapter Programming the RF Switch Programming ExamplesProgramming the RF Switch Chapter Example Closing a Signal Path Example Opening Closing Signal Paths Example Saving Recalling Module States Programming the RF Switch Chapter Command Types Common Commands FormatScpi Commands Format Chapter RF Switch Command ReferenceRF Switch Command Reference Chapter Scpi Command ReferenceLinking Commands DIAGnostic DIAGnosticCLOSeDIAGnosticCLOSe? DIAGnosticOPENDIAGnosticOPEN relay,relay... opens individual relays on Reset to its power-on state Common to NCDIAGnosticOPEN? DIAGOPEN333DIAGnosticRELAY? RSTDIAGThis programCLOS042,043,053,054,256REL?returnsROUTe ROUTePATHCOMMonExample Closing Channel Path 10002 SYSTemVERSion? SYSTemERRor?SYSTem Ieee 488.2 Common Commands Quick Reference CommandCommands Quick Reference DescriptionAppendix a RF Switch Specifications Appendix aRF Switch Specifications Appendix a Appendix B About This AppendixRegister Addressing Addressing OverviewBase Address Figure B-1. Register Address Locations Within VXI A16A16 Address Space Outside the Command Module Register Definitions Table B-1. General Register-based Programming MethodTable B-2. Register Map Register-Based Programming Appendix BTable B-3. Status Register Bit Patterns read Table B-4. Control Register Bit Pattern writeRelay Control Registers Vxie Table B-10. Writing to Relay Control Registers Register Programming Example Create and open a device sessionWait 5 seconds before resetting module Void errhandler /* Error Handling Routine Register-Based Programming Appendix B Appendix C RF Switch Error Messages Appendix CRF Switch Error Messages Appendix C Index IndexIndex E1470-90002