Allspoll, Allspoll -2 – Measurement Computing GPIB-488 User Manual
Page 70
Chapter 4
GPIB 488.2 Library Reference
4-2
GPIB-488
AllSpoll
Performs a serial poll on specified devices.
Syntax
C
AllSpoll (int board, short addresslist[],
short resultlist[])
Parameters
board
is an integer which identifies the GPIB board to be used for this operation. In most
applications, this value is 0.
addresslist
is an array of GPIB addresses, terminated by the value
NOADDR
. These
addresses identify the devices to be serial polled.
Returns
resultlist
is an array which contains the results of the serial poll. Once a device has been
serial polled, the results of the serial poll are stored in the corresponding element of
resultlist
.
ibsta
will contain a 16-bit status word as described in Appendix B,
.
iberr
will contain an error code, if an error occurred. If a device times out,
iberr
contains
Error 6 –
EABO
(see Appendix C,
ibcnt
contains the index of the timed-out
device.
Usage Notes
To poll only one GPIB device, use
ReadStatusByte
.
Example
This example serial polls two devices (GPIB address 6 and 7) connected to GPIB board 0.
C
short addresslist[3] = {6,7,NOADDR};
short resultlist[2];
AllSpoll (0, addresslist, resultlist);