November 1985
National Instruments
clr Clear. Specified Device
Syntax:
Purpose:
Remarks:
Bus Management function
clr
You use
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.
The argument
is a list of addrs separated by
commas or spaces. addrs are device addresses that
specify the GPIB addresses you wish to clear.
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.
or
or
or
If you call
with
the GPIB-MAC clears only the
devices specified in
(Selected Device Clear).
If you call clr without
the GPIB-MAC clears all
devices (Device Clear).
33
SECTION FOUR FUNCTIONS