Chapter 8
G Mode Functions
© National Instruments Corp.
8-13
GPIB-232CT User Manual
To determine the
mask
value you want, add up the bit values
of each of the conditions on which you want SRQ to be
asserted. For example, if you want SRQ asserted on GPIB
errors and serial port errors you will call
srqen
with a
mask
of 12 (4 for GERR and 8 for SERR).
The power on default of
srqen
is disabled, that is, SRQ will
never be asserted.
If you call
srqen
without an argument, the GPIB-232CT
returns a decimal string that indicates the decimal value of the
current setting.
See Also:
eos
.
Examples:
1.
WRT$="srqen 0"+CHR$(13)
'Never assert SRQ.
CALL
IBWRT(GPIB232%,WRT$)
2.
WRT$="srqen 4"+CHR$(13)
'Assert SRQ when
CALL IBWRT(GPIB232%,WRT$)
'ENOL occurs.