Measurement-computing GPIB-488 Manuale Utente Pagina 70

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 116
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 69
Chapter 4 GPIB 488.2 Library Reference
Programming Reference Manual 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, IBSTA.
iberr will contain an error code, if an error occurred. If a device times out, iberr contains
Error 6 –
EABO (see Appendix C, IBERR), and 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);
Vedere la pagina 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 115 116

Commenti su questo manuale

Nessun commento