Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-142
707B-901-01 Rev. B / January 2015
scan.execute()
This function starts the scan immediately in the foreground with a configured scan list.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
scanState
,
scanCount
,
stepCount
= scan.execute()
scanState
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
The present number of scans that have completed
stepCount
The present number of steps have completed
Details
Before using this command, use
scan.create()
and
scan.add()
or
scan.addimagestep()
to
set up a scan list.
Execution runs until the scan is complete or until the
abort
command is sent.
Because this function waits for the scan to complete, the
scan.state()
function cannot be used to
see the current status of scanning.
Example
scan.execute()
Runs a scan immediately.
Also see
(on page 7-136)
(on page 7-139)
(on page 7-141)
(on page 7-143)
(on page 7-148)
(on page 3-1)