Download GPIB-488 Programming Reference Manual

Transcript
Chapter 3
GPIB 488.1 Library Reference
Table 3-2. ibask Options (Continued)
Option
IbaUnAddr
Valid for
dev
Information returned
0 = The untalk and unlisten (UNT, UNL) are not sent after
each device level read/write
non zero = The UNT, UNL commands are sent after each
device lever read/write
IbaIst
bd
The individual status (ist) bit of the interface
IbaBNA
dev
Device’s access board
IbaEOS
bd/dev
EOS termination mode and character. The lower byte of
the value returned is the EOS character. The returned
value upper byte third bit determines whether reads are
terminated when the EOS character is detected. The
returned value upper byte fourth bit determines whether
EOI is set with the EOS character on writes. The returned
value upper byte fifth bit determines whether all 8 bits of
the EOS character should be compared; otherwise, only 7
bits are compared.
Returns
Ibsta will contain a 16-bit status word; refer to Appendix B, IBSTA.
Iberr will contain an error code if an error occurred
value will contain the current value of selected configuration item
Usage Notes
Some options apply to boards, some to devices and some apply to both boards and devices.
A program may modify many of these configuration items via library routines (for example,
ibconfig IbcTMO, ibconfig IbcPAD, etc.). In that case, ibask returns the modified
version.
Example
Returns the ist bit of a device at PAD 3.
C
int dev;
unsigned long istbit;
dev = ibdev (0,3,0,13,1,0);
ibask (dev, IbaIst, &istbit);
GPIB-488
3-5
Programming Reference Manual