Series 3700 System Switch/Multimeter Reference Manual
Section 9
:
Instrument Control Library (ICL)
Document Number: 3700S-901-01 Rev. A / August 2007
9-53
digio.trigger[N].wait
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
digio.writeprotect
(on page 9-53)
attribute, the command will be ignored.
The reset function does not affect the present states of the digital I/O lines.
Also see
digio.readbit
(on page 9-48),
digio.readport
(on page 9-49),
digio.writeport
(on page 9-
53)
Example
Sets digital I/O line 4 low (0):
digio.writebit(4, 0)
digio.writeport
Function
Writes to all digital I/O lines.
Usage
digio.writeport(data)
data
: Value to write to the port; 0 to 16383.
Remarks
The binary representation of data indicates the output pattern to be written to the
I/O port. For example, a data value of 170 has a binary equivalent of
00000010101010. Lines 2, 4, 6 and 8 are set high (1), and the other 10 lines are
set low (0).
Write protected lines will not be changed (see
digio.writeprotect
(on page 9-53)).
The reset function does not affect the present states of the digital I/O lines.
Also see
digio.readbit
(on page 9-48)
digio.readport
(on page 9-49)
digio.writebit
(on page 9-53)
Example
Sets digital I/O lines 1 through 8 high (binary 00000011111111):
digio.writeport(255)
digio.writeprotect
Attribute
Write protect mask that disables bits from being changed with the
digio.writebit
(on page
9-53) and
digio.writeport
(on page 9-53) functions.