beautypg.com

Ibist, Ibist -24 – Measurement Computing GPIB-488 User Manual

Page 37

background image

Chapter 3

GPIB 488.1 Library Reference

Programming Reference Manual

3-24

GPIB-488

IBIST

Sets/Clears the

IST

(Individual Status) Bit of the GPIB board for parallel polls.

Syntax

C

ibist (int board, int statusbit)

Parameters

board

is an integer containing the board handle.

statusbit

indicates whether the IST bit is to be cleared or set. If

statusbit

is non-zero,

then the IST bit is set. Otherwise, if

statusbit

= 0, the IST bit is cleared.

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. If an error does not occur, the previous

IST value is stored in

iberr

.

Usage Notes

This routine is used when the GPIB Interface is not the Active Controller.

IST should be SET to indicate to the controller that service is required.

Example

This example clears GPIB Board 1's IST bit.

C

int gpib1;

gpib1 = ibfind ("GPIB1");

ibist (gpib1, 0);