Operating instructions

R&S ESCI Basic Steps of IEC/IEEE-Bus Programming
1166.6004.12 7.7 E-1
Service Request
The service request routine requires an extended initialization of the instrument in which the relevant
bits of the transition and enable registers are set.
In order to use the service request function in conjunction with a National Instruments GPIB driver, the
setting "Disable Auto Serial Poll" must be changed to "yes" by means of IBCONF.
Initiate Service Request
REM ---- Example of initialization of the SRQ in the case of errors --------
PUBLIC SUB SetupSRQ()
CALL IBWRT(receiver%, "*CLS") 'Reset status reporting system
CALL IBWRT(receiver%,"*SRE 168") 'Permit service request for
'STAT:OPER,STAT:QUES and ESR
'register
CALL IBWRT(receiver%,"*ESE 60") 'Set event enable bit for
'command, execution, device-
'dependent and query error
CALL IBWRT(receiver%,"STAT:OPER:ENAB 32767") 'Set OPERation enable bit for
'all events
CALL IBWRT(receiver%,"STAT:OPER:PTR 32767") 'Set appropriate OPERation
'Ptransition bits
CALL IBWRT(receiver%,"STAT:QUES:ENAB 32767") 'Set questionable enable bits
'for all events
CALL IBWRT(receiver%,"STAT:QUES:PTR 32767") 'Set appropriate questionable
'Ptransition bits
END SUB
REM ***********************************************************************