Remote Control
Page 15
In order to use the SRQ line, all relevant enable bits must be set, for example:
q The SRQ line can be raised automatically when there is a message
available by enabling the MAV bit in the Status Byte Register with *SRE
16
q The SRQ line can be raised automatically when there is an error by
enabling the ESB bit in the Status Byte Register with *SRE 32 and by
enabling the error bits in the Standard Event Status Register with *ESE 60
(32+16+8+4).
NOTE: The Factory default is to clear all enable registers on power up. See *PSC,
*ESE and *SRE commands for more details.
We recommend that you set the DLS 50 to raise the SRQ line when there is a message
available and when there is an error. The control program should follow those steps:
• Set all the relevant enable bits (only done once)
• Send the message
• Wait for SRQ if using the IEEE 488 interface
• Read the status byte
• If MAV is set then read the response
• If ESB is set then read the standard event status register and take all the
relevant actions.
For example, to get the identification message with the IEEE 488 interface, do the
following:
• Transmit "*SRE 48" àenable MAV and ESB (needed only once)
• Transmit "*ESE 60" àenable all the error bits (needed only once)
• Transmit "*IDN?" àquery the identification message
• Wait for SRQ to be raised
• Read the status byte àuse the IEEE 488.1 command, not *STB?
• If MAV is set read the response
• If ESB is set do the following àcheck if an error was detected
• Transmit "*ESR?" àquery the Event Status Register
• Wait for SRQ to be raised