IEEE-488 Reference
5-91
5.14 Sense Subsystems
The Sense subsystems are used to read digital input ports. The :SENSe1 Subsystem is used to read the built-in digital input lines.
The :SENSe2 and :SENSe3 Subsystems are used to read the inputs of digital cards installed in slots 1 and 2 respectively.
Table 5-9
SENSe command summary
Command Description
:SENSe[1]
:TTL[1]
:DATA?
Command path to read internal input line.
Read internal digital input line.
:SENSe2
:DATA? <list>
Command path:
Read specified input channels for slot 1.
:SENSe3
:DATA? <list>
Command path:
Read specified input channels for slot 2.
Notes:
1. Brackets ([ ]) are used to denote optional character sets. These optional characters do not
have to be included in the program message. Do not use brackets ([ ]) in the program mes-
sage.
2. Angle brackets (< >) are used to indicate parameter type. Do not use angle brackets (< >) in
the program message.
3. Upper case characters indicate the short-form version for each command word.
4. At least one space is requred between a command word and the parameter.
:SENSe[1] Subsystem
:TTL[1]:DATA?
:SENSe[1]:TTL[1]:DATA? Read internal input port
:sens:ttl:data?
This command is used to read the single line of the digital input port. After sending this com-
mand and addressing the Model 7001 to talk, a value indicating the status of the port will be sent
to the computer.
A value of “1” indicates that the input port is high (ON), and a value of “0” indicates that the
port is low (OFF).
10 OUTPUT 707; “:sens:ttl:data?”
20 ENTER 707; A$
30 PRINT A$
40 END
Line 10 Read the input port.
Line 20 Addresses the 7001 to talk.
Line 30 Displays the status of the input port (0 or 1).
Short-form
formats
Description
Programming
example
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com