IEEE-488 Reference
3-87
:OPEN? <list> Query specified channel.
The :OPEN <list> command is used to open a channel on the Model 2001-SCAN scanner card.
Since only one channel can be closed, the chanlist for this command can only consist of one
channel. An alternate way to open a closed channel is to simply use the ALL parameter. It opens
whichever channel is closed.
The :OPEN? <list> query command is used to determine the state (opened or not opened) of
each channel specified by the list parameter. For this command, the chanlist can consist of mul-
tiple channels. See the :CLOSe command for examples to express a chanlist.
After sending this query command and addressing the Model 2002 to talk, the values for the
specified channels are sent to the computer. A value of “1” indicates that the channel is open,
and a “0” indicates that the channel is not open.
PRINT #1, "output 16; :rout:clos(@ 5); open? (@ 1:10)" ' Close channel and
query
PRINT #1, "enter 16" ' Get response message
from 2002
:OPEN:ALL
:ROUTe:OPEN:ALL Open closed channel
This action command is used to open a closed channel on the Model 2001-SCAN. Note that this
command performs the same function as the :ROUTe:OPEN ALL command that was previous-
ly discussed.
PRINT #1, "output 16; :rout:open:all" ' Open all channels
:SCAN commands
[:INTernal] <list>
:ROUTe:SCAN[:INTernal] <list> Define internal scan list and enable scan.
<list> = (@ scanlist)
where; scanlist is the specified list of channels (1 to 10) to be scanned.
[:INTernal]? Query programmed scan list
This command is used to define the scan list for the internal Model 2001-SCAN scanner card.
The scan list can contain 2 to 10 channels. The following examples demonstrate the various
forms for expressing a scan list:
list = (@ 2,4,6) Channels separated by commas (,).
(@ 1:8) Range of channels (1 though 8). Range limits separated by a colon (:).
(@ 1:5,7) Range entry and single entry separated by a comma.
See paragraph 2.11 and the Model 2001-SCAN instruction manual for details on scanning.
PRINT #1, "output 16; :rout:scan (@ 1:5)" ' Define scan list and scan chan-
nels
Query
Description
Program fragment
3.17.3
Description
Program fragment
3.17.4
Parameters
Query
Description
Program fragment