Ibsre, Ibsre -45 – Measurement Computing GPIB-488 User Manual

Page 58

Advertising
background image

Chapter 3

GPIB 488.1 Library Reference

GPIB-488

3-45

Programming Reference Manual

IBSRE

Asserts/Unasserts the REN (Remote Enable) line.

Syntax

C

ibsre (int board, int ren)

Parameters

board

is an integer containing the board handle.

ren

specifies whether the

REN

line is to be asserted or unasserted. If

ren

is zero, the

REN

line

is unasserted. Otherwise, the

REN

line is asserted.

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. Contains the previous

REN

state

if no error occurs.

Usage Notes

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

Even though the

REN

line is asserted, the device(s) is not put into remote state until is

addressed to listen by the Active Controller. When the REN line is unasserted, all devices
return to local control.

Example

This example puts the device at MLA 12 (2C hex, ASCII ,) and associated with GPIB
Interface Board 1 in remote mode.

C

int gpib1:

gpib1 = ibfind ("GPIB1");

ibsre (gpib1, 2);

/* Use any non-zero

value */

ibcmd (gpib1,",", 1);

Advertising