IEEE-488 Reference
4-97
Query :OPEN? <list> Query specified channel.
Short-form format: :rout:open? <list>
where; chanlist is the list of channels to be queried.
Response message: 1 (Specified channel is open)
0 (Specified channel is not open)
Description 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 need only consist of one
channel. An alternate way to open a closed channel is to simply use the ALL parameter. It will
open whichever channel is currently 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. The following examples demonstrate the various forms for expressing the chan-
list for this query command:
list = (@ 2) Single channel.
= (@ 2,4,6) Multiple channels separated by commas (,).
= (@ 1:10) Range of channels (1 though 10). Range limits separated by a colon (:).
= (@ 1:5,7) Range entry and single entry separated by a comma.
After sending this query command and addressing the Model 2001 to talk, the values for the
specified channels will be sent to the computer. A value of “1” indicates that the channel is open,
and a “0” indicates that the channel is not open.
For example, assume channel 5 is closed and the following query command is sent:
:rout:open? (@ 1:10)
After the addressing the Model 2001 to talk, the following response message will be sent to the
computer:
1, 1, 1, 1, 0, 1, 1, 1, 1, 1
NOTE: Sending the :OPEN or :OPEN? command with the scanner card missing will result in
an error.
Programming example 10 OUTPUT 716; “:rout:clos (@ 10); open? (@ 1:10)”
20 ENTER 716; A$
30 PRINT A$
40 END
Line 10 Two commands in this program message; the first closes channel 10, and the second
queries all 10 channels.
Line 20 Addresses the Model 2001 to talk.
Line 30 Displays the state of all 10 channels (1, 1, 1, 1, 1, 1, 1, 1, 1, 0).
4.18.3 :OPEN:ALL
:ROUTe:OPEN:ALL Open closed channel
Format :rout:open:all