Programming with GPIB Commands
2-21 Self Test Command
MG369xC GPIB PM
PN: 10370-10374 Rev. F
2-59
2-21 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 places a “P” (for pass) or a
“F” (for fail) on the bus. It also generates six self test results bytes.
“Self Test Results” on page 2-60
shows the
six self test results bytes and identifies the reporting function of each bit.
When self test is completed, bit 7 of Self Test Results Byte 6 and bit 2 of Extended Status Byte 1 are both set.
If a failure(s) occurs during self test, the Self Test Results Byte bit(s) reporting the failure(s) and bit 0 of
Extended Status Byte 1 are set.
The
OSR
command returns the six self test results bytes to the controller.
provides an example of
self test command programming.
Programming Note:
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. Line 30 (
) shows clearing of the “P” or “F”
character.
Table 2-22.
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.
10 OUTPUT 705; “CSB”
20 OUTPUT 705; “TST”
30 ENTER 705; D$
40 DISP D$
50 OUTPUT 705; “OSR”
60 ENTER 705 USING “#,B”; A, B, C, D, E, F
70 DISP A; B; C; D; E; F
80 END
Figure 2-16.
Self Test Command Programming Example
Summary of Contents for MG369 C Series
Page 2: ......
Page 6: ...Contents 4 PN 10370 10374 Rev F MG369xC GPIB PM ...
Page 262: ...A 34 PN 10370 10374 Rev F MG369xC GPIB PM ...
Page 264: ...Index 2 PN 10370 10374 Rev F MG369xC GPIB PM ...
Page 265: ......