IBRSP
Device-Level
Purpose
Conduct a serial poll.
Format
C
unsigned long ibrsp (int ud, char *spr)
Visual Basic
CALL ibrsp (ud%, spr%)
or
status% = ilrsp (ud%, spr%)
Interactive Control (Usage Notes)
ibrsp
Input
ud | Device descriptor |
Output
spr | Serial poll response byte |
Function Return | The value of Ibsta |
Description
The ibrsp function is used to serial poll the device ud. The serial poll response byte is returned in spr. If bit 6 (hex 40) of the response is set, the device is requesting service. When the automatic serial polling feature is enabled, the device might have already been polled. In this case, ibrsp returns the previously acquired status byte.
For more information about serial polling, refer to the Serial Polling Overview.
Possible Errors
EABO | The serial poll response could not be read within the serial poll timeout period. |
EBUS | No devices are connected to the GPIB. |
ECIC | The access board is not CIC. See Device-Level Calls and Bus Management. |
EDVR | The NI-488.2 driver is either configured incorrectly or is not properly installed. |
EHDL | ud is invalid or out of range. |
ELCK | The requested operation could not be performed because of an existing lock by another process. |
ENEB | The interface is not installed or is not properly configured. |
EOIP | Asynchronous I/O is in progress. |