Section 7: TSP command reference Model 2657A High Power System SourceMeter® Instrument Reference Manual
7-58 2657A-901-01 Rev. B/December 2012
digio.writebit()
This function sets a digital I/O line high or low.
Type TSP-Link accessible
Affected by Where saved Default value
Function Yes
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
digio.readbit() (on page 7-49)
digio.readport()
(on page 7-50)
digio.trigger[N].mode
(on page 7-52)
digio.writeport()
(on page 7-58)
digio.writeprotect
(on page 7-59)
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)