dwfpy.digital_input.DigitalInputTrigger

class DigitalInputTrigger(module)[source]

Bases: object

Represents the trigger unit of a Digital Input device.

Methods

get_trigger_mask

Gets state and edge trigger condition as a bit-mask.

get_trigger_mask_info

Gets the supported triggers as a bit-mask.

set_counter

Configures the trigger counter.

set_length

Configures the trigger timing.

set_match

Configures the trigger deserializer.

set_reset_mask

Configures the trigger reset condition as a bit-mask.

set_trigger_mask

Sets state and edge trigger conditions as a bit-mask.

Attributes

auto_timeout

Gets or sets the auto trigger timeout in seconds.

auto_timeout_max

Gets the maximum auto trigger timeout in seconds.

auto_timeout_min

Gets the minimum auto trigger timeout in seconds.

auto_timeout_steps

Gets the number of adjustable steps of the timeout.

position

Gets or sets the number of samples to acquire after trigger.

position_max

Gets the maximum values of the trigger position in samples.

prefill

Gets or sets the number of samples to acquire before arming in 'record' acquisition mode.

slope

Gets or sets the trigger slope for the instrument.

source

Gets or sets the current trigger source setting for the instrument.

property auto_timeout: float

Gets or sets the auto trigger timeout in seconds.

Return type

float

property auto_timeout_max: float

Gets the maximum auto trigger timeout in seconds.

Return type

float

property auto_timeout_min: float

Gets the minimum auto trigger timeout in seconds.

Return type

float

property auto_timeout_steps: int

Gets the number of adjustable steps of the timeout.

Return type

int

get_trigger_mask()[source]

Gets state and edge trigger condition as a bit-mask. Returs (low_level, high_level, rising_edge, falling_edge)

Return type

Tuple[int, int, int, int]

get_trigger_mask_info()[source]

Gets the supported triggers as a bit-mask. Returs (low_level, high_level, rising_edge, falling_edge)

Return type

int

property position: int

Gets or sets the number of samples to acquire after trigger.

Return type

int

property position_max: int

Gets the maximum values of the trigger position in samples.

Return type

int

property prefill: int

Gets or sets the number of samples to acquire before arming in ‘record’ acquisition mode.

Return type

int

set_counter(count, restart=False)[source]

Configures the trigger counter.

Return type

None

set_length(min_length, max_length, sync_mode)[source]

Configures the trigger timing.

Return type

None

set_match(pin, mask, value, bit_stuffing)[source]

Configures the trigger deserializer.

Return type

None

set_reset_mask(low_level=0, high_level=0, rising_edge=0, falling_edge=0)[source]

Configures the trigger reset condition as a bit-mask.

Return type

None

set_trigger_mask(low_level=0, high_level=0, rising_edge=0, falling_edge=0)[source]

Sets state and edge trigger conditions as a bit-mask.

Return type

None

property slope: TriggerSlope

Gets or sets the trigger slope for the instrument.

Return type

TriggerSlope

property source: TriggerSource

Gets or sets the current trigger source setting for the instrument.

Return type

TriggerSource