![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750362.webp)
Model 2657A High Power System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2657A-901-01 Rev. B/December 2012
7-49
Example 1
beeper.beep(0.5, 2400)
delay(0.250)
beeper.beep(0.5, 2400)
Emit a double-beep at 2400 Hz. The sequence is
0.5 s on, 0.25 s off, 0.5 s on.
Example 2
dataqueue.clear()
dataqueue.add(35)
timer.reset()
delay(0.5)
dt = timer.measure.t()
print("Delay time was " .. dt)
print(dataqueue.next())
Clear the data queue, add 35 to it, and then delay
0.5 seconds before reading it.
Output:
Delay time was 0.500099
3.01
Also see
None
digio.readbit()
This function reads one digital I/O line.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
data
= digio.readbit(
N
)
data
The state of the I/O line
N
Digital I/O line number to be read (1 to 14)
Details
A returned value of zero (0) indicates that the line is low. A returned value of one (1) indicates that the line is
high.
Example
print(digio.readbit(4))
Assume line 4 is set high, and it is then read.
Output:
1.00
Also see
(on page 7-50)
(on page 3-80)
Содержание 2657A
Страница 3: ......