7½ Digit Graphical Sampling Multimeter Reference Manual Section 8:
DMM7510-901-01 Rev. B / May 2015 8-327
trigger.model.state()
This function returns the present state of the trigger model.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
status, status, n = trigger.model.state()
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
•
The last trigger model block that was executed
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 last executed.
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