beautypg.com

Devclearlist, Devclearlist -4 – Measurement Computing GPIB-488 User Manual

Page 72

background image

Chapter 4

GPIB 488.2 Library Reference

Programming Reference Manual

4-4

GPIB-488

DevClearList

Clears specified devices.

Syntax

C

DevClearList(int board, short addresslist[])

Parameters

board

is an integer which identifies the GPIB board to be used for this operation. In most

applications, this value is 0.

addresslist

is an array of GPIB addresses, terminated by the value

NOADDR

. These

addresses identify the devices to be cleared.

Returns

ibsta

will contain a 16-bit status word as described in Appendix B,

IBSTA

.

iberr

will contain an error code, if an error occurred.

Usage Notes

This routine sends the GPIB Selected Device Clear (SDC) to the devices specified by

addresslist

.

To clear only one device, use

DevClear

.

Example

This clears the devices at GPIB addresses 6 and 7, connected to GPIB board 0.

C

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

DevClearList(0, addresslist);