System SourceMeter® Instrument Reference Manual Section 7:
2600BS-901-01 Rev. B / May 2013 7-49
delay()
This function delays the execution of the commands that follow it.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
delay(seconds)
The number of seconds to delay (1 to 100,000 s)
Details
You cannot set a delay for zero seconds.
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)
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.add(35)
timer.reset()
delay(0.5)
dt = timer.measure.t()
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
3.500000000e+01
Also see
None
digio.readbit()
This function reads one digital I/O line. This function is not available on the Models 2604B/2614B/2634B.
Type TSP-Link accessible
Affected by Where saved Default value
Function Yes
Usage
data = digio.readbit(N)
The state of the I/O line
Digital I/O line number to be read (1 to 14)