Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-52 2601B-PULSE-901-01A April 2020
digio.writebit()
This function sets a digital I/O line high or low.
Usage
digio.writebit(N, data)
Digital I/O trigger line (1 to 14)
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
Sets digital I/O line 4 low (0).
Also see
digio.readbit() (on page 11-42)
digio.readport() (on page 11-43)
digio.trigger[N].mode (on page 11-45)
digio.writeport() (on page 11-52)
digio.writeprotect (on page 11-53)
digio.writeport()
This function writes to all digital I/O lines.
Usage
digio.writeport(data)
Value to write to the port (0 to 16383)