beautypg.com

Ibrsc, Ibrsc -40 – Measurement Computing GPIB-488 User Manual

Page 53

background image

Chapter 3

GPIB 488.1 Library Reference

Programming Reference Manual

3-40

GPIB-488

IBRSC

Request/Release System Control.

Syntax

C

ibrsc (int board, int control)

Parameters

board

is an integer containing the board handle.

control

indicates whether the GPIB Interface Board is to become the system controller or

to relinquish system control capability. If

control

is non-zero, the specified board becomes

the system controller on the GPIB. If

control

is 0, the board is not the system controller.

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 no error occurs,

iberr

equals 1 if

the specified interface board was previously the system controller or 0 if it was not.

Usage Notes

There may only be one system controller in a GPIB system.

Example

This example makes GPIB board 1 the system controller.

C

int gpib1;

gpib1 = ibfind ("gpib1");

ibrsc (gpib1, 3);