Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-313
scan.addwrite("6001, 6003, 6005", 21845, 2)
Assume a 3750 in slot 6. Add to existing scan list
channels 1, 3 and 5 on slot 6 to write a 16-bit hex value
of hexadecimal 5555 (decimal 21845).
Also see
Scanning and triggering (on page 5-23)
scan.background()
This function starts a scan and runs the scan in the background.
Usage
state, scanCount, stepCount, reading = scan.background()
state, scanCount, stepCount, reading = scan.background(bufferVar)
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
This is current number scans completed
This is current number steps completed
If measurements are taken during the scan, this parameter contains the last
scan reading completed
A reading buffer used during scanning to store the readings. If a buffer is not
specified, no readings are stored during the scan
Details
You can also use this function to specify the scanning reading buffer. This reading buffer, if specified,
stores the readings and accompanying attributes as specified for the scan. An error is generated if
the reading buffer does not exist or the parameter is not a reading buffer.
Before using this command, use scan.create() and scan.add() or scan.addimagestep() to
set up a scan list.
When the scan is run in the background, you must use the scan.state() function to check the
status of the scan.
Example
Runs a scan in the background and stores
readings in a buffer named rbbuff1.