S Mode Functions
Chapter 5
GPIB-232CT User Manual
5-6
© National Instruments Corp.
clr - Clear Specified Device *
Type:
Bus Management function
Syntax:
cl
r [alist]
<CR>
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.
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 can 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 2 or 98, which are
equivalent.
0+2
or
0+98
or
32+98
or
0+\x62
If you call
clr
with
alist
, the GPIB-232CT clears only the
devices specified in
alist
(Selected Device Clear).
If you call
clr
without
alist
, the GPIB-232CT clears all
devices (Device Clear).
If this is the first function you call that requires GPIB
Controller capability, and you have not disabled System
Controller capability with
rsc
, the GPIB-232CT sends
Interface Clear (IFC) to make itself CIC. It also asserts
Remote Enable.