![background image](http://html1.mh-extra.com/html/keithley/sourcemeter-2600-series/sourcemeter-2600-series_reference-manual_4098633297.webp)
Series 2600 System SourceMeters Reference Manual
Instrument Control Library 12-23
Return to
2600S-901-01 Rev. A / May 2006
digio.trigger[N].wait
N is a digital I/O trigger line: 1 to 8
Function
Waits for a trigger.
Usage
triggered = digio.trigger[N].wait(timeout)
timeout
Set timeout in seconds.
triggered
Returns ‘true’ if a trigger was detected, or ‘false’ if no triggers were
detected during the timeout period.
Remarks
This function will wait up to
timeout
seconds for an input trigger. If one or more trigger
events were detected since the last time
digio.trigger[N].wait
or
digio.trigger[N].clear
was called, this function will return immediately. After
waiting for a trigger with this function, the event detector will be automatically reset and
re-armed. This is true regardless of the number of events detected.
Details
See “
” in
.
Also see
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
(no triggers detected)
true
(trigger
detected)
digio.writebit
Function
Sets a digital I/O line high or low.
Usage
digio.writebit(bit, data)
bit
Digital I/O line number (1 to 14)
data
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 states of the digital I/O lines.
Details
See “
” in
.
Also see
Example
Sets digital I/O line 4 low (0):
digio.writebit(4, 0)
Содержание SourceMeter 2600 Series
Страница 507: ...AppendixA Specifications Appendix A topics Model 2600S Specifications page A 2 2600S 901 01 Rev A May 2006...
Страница 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Страница 592: ......
Страница 593: ......