
Chapter 4 GPIB 488.2 Library Reference
Programming Reference Manual 4-24 GPIB-488
SendSetup
Addresses a GPIB board as a Talker and the specified GPIB devices as Listeners.
Syntax
C SendSetup(int board, short addresslist [])
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 address as Listeners.
Returns
ibsta will contain a 16-bit status word as described in Appendix B, IBSTA.
iberr will contain an error code, if an error occurred.
Usage Notes
Following this routine, you should call a routine such as SendDataBytes to actually transfer
the data.
Example
This example prepares GPIB board 0 to send data to GPIB devices 6 and 7.
C short addresslist[3] = {6, 7, NOADDR};
SendSetup(0, addresslist);
Komentarze do niniejszej Instrukcji