National Instruments GPIB-MAC User Manual page 44

Table of Contents

Advertisement

November 1985
clr - Clear. Specified Device *
Bus Management function
clr [alist]cCR>
Syntax:
Purpose:
You use clr to reset the internal or device functions of
the specified devices. For example, a multimeter might
require that you send it either the GPIB Device Clear or
Selected Device Clear command to change its function,
range, and trigger mode back to its default setting. Use
clr to do this.
Remarks:
The argument alist is a list of addrs separated by
commas or spaces. addrs are device addresses that
specify the GPIB addresses you wish to clear. alist
may consist of only one addr.
A device address consists of a primary address and an
optional secondary address. The secondary address is
separated from the primary address by a plus sign (+).
Only the lower five bits of each address are significant
These bits may be in the range from 0 through 30 for
both the primary and the secondary address. Therefore,
the binary value 01100010 (decimal 98) is interpreted as
decimal 2.
The following examples all specify a primary address of
0 and a secondary address of 2. The listen address is
32, the talk address is 64, and the secondary address is
or 98, which are equivalent.
If you call clr with alist, the GPIB-MAC clears only the
devices specified in alist (Selected Device Clear).
If you call clr without alist, the GPIB-MAC clears all
devices (Device Clear).
33
SECTION FOUR - FUNCTIONS

Advertisement

Table of Contents
loading

Table of Contents