Skip to content

radiens_core.models.dio

DIO (Digital Output) domain models and enums.

CLASS DESCRIPTION
DIOMode

Digital Output mode.

DigitalOutChannelRegister

Register state for a single digital output channel.

DigitalOutRegister

Complete DIO (Digital Output) register state.

Classes

DIOMode

Bases: IntEnum

Digital Output mode.

ATTRIBUTE DESCRIPTION
MANUAL

Outputs follow each channel's manual_state.

EVENTS

Each output fires when its channel crosses event_threshold. Hardware only.

GATED

Outputs follow streaming and recording; see gated_polarity.

PULSE

Outputs emit a pulse train. Simulator only.

DigitalOutChannelRegister

Bases: BaseModel

Register state for a single digital output channel.

ATTRIBUTE DESCRIPTION
manual_state

Manual state of the digital output channel.

TYPE: bool

event_threshold

Event threshold in microvolts.

TYPE: float

event_polarity

True fires when the signal rises above event_threshold, False when it falls below.

TYPE: bool

ntv_chan_idx

Native channel index.

TYPE: int

pulse_interval_sec

Pulse interval in seconds.

TYPE: float

pulse_duration_sec

Pulse duration in seconds.

TYPE: float

DigitalOutRegister

Bases: BaseModel

Complete DIO (Digital Output) register state.

ATTRIBUTE DESCRIPTION
mode

Digital output mode.

TYPE: DIOMode

dout_chan_registers

List of digital output channel registers.

TYPE: list[DigitalOutChannelRegister]

gated_polarity

In GATED mode, True drives the gate outputs high while streaming or recording is on; False drives them low.

TYPE: bool

req_pulse_interval_sec

Requested pulse interval in seconds.

TYPE: float

req_pulse_duration_sec

Requested pulse duration in seconds.

TYPE: float

req_pulse_ntv_chan_idx

Requested pulse native channel index; -1 pulses every channel.

TYPE: int