![Keithley 2651A Скачать руководство пользователя страница 360](http://html1.mh-extra.com/html/keithley/2651a/2651a_reference-manual_661729360.webp)
Section 7: Command reference
Model 2651A High Power System SourceMeter® Instrument Reference Manual
7-52
2651A-901-01 Rev. A / March 2011
Usage
digio.writebit(
N
,
data
)
N
Digital I/O trigger line (1 to 14)
data
The value to write to the bit:
•
0
(low)
•
Non-zero
(high)
Details
If the output line is write-protected using the
digio.writeprotect
attribute, the command is 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 trigger operation is set to
digio.TRIG_BYPASS
.
The data must be zero (0) to clear the bit. Any value other than zero (0) sets the bit.
Example
digio.writebit(4, 0)
Sets digital I/O Line 4 low (0).
Also see
(on page 7-43)
(on page 7-43)
(on page 7-46)
digio.writeport()
This function writes to all digital I/O lines.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
digio.writeport(
data
)
data
Value to write to the port (0 to 16383)
Details
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 are not changed.
The
reset()
function does not affect the present states of the digital I/O lines.
Use the
digio.writebit()
and
digio.writeport()
commands to control the output state of the
synchronization line when trigger operation is set to
digio.TRIG_BYPASS
.