beautypg.com

Sendifc, Sendifc -21 – Measurement Computing GPIB-488 User Manual

Page 89

background image

Chapter 4

GPIB 488.2 Library Reference

GPIB-488

4-21

Programming Reference Manual

SendIFC

Clears the GPIB bus by asserting the IFC (Interface Clear) line.

Syntax

C

SendIFC(int board)

Parameters

board

is an integer which identifies the GPIB board to be used for this operation. In most

applications, this value is 0.

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

This routine is used as part of the GPIB initialization procedure. When the system controller
asserts the IFC line, it unlistens and untalks all GPIB devices, forcing them to an idle state.
The system controller also becomes the Controller-In-Charge (CIC).

Example

Clears the GPIB bus from Board 0.

C

SendIFC(0);