
2606B System SourceMeter® Instrument Reference Manual
Section 3: Functions and features
2606B-901-01 Rev. B / May 2018
3-81
Remote digital I/O commands
Commands that control and access the digital I/O port are summarized in the following table. See the
(on page 7-1) for complete details on these commands. See the following
table for decimal and hexadecimal values used to control and access the digital I/O port and
individual lines. Use these commands to trigger the 2606B using external trigger pulses applied to the
digital I/O port, or to provide trigger pulses to external devices.
Use these commands to perform basic steady-state digital I/O operations such as reading and writing
to individual I/O lines or reading and writing to the entire port.
The digital I/O lines can be used for both input and output. You must write a 1 to all digital I/O lines
that are to be used as inputs.
Remote digital I/O commands
Command
Description
digio.readbit(
bit
)
Read one digital I/O input line
digio.readport()
Read digital I/O port
digio.writebit(
bit, data
)
Write data to one digital I/O output line
digio.writeport(
data
)
Write data to digital I/O port
digio.writeprotect =
mask
Write protect mask to digital I/O port
Digital I/O programming example
The programming commands below illustrate how to set bit B1 of the digital I/O port high, and then
read the entire port value.
digio.trigger[1].mode = digio.TRIG_BYPASS
-- Set Bit B1 high.
digio.writebit(1,1)
-- Read digital I/O port.
data = digio.readport()
Using output enable
Each module of the 2606B includes a digital I/O port that provides an output enable line for use with a
test fixture switch. When properly used, the output of the module turns OFF when the lid of the test
fixture is opened. See
(on page 2-54) for important safety information when
using a test fixture.
When an interlock is required for safety, a separate circuit should be provided that meets the
requirements of the application to reliably protect the operator from exposed voltages. The
digital I/O port of the 2606B is not suitable for control of safety circuits and should not be
used to control a safety interlock.