Skip to content

radiens_core.models.triggers

Trigger control domain models and enums.

CLASS DESCRIPTION
TriggerChannel

Trigger channel identifier.

TriggerState

Current trigger channel configuration.

ATTRIBUTE DESCRIPTION
FlexTriggerChannel

TriggerChannel that also accepts a string name or int value.

Attributes

FlexTriggerChannel module-attribute

FlexTriggerChannel = TriggerChannel | str | int

TriggerChannel that also accepts a string name or int value.

String inputs use the short name without the T_ prefix, case-insensitively (e.g. "din_0", "dout_5", "none").

Classes

TriggerChannel

Bases: IntEnum

Trigger channel identifier.

T_DIN_0 to T_DIN_15 are digital inputs 0-15, and T_DOUT_0 to T_DOUT_15 are digital outputs 0-15.

ATTRIBUTE DESCRIPTION
T_NONE

No trigger channel.

TriggerState

Bases: BaseModel

Current trigger channel configuration.

ATTRIBUTE DESCRIPTION
enabled_channels

List of currently enabled trigger channels.

TYPE: list[TriggerChannel]

ports

Port of each enabled trigger, parallel to enabled_channels.

TYPE: list[Port]