8: TSP command reference Model DMM7510 7½ Digit Graphical Sampling Multimeter
8-52 DMM7510-901-01 Rev. B / May 2015
Example 1
delay(0.250)
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.add(35)
timer.cleartime()
delay(0.5)
dt = timer.gettime()
print("Delay time was " .. dt)
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
Instrument reset
Power cycle
Usage
lineMode = digio.line[N].mode
digio.line[N].mode = 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
The digital I/O line (1 to 6)