IEEE-488 Reference
5-92
:SENSe2 and :SENSe3 Subsystems
:DATA? <list>
:SENSe2:DATA? <list> Read specified inputs of slot 1
:SENSe3:DATA? <list> Read specified inputs of slot 2
<list> = (@ chanlist)
where: chanlist is the specified list of input channels to be read.
:sens2:data?
:sens3:data?
These commands are used to read the specified inputs of digital I/O cards installed in the slots
of the mainframe. After sending one of these commands and addressing the Model 7001 to talk,
a value indicating the status of each specified input channel is sent to the computer. A value of
“1” indicates that the input channel is high (on) and a value of “0” indicates that the input chan-
nel is low (off).
The conventional form for the <list> parameter includes the slot and input channel number.
However, for these commands, you do not need to include the slot number. For example, you
can send either of the following two commands to read input channel 23 of slot 2:
:SENSe3:DATA? (@2!23) or :SENSe3:DATA? (@23)
After the mainframe is addressed to talk, the response message will indicate the state of the input
channel 23 of slot 2.
In another example, you can send either of the following two commands to read all 40 input
channels of an I/O card in slot 2:
:SENSe3:DATA? (@ 1!1:1!40) or :SENSe3:DATA? (@ 1:40)
The response message will include a “0” (off) or “1” (on) for each of the 40 input channels (i.e.
“0, 0, 0, 1, 0 ... 1”).
You can send up to two of the query commands in the same program message. For example, the
following program message is valid:
:sense2:data? <list>; :sens3:data? <list>
Sending three or more of these queries in the same program message will cause the Model 7001
to lock up and will require that you send an IFC and then a DCL to restore operation.
Send one of these query commands for a slot which does not have an I/O card installed will re-
sult in the following error message:
ERROR: ID CODE = -241
Hardware missing
10 OUTPUT 707; “:sens3:data? (@36)”
20 ENTER 707; A$
30 PRINT A$
40 END
Line 10 Reads input channel 36 of slot 2.
Line 20 Addresses the mainframe to talk.
Line 30 Displays the status of channel 36.
Parameter
Short-form
formats
Description
Programming
example
Sense Subsystems
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com