Ibeot, Ibeot -20 – Measurement Computing GPIB-488 User Manual
Page 33

Chapter 3
GPIB 488.1 Library Reference
3-20
GPIB-488
IBEOT
Enables/Disables assertion of EOI on write operations.
Syntax
C
ibeot (int boarddev, int eot)
Parameters
boarddev
is an integer containing the board or device handle. Here it represents a GPIB
Interface Board or a device. This value is obtained by calling the
ibfind
routine.
eot
is an integer which defines whether or not EOI is to be asserted. If
eot
is non-zero then
EOI is asserted automatically when the last byte of the message is sent. If
eot
is 0, then EOI
is not asserted.
Returns
ibsta
will contain a 16-bit status word as described in Appendix B,
.
iberr
will contain an error code, if an error occurred.
Usage Notes
This call is used to temporarily change the default EOT setting.
It is useful to automatically send EOI with the last data byte in situations where variable
length data is being sent. When EOI is enabled, you do not need to send an EOS character.
If this call specifies a device, then EOI is asserted/unasserted on all writes to that device.
Likewise, if the call specifies a board, then EOI is asserted/unasserted on all writes from that
board. To assert EOI with an EOS, use the
ibeos
routine. This call remains in effect until one
of the following occurs:
•
Another ibeot call is made.
•
ibonl or ibfind is called.
•
The system is re-started.
See also ibeos
Example
Assert EOI with last byte of all write operations from GPIB board 1.
C
int device;
device = ibfind ("gpib1");
ibeot (device,1);