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

Page 32
Image 32
Agilent Technologies E1470A user manual RSTDIAGThis programCLOS042,043,053,054,256REL?returns, DIAGnosticRELAY?