Clear – Measurement Computing Personal488 rev.3.0 User Manual
Page 74

Personal488 for Windows 95/98/Me/NT/2000
04-10-01
API Reference 6-6
Clear
Syntax
INT WINAPI Clear(DevHandleT devHandle);
devHandle
refers to either an IEEE 488 hardware interface or an external device. If
devHandle
refers to a hardware interface, then a Device Clear (
DCL
) is sent. If
devHandle
refers to an external device, a Selected Device Clear (
SDC
) is sent.
Returns
-1
if error
Bus States
ATN
•DCL
(all devices)
ATN
•UNL, MTA, LAG, SDC
(selected device)
Examples
errorcode = Clear(ieee);
Sends the Device Clear (
DCL
) command to the
IEEE interface board.
errorcode = Clear(wave);
Sends the Selected Device Clear (
SDC
) command
to the WAVE device.
errorcode = Clear(dmm);
Sends the Selected Device Clear (
SDC
) command
to the DMM device.
See Also
Reset, ClearList
The
Clear
command causes 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.