Clear, Clear devclear, Syntax – Measurement Computing GPIB-488.2 User Manual
Page 22

3-4
IOtech to Associated MCC APIs
986992
GPIB 488.2 Porting Guide
The following would be used to check for listening devices present at GPIB primary addresses
6 and 7, on Board 0.
Example:
short addresslist[3] = {6,7,NOADDR};
short resultlist[4];
FindLstn(0, addresslist, resultlist, 4);
Also see IOtech’s:
FindListeners
IOtech GPIB Command
Associated MCC GPIB 488.2 Command(s)
Clear DevClear
Syntax
Clear
INT WINAPI Clear(DevHandleT devHandle);
DevClear DevClear(int board, short address)
Usage Notes
Clear, no longer to be used, caused the Device Clear (DCL) bus command to be issued to an
interface or a Selected Device Clear (SDC) command to be issued to an external device. IEEE
488 bus devices that receive a Device Clear or Selected Device Clear command normally reset
to their power-on state.
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 */