Section 9: TSP command reference Series 2600B System SourceMeter® instrument Reference Manual
9-64 2600BS-901-01 Rev. F/August 2021
digio.writeport()
This function writes to all digital I/O lines. This command is not available on the 2604B, 2614B, or 2634B.
Usage
digio.writeport(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.
Example
Sets digital I/O Lines 1 through 8 high (binary 00000011111111).
Also see
digio.readbit() (on page 9-54)
digio.readport() (on page 9-55)
digio.writebit() (on page 9-63)
digio.writeprotect (on page 9-64)
digio.writeprotect
This attribute contains the write-protect mask that protects bits from changes from the digio.writebit() and
digio.writeport() functions. This command is not available on the 2604B, 2614B, or 2634B.
Instrument reset
Recall setup
Usage
mask = digio.writeprotect
digio.writeprotect = mask
Sets the value that specifies the bit pattern for write-protect