Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-52
707B-901-01 Rev. B / January 2015
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 (0 to 100,000 s)
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
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.
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
Usage
data
= digio.readbit(
N
)
data
The state of the I/O line
N
Digital I/O line number to be read (1 to 14)
Details
A returned value of zero (0) indicates that the line is low. A returned value of one (1) indicates that the
line is high.
Example
print(digio.readbit(4))
Assume line 4 is set high, and it is then read.
Output:
1.000