2600S-901-01 Rev. C / January 2008 Return to Section Topics 12-17
Series 2600 System SourceMeter® Instruments Reference Manual Section 12: Instrument Control Library
delay function
This function is used to hold up system operation for a specified period of time. It is typically used to soak a device at a specific
voltage or current for a period of time
.
Function Delays system operation.
Usage delay(seconds)
seconds Set the delay in seconds (100000 seconds maximum).
Remarks • This function will delay for the specified number of seconds. It is impossible to delay for
zero seconds.
• Delays smaller than 50µs will be dominated by overhead such that the actual delay might
be as long as 50µs (typical). For delays longer than 50µs, the delay may be as much as
10µs (typical) more than the requested delay.
Example
-- Sets SMU A output to 1V, soaks the DUT for 50ms and then turns the output off:
smua.source.levelv = 1.0
delay(0.050)
smua.source.off()
digio functions and attributes
The functions and attributes in this group are used to control read/write and trigger operations for
the digital I/O port.
NOTE The digital I/O lines can be used for both input and output. If a line is
being driven low, then a 0 value will be read by a command for that
line. You must write a 1 to all digital I/O lines that are to be used as
inputs.
Function Removes the next entry from the data queue.
Usage value = dataqueue.next ( [timeout] )
timeout The maximum number of seconds to wait for data in the data queue.
value The next entry in the data queue.
Remarks • If the data queue is empty, the function waits up to the timeout value.
• If data is not available in the data queue before the timeout value expires, the return
value is nil.
• The entries in the data queue are removed in a first in and first out order.
• If the value is a table, a duplicate of the original table and any subtables is made. The
duplicate table does not contain any references to the original table or to any subtables.
delay
digio.readbit
Function Reads one digital I/O line.
Usage data = digio.readbit(N)
data A custom variable that stores the state of the I/O
line.
N Digital I/O number to be read (1 - 14).