Keithley 3700 series Reference Manual page 193

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

Advertisement

Series 3700 System Switch/Multimeter Reference Manual
digio.readbit
Example
digio.readport
Function
Usage
Remarks
Also see
Example
digio.trigger[N].assert
Function
Usage
Remarks
Also see
Example
digio.trigger[N].clear
Function
Usage
Remarks
Also see
Document Number: 3700S-901-01 Rev. A / August 2007
Assume line 4 is set high, and it is then read:
data = digio.readbit(4)
print(data)
Output:
1.000000e+00
Reads the digital I/O port.
data = digio.readport()
The binary equivalent of the returned value indicates the input pattern on the I/O port.
The least significant bit of the binary number corresponds to line 1 and bit 14
corresponds to line 14. For example, a returned value of 170 has a binary equivalent of
00000010101010. Lines 2, 4, 6 and 8 are high (1), and the other 10 lines are low (0).
digio.readport
(on page 9-49),
53)
Assume lines 2, 4, 6 and 8 are set high, and the I/O port is then read:
data = digio.readport()
print(data)
Output: 1.700000e+02 (binary 10101010)
Asserts a trigger on one of the digital I/O lines.
digio.trigger[N].assert()
N: Digital I/O trigger line: 1 to 14
The set pulsewidth determines how long the trigger is asserted.
digio.trigger[N].pulsewidth
Asserts trigger on I/O line 2:
digio.trigger[2].assert()
Clears a trigger event on a digital I/O line.
digio.trigger[N].clear()
N: Digital I/O trigger line: 1 to 14
A trigger's event detector remembers if a trigger event has been detected since the last
digio.trigger[N].wait call. This function clears a trigger's event detector and discards the
previous history of the trigger line.
digio.trigger[N].wait
(on page 9-52)
Section 9: Instrument Control Library (ICL)
digio.writebit
(on page 9-53),
(on page 9-51)
digio.writeport
(on page 9-
9-49

Advertisement

Table of Contents
loading

Table of Contents