Instructions

Table Of Contents
Chapter 2 Command System RIGOL
RSA5000 Programming Guide 2-85
*SAV
Syntax
*SAV <integer>
Description
Saves the current instrument state to the selected register.
Parameter
Name
Type
Range
Default
<integer>
Integer
1 to 16
——
Example
The following command saves the current instrument state to Register 1.
*SAV 1
*SRE
Syntax
*SRE <value>
*SRE?
Description
Sets the enable register for the status byte register.
Queries the enable register for the status byte register.
Parameter
Name
Type
Range
Default
<value>
Integer
Refer to "Remarks"
0
Remarks
Bit 0 and Bit 1 are not used and are always treated as 0; therefore, the range of <value> are the decimal
numbers corresponding to the binary numbers 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 command sets the enable register for the status byte register to 16.
*SRE 16
The following query returns 16.
*SRE?