RIGOL
VSA Programming Guide
2-35
Example
The following command sets the enable register for the status byte register to 16.
*SRE 16
The following query returns 16.
*SRE?
*STB?
Syntax
*STB?
Description
Queries the event register for the status byte register.
Remarks
Bit 0 and Bit 1 in the status byte register are not in use, and are regarded as 0. The query returns a decimal
value that corresponds to the binary values ranging from 00000000 (0 in decimal) to 11111111 (255 in
decimal) and of which Bit 0 and Bit 1 are 0.
Return Format
The query returns an integer. The integer equals to the binary-weighted sum of all the bits set in the
register. For example, the query returns 144 if Bit 4 (16 in decimal) and Bit 7 (128 in decimal) are enabled.
Example
The following query returns 24 (Bit 3 and Bit 4 have been set).
*STB?
*TRG
Syntax
*TRG
Description
Triggers a sweep or measurement immediately.
*TST?
Syntax
*TST?
Description
Queries whether the self-check operation is finished.
Remarks
The query returns 0 or 1. A zero is returned if the test is successful, 1 if it fails.