beautypg.com

Reset, Reset resetsys, Syntax – Measurement Computing GPIB-488.2 User Manual

Page 52

background image

3-34

IOtech to Associated MCC APIs

986992

GPIB 488.2 Porting Guide

IOtech GPIB Commands

Associated MCC GPIB 488.2 Command(s)

Reset ResetSys

Syntax

Reset

INT WINAPI Reset(DevHandleT devHandle);

ResetSys

ResetSys(int board, short addresslist[])


Usage Notes

Reset is no longer to be used. The Reset command provided a warm-start of the interface.
ResetSys - This routine initializes the GPIB bus and all specified devices. First, the system
controller asserts the REN (Remote Enable) line and then the IFC (Interface Clear) line. This
action unlistens and untalks all of the attached GPIB devices and causes the system controller to
become the Controller-In-Charge (CIC).The Device Clear (DCL) message is then sent to all of
the connected devices. This forces the devices to return to their default states and ensures that
they can receive the Reset (RST) message. A reset message (RST) is then sent to all of the
devices specified by addresslist. This resets the devices to specific parameters.
The command, in the following example, resets the GPIB devices connected to GPIB board 0
and assigned GPIB bus addresses of 6 and 7.
Example

:

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

ResetSys(0, addresslist);