Series 3700 System Switch/Multimeter Reference Manual
Section 9
:
Instrument Control Library (ICL)
Document Number: 3700S-901-01 Rev. A / August 2007
9-159
scan.add
Example
To clear the old scan list without resetting the entire scan configuration aspects:
scan.create("")
To clear the old scan list and to create a new scan list with channels 1 to 10 on Slot 3
with DC volts on all 10 channels and then two wire ohms on all 10 channels:
scan.create("")
scan.add("3001:3010", "myDCV")
scan.add("3001:3010", "my2wire")
To clear the old scan list and to create a new scan list with channels 1 to 10 on Slot 3
with DC volts and then two wire ohms on each step:
scan.create('')
for chan = 3001, 3010 do
scan.add('' .. chan, 'myDCV')
scan.add('' .. chan, 'my2wire')
end
Note
With respect to the
scan.add
function in the above example, the first parameter
('' .. chan,
converts the
chan
number to a string.
scan.background
Function
Specifies the reading buffer to use during scanning and the scan runs in the
background.
Usage
state, scancount, stepcount,
reading = scan.background(rb_buffer)
rb_buffer:
Reading buffer to use during scanning.
state
: The result of scanning:
scan.EMPTY or 0
scan.BUILDING or 1
scan.RUNNING or 2
scan.ABORTED or 3
scan.FAILED or 4
scan.FAILED_INIT or 5,
scan.SUCCESS or 6
scancount
: is current scan count completed
stepcount
: is current step count completed
reading
: is the last reading of scan completed. This parameter is optional. If a reading
buffer is not specified, the scan does not store the readings.