IEEE-488 Reference
4-166
:TTL[1]:DATA?
:SENSe2:TTL[1]:DATA? Read input port
Format :sens2:ttl:data?
Description This command is used to read the single line of the digital input port. After sending this com-
mand and addressing the Model 2001 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).
Programming example 10 OUTPUT 716; “:sens2:ttl:data?”
20 ENTER 716; A$
30 PRINT A$
40 END
Line 10 Read the input port.
Line 20 Addresses the Model 2001 to talk.
Line 30 Displays the status of the input port (0 or 1).