User manual

IEEE-488 Reference
4-162 2001-900-01 Rev. K / August 2010
: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).
4.20 :SOURce subsystem
This subsystem is used to set the logic level (true or false) of each digital output line. The com-
mands for this subsystem are summarized in Table 4-27.
[:LEVel] <b>
:SOURce:TTL[1]:[LEVel] <b> Control digital output line #1
:SOURce:TTL2:[LEVel] <b> Control digital output line #2
q~ÄäÉ=QJOT
SOURce command summary
Command Description
:SOURce
:TTL[1][:LEVel] <b>
:TTL[1][:LEVel]?
:TTL2[:LEVel] <b>
:TTL2[:LEVel]?
:TTL3[:LEVel] <b>
:TTL3[:LEVel]?
:TTL4[:LEVel] <b>
:TTL4[:LEVel]?
Set digital output line #1 true (1 or ON) or false (0 or OFF).
Query digital output line 1.
Set digital output line #2 true (1 or ON) or false (0 or OFF).
Query digital output line 2.
Set digital output line #3 true (1 or ON) or false (0 or OFF).
Query digital output line 3.
Set digital output line #4 true (1 or ON) or false (0 or OFF).
Query digital output line 4.
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 message.
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. If a LIMITS control is enabled (LOLIM1 or 2, HILIM1 or 2 — High, Low, or Pass), this command does not check or change the out-
put status. Refer to paragraph 3.12.5 for information on limits.