High Voltage SourceMeter Instrument Reference Manual Section 14:
2470-901-01 Rev. A / May 2019 14-51
Also see
dataqueue.add() (on page 14-47)
dataqueue.CAPACITY (on page 14-48)
dataqueue.clear() (on page 14-48)
dataqueue.count (on page 14-49)
format.asciiprecision (on page 14-82)
Using the data queue for real-time communication (on page 9-10)
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)
The number of seconds to delay (0 to 100 ks)
Details
The instrument delays execution of the commands for at least the specified number of seconds and
fractional seconds. However, the processing time may cause the instrument to delay 5 μs to 10 μs
(typical) more than the requested delay.
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