Keithley 2651A Reference Manual page 197

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Section 3: Functions and features
Remote TSP-Link synchronization line commands
Commands that control and access the TSP-Link
following table. See
the table in
control and access the digital I/O port and individual lines.
Use the commands in following table to perform basic steady-state digital I/O operations; for example,
you can program the Model 2651A to read and write to a specific TSP-Link synchronization line or to
the entire port.
The TSP-Link synchronization lines can be used for both input and output. You must write a 1 to all
TSP-Link synchronization lines that are used as inputs.
Remote synchronization line commands
Command
tsplink.readbit(bit)
tsplink.readport()
tsplink.writebit(bit, data)
tsplink.writeport(data)
tsplink.writeprotect = mask
Programming example
The programming example below illustrates how to set Bit B1 of the digital I/O port high, and then
read the entire port value:
tsplink.trigger[1].mode = tsplink.TRIG_BYPASS
-- Set Bit B1 high.
tsplink.writebit(1, 1)
-- Read I/O port.
data = tsplink.readport()
3-90
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Remote commands
Digital I/O bit weighting
®
synchronization port are summarized in the
(on page 5-1) for complete details on these commands. See
(on page 3-87) for the decimal and hexadecimal values used to
NOTE
Description
Reads one digital I/O input line.
Reads the digital I/O port.
Writes data to one digital I/O line.
Writes data to the digital I/O port.
Sets write-protect mask of the digital I/O port.
2651A-901-01 Rev. A / March 2011

Advertisement

Table of Contents
loading

Table of Contents