Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-50
2461-901-01 A/November 2015
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.cleartime()
delay(0.5)
dt = timer.gettime()
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
35
Also see
None
digio.line[N].mode
This attribute sets the mode of the digital I/O line to be a digital line, trigger line, or synchronous line and sets the
line to be input, output, or open-drain.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Restore configuration
Instrument reset
Power cycle
Configuration script
digio.MODE_DIGITAL_IN
Usage
lineMode
= digio.line[
N
].mode
digio.line[
N
].mode =
lineMode
lineMode
The digital line control type and line mode:
Digital control, input:
digio.MODE_DIGITAL_IN
Digital control, output:
digio.MODE_DIGITAL_OUT
Digital control, open-drain:
digio.MODE_DIGITAL_OPEN_DRAIN
Trigger control, input:
digio.MODE_TRIGGER_IN
Trigger control, output:
digio.MODE_TRIGGER_OUT
Trigger control, open-drain:
digio.MODE_TRIGGER_OPEN_DRAIN
Synchronous master:
digio.MODE_SYNCHRONOUS_MASTER
Synchronous acceptor:
digio.MODE_SYNCHRONOUS_ACCEPTOR
N
The digital I/O line (1 to 6)