User manual

Section 13: Instrument Control Library (ICL) Series 3700 System Switch/Multimeter Reference Manual
13-236 3700S-901-01 Rev. C / July 2008
scan.create()
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 myDCV, a user DC volts configuration, on all 10 channels and then my2wire, a
user 2-wire ohms configuration, on all 10 channels:
scan.create('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 myDCV, a user DC volts configuration, on all 10 channels and then my2wire, a
user 2-wire ohms configuration, 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.execute()
Function
Starts a scan and runs it in immediate mode.
Usage
state, scancount, stepcount,
reading = scan.execute(rb_buffer)
rb_buffer: Optional reading buffer to use during scanning to store the readings. If not
specified, no readings are stored during the scan.
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, if measurements were taken during the
scan