beautypg.com

Unlisten, Untalk, Unlisten untalk devclear – Measurement Computing GPIB-488.2 User Manual

Page 63: Syntax

background image

GPIB 488.2 Porting Guide

986992

IOtech to Associated MCC APIs

3-45

IOtech GPIB Command

Associated MCC GPIB 488.2 Command(s)

UnListen

UnTalk

DevClear

Syntax

UnListen INT WINAPI UnListen (DevHandleT devHandle);

UnTalk

INT WINAPI UnTalk (DevHandleT devHandle);

DevClear DevClear(int board, short address)

Usage Notes

UnListen, no longer to be used. This command was used to unaddress an external device that
was addressed to Listen.
UnTalk, no longer to be used. This command was used to unaddress an external device that
was addressed to Talk.
DevClear

is used to clear one device. This routine sends the GPIB Selected Device Clear

(SDC) message to the specified device. To clear multiple devices, use the DevClearList
routine. If address is set to NOADDR, then all connected devices on the GPIB, are cleared
through the Universal Device Clear (UDC) message.
To clear the device at GPIB primary address 4, secondary address 30, and connected to GPIB
board 0, we would follow the example.

Example
:

DevClear(0, MakeAddr (4,30));

/* Use MakeAddr macro (in GPIB.H) to pack

primary and secondary address */