3152A User Manual
Racal Instruments
©
2001
SCPI and HS Command Reference 4-23
*TST?
- Implements an internal self-test and returns a value as
described below. Approximately 90% of the Model 3152A
functionality is tested.
0 -
Self-test passed
1 -
DAC, DAC control, output amplifier or amplitude control
failure.
2 -
Offset amplifier or offset control failure
4 -
CPU to peripheral communication failure
8 -
Trigger circuit or internal trigger failure
16 -
Sequence or burst generator failure
32 -
Clock generator failure
More than one failure can be reported at one time. For
example, the returned value “17" indicates both a DAC/Output
Amplifier problem and a sequence/burst generator problem
exist.
*
WAI
- Wait for all pending operations to complete before
executing any addditional commands over the interface.
The SCPI Status
Registers
The Model 3152A uses the Status Byte register group and the
Standard Event register group to record various instrument
conditions.
Figure 4-1
shows the SCPI status system.
An Event Register is a read-only register that reports defined
conditions within the synthesizer. Bits in an event register are
latched. When an event bit is set, subsequent state changes
are ignored. Bits in an event register are automatically cleared
by a query of that register or by sending the *CLS command.
The *RST command or device clear does not clear bits in an
event register. Querying an event register returns a decimal
value that corresponds to the binary-weighted sum of all bits
set in the register.
An Event Register defines which bits in the corresponding
event register are logically ORed together to form a single
summary bit. The user can read from and write to an Enable
Register. Querying an Enable Register will not clear it. The
*CLS command does not clear Enable Registers but it does
clear bits in the event registers. To enable bits in an enable
register, write a decimal value that corresponds to the binary-
weighted sum of the bits required to enable in the register.