IEEE-488 Reference
5-94
[:LEVel]? Query logic level of specified line
Shortform formats: :sour:ttl?
:sour:ttl2?
:sour:ttl3?
:sour:ttl4?
Response message: 0 (false) or 1 (true)
These commands are used to set the logic levels for the digital output port. The actual level (high
or low) of a digital output line depends on its programmed polarity (see OUTPut Subsystem).
If the polarity of a line is active-high, then that line will be high when it is set to be true (1 or
ON), and low when it is set to be false (0 or OFF). Conversely, if the polarity is active-low, the
line will be low when it is set to be true, and high when it is set to be false.
10 OUTPUT 707; “:sour:ttl on; ttl?”
20 ENTER 707; A$
30 PRINT A$
40 END
Line 10 Sets output line #1 to true, and then queries the state of the output line.
Line 20 Addresses the 7001 to talk.
Line 30 Displays the state of output line #1 (1; on).
Query
command
Description
Programming
example
:SOURce Subsystem
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com