Keithley 2601 Reference Manual page 230

System sourcemeter 2600 series (smu)
Hide thumbs Also See for 2601:
Table of Contents

Advertisement

Section 10: Digital I/O and Triggering
Table 10-2
Digital I/O commands
Command
Commands for basic I/O:
digio.readbit(bit)
digio.readport()
digio.writebit(bit, data)
digio.writeport(data)
digio.writeprotect = mask
Commands for digital I/O triggering:
digio.trigger[line].assert()
digio.trigger[line].clear()
digio.trigger[line].mode = mode
digio.trigger[line].pulsewidth = width
digio.trigger[line].release()
digio.trigger[line].wait(timeout)
Basic digital I/O commands
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.
Digital I/O trigger commands
Use these commands to trigger the Series 2600 using external trigger pulses applied to the digital
I/O port, or to provide trigger pulses to external devices.
NOTE The digital I/O lines can be used for both input and output. You must
Digital I/O programming examples
Basic 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.writebit(1,1)
data = digio.readport()
Digital I/O trigger example
The commands below set the line 2 pulse width to 10μs, trigger mode to falling edge, and then
assert a trigger pulse on that digital I/O line:
digio.trigger[2].pulsewidth = 1e-5
digio.trigger[2].mode = digio.TRIG_FALLING --Set line 2 mode to falling edge.
digio.trigger[2].assert()
10-6
Description
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
Generate a trigger on digital I/O line
Clear the event detector for a trigger
Control I/O trigger event detector mode:
see "digio.trigger[N].mode" on page 12-20 for more
information.
Set trigger pulse width
Release latched trigger
Wait for a trigger
write a 1 to all digital I/O lines that are to be used as inputs.
Return to
Section Topics
Series 2600 System SourceMeter® Instruments Reference Manual
--Set bit 1 high.
--Read digital I/O port.
--Set line 2 pulse width to 10ms.
--Assert trigger on line 2.
2600S-901-01 Rev. C / January 2008

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

26362602261126122635

Table of Contents