Returned Data
Type
Description of Numerical Response
int16, string 0 = self-test passed
1 = ERROR: status register
2 = ERROR: register readback
3 = ERROR: interrupt
Comments
Reset Condition
Related
Commands
Example
30 SCPI Command Reference
•
DIAG:TEST? opens all relays and then closes each relay, one at a time. It then
waits for an interrupt and reads the register to verify that the relay actually
closed. If an interrupt does not occur, a 3 is returned indicating a missing
interrupt error. If the value that was read back does not match what was set, a 1
is returned indicating that there is a problem somewhere in the relay driver
circuitry. Following the self-test, all relays are left in the open state.
•
A query response of 0 means that the module is operating properly, a non-zero
result means an error occurred.
•
The extended self-test does not measure the actual relay state position to
ensure that it is closed or open, it only queries the state of the Control Register
circuitry. It may be possible to pass DIAGnostic:TEST? (return a 0) and still
have relay failures.
*RST does not affect this query.
*TST?
DIAG:TEST?
Possible Strings Returned
"Self test passed"
"Busy, full bit failed. Expect 4, got X"
"Busy, stuck at 0. Expect 1, got X"
"Init or full bit wrong. Expect X, got X"
"Readback reg X failed, expect 0, got X"
"Interrupt failed VISA error X"
Perform diagnostic test.
Chapter 3