Automatic Serial Polling; Stuck Srq State - National Instruments NI-488.2 User Manual

National instruments user manual ni-488.2
Hide thumbs Also See for NI-488.2:
Table of Contents

Advertisement

Automatic Serial Polling

© National Instruments Corporation
You can enable automatic serial polling if you want your application to
conduct a serial poll automatically when the SRQ line is asserted. The
autopolling procedure occurs as follows:
1.
To enable autopolling, use the configuration function,
option
IbcAUTOPOLL
(Autopolling is enabled by default.)
2.
When the SRQ line is asserted, the driver automatically serial polls the
open devices.
3.
Each positive serial poll response (bit 6 or hex 40 is set) is stored in a
queue associated with the device that sent it. The RQS bit of the device
status word,
ibsta
4.
The polling continues until SRQ is unasserted or an error condition is
detected.
5.
To empty the queue, use the
queued response. Other responses are read in first-in-first-out (FIFO)
fashion. If the RQS bit of the status word is not set when
called, a serial poll is conducted and returns the response received.
Empty the queue as soon as an automatic serial poll occurs, because
responses might be discarded if the queue is full.
6.
If the RQS bit of the status word is still set after
response byte queue contains at least one more response byte. If this
happens, continue to call

Stuck SRQ State

If autopolling is enabled and the GPIB interface detects an SRQ, the driver
serial polls all open devices connected to that interface. The serial poll
continues until either SRQ unasserts or all the devices have been polled.
If no device responds positively to the serial poll, or if SRQ remains in
effect because of a faulty instrument or cable, a stuck SRQ state is in effect.
If this happens during an
error. If the stuck SRQ state happens, no further polls are attempted until an
for RQS is made. When
ibwait
terminated and the driver attempts a new set of serial polls.
Chapter 7
, or the NI-488.2 Configuration utility.
, is set.
function.
ibrsp
until RQS is cleared.
ibrsp
for RQS, the driver reports the ESRQ
ibwait
is issued, the stuck SRQ state is
ibwait
7-13
NI-488.2 Programming Techniques
ibconfig
returns the first
ibrsp
ibrsp
is called, the
ibrsp
NI-488.2 User Manual for Windows
, with
is

Advertisement

Table of Contents
loading

Table of Contents