beautypg.com

Ibsic, Ibsic -44 – Measurement Computing GPIB-488 User Manual

Page 57

background image

Chapter 3

GPIB 488.1 Library Reference

Programming Reference Manual

3-44

GPIB-488

IBSIC

Asserts IFC (Interface Clear) signal. This re-initializes the GPIB system.

Syntax

C

ibsic (int board)

Parameters

board

is an integer containing the board handle.

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. The

ESAC

error is generated if the

specified GPIB Interface Board is not the system controller.

Usage Notes

This routine can only be used if the specified GPIB board is the system controller. When the
routine is executed, the GPIB interface board asserts the

IFC

(Interface Clear) signal for at

least 100 µsec. This action results in the system controller regaining control of the GPIB (for
example, becoming the Controller-In-Charge). When

IFC

line is asserted, all GPIB interface

functions of the bus devices are reset.

Example

This example resets the GPIB bus associated with the specified GPIB Interface Board and
makes that board Controller-In-Charge.

C

int gpib1;

gpib1 = ibfind("GPIB1");

ibsic (gpib1);