![background image](http://html2.mh-extra.com/html/keithley/interactive-sourcemeter-2450/interactive-sourcemeter-2450_reference-manual_4033478745.webp)
Section 8: TSP command reference
Model 2450 Interactive SourceMeter® Instrument Reference Manual
8-214
2450-901-01 Rev. B/September 2013
trigger.model.state()
This function returns the present state of the trigger model.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
status
= trigger.model.state()
status
The status of the trigger model:
•
trigger.STATE_IDLE
•
trigger.STATE_RUNNING
•
trigger.STATE_WAITING
•
trigger.STATE_EMPTY
•
trigger.STATE_BUILDING
•
trigger.STATE_FAILED
•
trigger.STATE_ABORTING
•
trigger.STATE_ABORTED
Details
This command returns the state of the trigger model. The instrument checks the state of a started trigger model
every 100 ms.
This command returns the trigger state and the block that the trigger model is presently executing.
The trigger model states are:
•
Idle: The trigger model is stopped
•
Running: The trigger model is running
•
Waiting: The trigger model has been in the same wait block for more than 100 ms
•
Empty: The trigger model is selected, but no blocks are defined
•
Building: Blocks have been added.
•
Failed: The trigger model is stopped because of an error.
•
Aborting: The trigger model is stopping because of a user request.
•
Aborted: The trigger model is stopped because of a user request.
Example
print(trigger.model.state())
An example output if the trigger model is waiting and is at block 9
would be:
trigger.STATE_WAITING trigger.STATE_WAITING 9
Also see
None