stoner_measurement.plugins.trace.base.TraceStatus

class stoner_measurement.plugins.trace.base.TraceStatus(*values)[source]

Bases: Enum

Operational status of a TracePlugin.

Used by the status property and the status_changed signal to communicate the current lifecycle phase to the sequence engine and the user interface.

Variables:
  • IDLE – No operation is in progress; the plugin is ready to accept the next lifecycle call.

  • CONNECTING – connect() is executing; instrument connections are being opened and/or verified.

  • CONFIGURING – configure() is executing; instrument settings are being applied.

  • MEASURING – measure() is active and data points are being acquired.

  • DATA_AVAILABLE – A measure() call has completed successfully; the most-recently acquired trace is ready for use.

  • DISCONNECTING – disconnect() is executing; resources are being released.

  • ERROR – An unrecoverable error occurred during a lifecycle call.

Examples

>>> TraceStatus.IDLE.value
'idle'
>>> TraceStatus("measuring") is TraceStatus.MEASURING
True
CONFIGURING = 'configuring'
CONNECTING = 'connecting'
DATA_AVAILABLE = 'data_available'
DISCONNECTING = 'disconnecting'
ERROR = 'error'
IDLE = 'idle'
MEASURING = 'measuring'