dwfpy.digital_input.DigitalInputTrigger
- class DigitalInputTrigger(module)[source]
Bases:
objectRepresents the trigger unit of a Digital Input device.
Methods
Gets state and edge trigger condition as a bit-mask.
Gets the supported triggers as a bit-mask.
Configures the trigger counter.
Configures the trigger timing.
Configures the trigger deserializer.
Configures the trigger reset condition as a bit-mask.
Sets state and edge trigger conditions as a bit-mask.
Attributes
Gets or sets the auto trigger timeout in seconds.
Gets the maximum auto trigger timeout in seconds.
Gets the minimum auto trigger timeout in seconds.
Gets the number of adjustable steps of the timeout.
Gets or sets the number of samples to acquire after trigger.
Gets the maximum values of the trigger position in samples.
Gets or sets the number of samples to acquire before arming in 'record' acquisition mode.
Gets or sets the trigger slope for the instrument.
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_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
- property source: TriggerSource
Gets or sets the current trigger source setting for the instrument.
- Return type