Measurement-computing GPIB-488 User Manual Page 92

  • Download
  • Add to my manuals
  • Print
  • Page
    / 116
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 91
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);
Page view 91
1 2 ... 87 88 89 90 91 92 93 94 95 96 97 ... 115 116

Comments to this Manuals

No comments