beautypg.com

Local, Locallist, Local enablelocal – Measurement Computing GPIB-488.2 User Manual

Page 35: Locallist enablelocal syntax

background image

GPIB 488.2 Porting Guide

986992

IOtech to Associated MCC APIs

3-17

IOtech GPIB Command

Associated MCC GPIB 488.2 Command(s)

Local EnableLocal

IOtech GPIB Command

Associated MCC GPIB 488.2 Command(s)

LocalList EnableLocal

Syntax

Local

INT WINAPI Local(DevHandleT devHandle);

LocalList

INT WINAPI LocalList(DevHandlePT devHandleList);

EnableLocal

EnableLocal(int board, short addresslist[])

Usage Notes

Local is no longer to be used. When in the System Controller mode, the Local command was
used to unassert the Remote Enable (REN) line. This caused devices to return to manual
operation.

LocalList is no longer to be used. Used like Local, but for a list of devices.

EnableLocal

is used to place specified devices in local mode, meaning that they can be

programmed from their local, on-device, controls. When this routine is executed, the Controller
addresses the specified GPIB devices as listeners and then sends the GPIB Go To Local (GTL)
command. To put all devices in local mode, use an array containing only the NOADDR value.
This unasserts the GPIB Remote Enable (REN) line, thereby placing all GPIB devices in local
mode.
The following example shows instruction to put the GPIB devices, at addresses 6 and 7
(connected to board 0), in local mode.

Example
:

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

EnableLocal(0, addresslist);