DIAGnostic:CLOSe?
DIAGnostic:CLOSe <relay>{,<relay>...} returns a number to indicate the closed state of each relay in the list. Since these are Form C relays, “closed” means the relay is “set” (COMMON to NO).
Parameters
Name | Type | Range of Values |
|
|
|
<relay> | numeric | |
|
| |
|
| |
|
| |
|
|
|
Comments Relay Closure Results. The output buffer contains an unquoted string containing the result for the relay(s): 0 = Not closed (COMMON to NC) and 1 = Closed (COMMON to NO)
Invalid Values. Values other than those listed in the table cause error 2022, “Invalid relay number”.
Querying Relays. To query single relays, use DIAG:CLOS abc. To query multiple relays, use DIAG:CLOS? abc,def,ghi,... etc.
80 Relays Maximum. The E1470A has only 80 relays. Setting more than 80 relay numbers causes error:
Example | Querying Relay Closures |
| ||
|
|
|
| !Reset module and open all relays |
|
|
|
| !Closes relay 002 (connects |
| DIAG:CLOS | 0 | !CH002 to relay 003 in bank 00) | |
|
|
|
| !Returns 0,1,0 |
DIAGnostic:OPEN |
|
|
|
|
|
|
|
| |
| DIAGnostic:OPEN <relay>{,<relay>...} opens individual relays on the | |||
| E1470A. Since these are Form C relays, “open” means the relay is | |||
| “reset” to its | |||
Parameters | *RST | ?001,002,003 |
| |
|
|
|
| |
|
|
|
|
|
| Name |
| Type | Range of Values |
|
|
|
|
|
| <relay> |
| numeric | |
|
|
|
| |
|
|
|
| |
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
30 RF Switch Command Reference |
|
| Chapter 3 |