7: TSP command reference Series 2600B System SourceMeter® Instrument
7-64 2600BS-901-01 Rev. C / August 2016
digio.writebit()
This function sets a digital I/O line high or low. This function is not available on the Models 2604B/2614B/2634B.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
digio.writebit(N, data)
Digital I/O trigger line (1 to 14)
The value to write to the bit:
• 0 (low)
•
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
Sets digital I/O line 4 low (0).
Also see
digio.readbit() (on page 7-54)
digio.readport() (on page 7-54)
digio.trigger[N].mode (on page 7-56)
digio.writeport() (on page 7-64)
digio.writeprotect (on page 7-65)
digio.writeport()
This function writes to all digital I/O lines. This function is not available on the Models 2604B/2614B/2634B.
Type TSP-Link accessible
Affected by Where saved Default value
Function Yes
Usage
digio.writeport(data)
Value to write to the port (0 to 16383)