Ibloc, Ibloc -28 – Measurement Computing GPIB-488 User Manual

Page 41

Advertising
background image

Chapter 3

GPIB 488.1 Library Reference

Programming Reference Manual

3-28

GPIB-488

IBLOC

Forces the specified board/device to go to local program mode.

Syntax

C

ibloc (int boarddev)

Parameters

boarddev

is an integer containing the device or 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.

Usage Notes

This routine is used to place boards or devices temporarily in local mode. If this routine
specifies a device, the following GPIB commands are sent:

Talk address of the access board

Secondary address of the access board

Unlisten (UNL)

Listen address of the device

Secondary address of the device (as necessary)

Go to Local (GTL)

If this routine specifies a board, the board is placed in a local state by sending the Return to
Local (RTL) message, if it is not locked in remote mode. The LOK bit of the status word
indicates whether the board is in a lockout state. The

IBLOC

function is used to simulate a

front panel RTL switch if the computer is used as an instrument.

Example

Return GPIB board 1 to local state.

C

int gpib1;

gpib1 = ibfind("GPIB1");

ibloc (gpib1);

Advertising