Common Command Introduction
7
2.6 RST
Description
The *RST command initiates a device reset. The *RST recalls the default setup.
Command Syntax
*RST
Example
This example resets the signal generator: *RST
2.7 SRE
Description
The *SRE command sets the Service Request Enable register (SRE). This command allows the
user to specify which summary message bit(s) in the STB register will generate a service request.
A summary message bit is enabled by writing a ‘1’ into the corresponding bit location. Conversely,
writing a ‘0’ into a given bit location prevents the associated event from generating a service re-
quest (SRQ). Clearing the SRE register disables SRQ interrupts.
The *SRE? query returns a value that, when converted to a binary number represents the bit set-
tings of the SRE register. Note that bit 6 (MSS) cannot be set and it’s returned value is always
zero.
Command Syntax
*SRE <value>
<value> = 0 to 255
Query Format
*SRE?
Query Response
*SRE <value>
Example
The following instruction allows a SRQ to be generated as soon as the MAV summary bit (bit
4, i.e. decimal 16) or the INB summary bit (bit 0, i.e. decimal 1) in the STB register, or both
are set. Summing these two values yields the SRE mask 16+1 = 17.
*SRE?
Return:
*SRE 17
2.8 *STB?
Description
The *STB? query reads the contents of the 488.2 defined status register (STB), and the Mas-
ter Summary Status (MSS). The response represents the values of bits 0 to 5 and 7 of the Sta-
tus Byte register and the MSS summary message.
The response to a *STB? query is identical to the response of a serial poll except that the MSS
summary message appears in bit 6 in place of the RQS message.
Query Syntax
*STB?
Query Response
*STB <value>
<value> = 0 to 255
Example
The following reads the status byte register:
*STB?
Return:
*STB 0
Related Commands
*CLS, *SRE
2.9 *TST?
Description
The *TST? query performs an internal self-test and the response indicates whether the self-test
has detected any errors. The self-test includes testing the hardware of all channels. Hardware
Содержание 4060B Series
Страница 1: ......