Table: Self Test Command lists the self test command mnemonic code. This command provides for executing a signal generator self test.
When a TST command is received, the signal generator performs a self test, then returns a single byte, unterminated. A "P" (for pass) or an "F" (for fail). It also generates six self test results bytes.
Self Test Command
Mnemonic Code
Function
TST
Executes a signal generator self test. Extended Status Byte 1 bit 0 is set if self test fails; bit 2 is set when self test is complete.
OSR
Returns the six self test results bytes to the controller.
Refer to Self-Test Messages for the self.test error and messages descriptions. The “P or “F” character placed on the bus by the signal generator self test must be cleared from the output buffer (read by the controller) before another output command, such as OSR, is sent. If it is not cleared, the first character of the next output will be missing.
Self Test Results
The six self test results bytes that identify the reporting function of each bit is shown below.
Self Test Results Byte 1
Not Used
Not Used
Power Supply Voltage(s) are Out of Reg
Not Used
Not Used
Not Used
Not Used
Not Used
Bit 7 (128)
Bit 6 (64)
Bit 5 (32)
Bit 4 (16)
Bit 3 (8)
Bit 2 (4)
Bit 1 (2)
Bit 0 (1)
Self Test Results Byte 2
Not Used
Not Used
Not Used
Not Used
Not Used
Not Used
Not Used
Not Used
Bit 7 (128)
Bit 6 (64)
Bit 5 (32)
Bit 4 (16)
Bit 3 (8)
Bit 2 (4)
Bit 1 (2)
Bit 0 (1)
Self Test Results Byte 3
Not Used
Not Used
Not Used
Not Used
Not Used
Not Used
Not Used
Not Used
Bit 7 (128)
Bit 6 (64)
Bit 5 (32)
Bit 4 (16)
Bit 3 (8)
Bit 2 (4)
Bit 1 (2)
Bit 0 (1)
Self Test Results Byte 4
Not Used
Not Used
Switch Filter Failed
Not Used
Not Used
Not Used
Not Used
Not Used
Bit 7 (128)
Bit 6 (64)
Bit 5 (32)
Bit 4 (16)
Bit 3 (8)
Bit 2 (4)
Bit 1 (2)
Bit 0 (1)
Self Test Results Byte 5
Not Used
Frequency Extension Module (FEM) Failed
Not Used
Not Used
Mod Processor Failed
Not Used
Not Used
Not Used
Bit 7 (128)
Bit 6 (64)
Bit 5 (32)
Bit 4 (16)
Bit 3 (8)
Bit 2 (4)
Bit 1 (2)
Bit 0 (1)
Self Test Results Byte 6
Self Test is Complete
Not Used
Not Used
RF Was Off When Self Test Started
Not Used
Not Used
Not Used
Not Used
Bit 7 (128)
Bit 6 (64)
Bit 5 (32)
Bit 4 (16)
Bit 3 (8)
Bit 2 (4)
Bit 1 (2)
Bit 0 (1)
Self Test Example
This code demonstrates synchronous read and write commands to a Socket instrument using VISA to perform and return self test results.