Digio.readport(); Digio.trigger[N].Assert() - Keithley 3700A Series Reference Manual

System switch/multimeter
Hide thumbs Also See for 3700A Series:
Table of Contents

Advertisement

Section 11: TSP command reference

digio.readport()

This function reads the digital I/O port.
Type
TSP-Link accessible
Function
Yes
Usage
data = digio.readport()
data
Details
The binary equivalent of the returned value indicates the value of the input lines on the I/O port. The
least significant bit (bit B1) of the binary number corresponds to line 1; bit B14 corresponds to line 14.
For example, a returned value of 170 has a binary equivalent of 000000010101010, which indicates
that lines 2, 4, 6, and 8 are high (1), and the other 10 lines are low (0).
Example
data = digio.readport()
print(data)
Also see
digio.readbit()
digio.writebit()
digio.writeport()

digio.trigger[N].assert()

This function asserts a trigger pulse on one of the digital I/O lines.
Type
TSP-Link accessible
Function
Yes
Usage
digio.trigger[N].assert()
N
Details
The pulse width that is set determines how long the instrument asserts the trigger.
Example
digio.trigger[2].assert()
Also see
digio.trigger[N].pulsewidth
11-116
Affected by
The present value of the input lines on the digital I/O port
(on page 11-115)
(on page 11-124)
(on page 11-125)
Affected by
Digital I/O trigger line (1 to 14)
(on page 11-120)
Series 3700A System Switch/Multimeter Reference Manual
Where saved
Default value
Assume lines 2, 4, 6, and 8 are set high when
the I/O port is read.
Output:
1.70000e+02
This is binary 10101010
Where saved
Default value
Asserts a trigger on digital I/O line 2.
3700AS-901-01 Rev. D/June 2018

Advertisement

Table of Contents
loading

Table of Contents