Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-147
Example 2
scan.create()
for column = 1, 10 do
scan.add(channel.createspecifier(1,1,colum
n))
end
Replaces the active scan list with an empty
scan list.
Loops through column 1 to 10 on row 1 of slot
1 to add ten channels to the scan list. The
channel.createspecifier()
command
generates the parameters.
The scan list now has, in order, row 1,
columns 1 through 10, on slot 1.
Also see
(on page 7-142)
(on page 7-150)
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 current number of scans that have completed
stepCount
The current 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.