beautypg.com

Enableremote, Enableremote -6 – Measurement Computing GPIB-488 User Manual

Page 74

background image

Chapter 4

GPIB 488.2 Library Reference

Programming Reference Manual

4-6

GPIB-488

EnableRemote

Allow remote programming (by sending messages over the GPIB line) of a device.

Syntax

C

EnableRemote(int board, short addresslist[])

Parameters

board

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

applications, this value is 0.

addresslist

is an array of GPIB addresses, terminated by the value

NOADDR

. These

addresses identify the devices to be put in remote programming mode.

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

When this routine is executed, the system controller asserts the

Remote Enable

(REN) line

and the Controller addresses the specified devices as listeners.

Example

Places devices at GPIB addresses 6 and 7 (connected to GPIB board) in remote mode.

C

short addresslist[3] = {6,7,NOADDR};

EnableRemote(0, addresslist);