
2600AS-901-01 Rev. B / September 2008
Return to
8-5
Series 2600A System SourceMeter® Instruments Reference Manual
Section 8: Digital I/O
5.
To remove write protection, repeat Step 1 thorough Step 4 and then enter the original value.
Remote digital I/O commands
Commands that control and access the digital I/O port are summarized in
for complete details on these commands. See
for decimal and hexadecimal
values used to control and access the digital I/O port and individual lines. Use these commands to
trigger the Series 2600A 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.
NOTE 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.
Table 8-2
Remote digital I/O commands
Digital I/O programming example
The commands below set bit 1 of the digital I/O port high, and then read the entire port value.
digio.trigger[1].mode = digio.TRIG_BYPASS
-- Set bit 1 high.
digio.writebit(1,1)
-- Read digital I/O port.
data = digio.readport()
Output enable (Models 2601A/2602A)
Overview
The Model 2601A/2602A digital I/O port provides an output enable line for use with a test fixture
switch. When properly used, the output of the SourceMeter instrument will turn OFF when the lid
of the test fixture is opened. See
for important safety information when using a test
fixture.
Command
Description
digio.readbit(bit)
digio.readport()
digio.writebit(bit, data)
digio.writeport(data)
digio.writeprotect = mask
Read one digital I/O input line
Read digital I/O port
Write data to one digital I/O output line
Write data to digital I/O port
Write protect mask to digital I/O port