Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-55
(on page 7-53)
delay()
This function delays the execution of the commands that follow it.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function No
Usage
delay(seconds)
seconds
The number of seconds to delay, maximum 100,000
Details
It is impossible to delay for zero seconds.
The system delays execution of the commands for at least the specified number of seconds and fractional
seconds. However, the processing time may cause the system to delay 5
μ
s to 10
μ
s (typical) more than the
requested delay.
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, then delay 0.5
seconds before reading it.
Output:
Delay time was 0.500099
3.50001
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