12-22
Return to
2600S-901-01 Rev. C / January 2008
Section 12: Instrument Control Library
Series 2600 System SourceMeter® Instruments Reference Manual
Example
Waits up to three seconds for a trigger to be detected on trigger line 4, then displays if the
trigger was detected:
triggered = digio.trigger[4].wait(3)
print(triggered)
Output:
false
Triggers are not detected.
true
Triggers are detected.
digio.writebit
Function
Sets a digital I/O line high or low.
Usage
digio.writebit(N, data)
N
The digital I/O line number (1 to 14).
data
The
value to write to the bit; 0 (low) or 1 (high).
Remarks
•
If the output line is write protected, via the
attribute, the command
will be ignored.
• The
reset
function does not affect the present state of the digital I/O lines.
• Use the
digio.writebit
and
digio.writeport
commands to control the output
state of the synchronization line when the trigger mode is set to
digio.TRIG_BYPASS
.
Details
See “
.
Also see
,
Example
-- Sets digital I/O line 4 low (0):
digio.writebit(4, 0)