Trigger Configuration
Bases: PicoScopeBase
, shared_ps6000a_psospa
, shared_4000a_6000a
PicoScope 6000 (A) API specific functions
Methods:
Name | Description |
---|---|
get_trigger_info |
Retrieve trigger timing information for one or more segments. |
get_trigger_time_offset |
Get the trigger time offset for jitter correction in waveforms. |
get_values_trigger_time_offset_bulk |
Retrieve trigger time offsets for a range of segments. |
set_advanced_trigger |
Configure an advanced trigger in a single call. |
set_aux_io_mode |
Configure the AUX IO connector using |
set_pulse_width_trigger |
Configures a pulse width trigger using a specified channel and timing parameters. |
set_simple_trigger |
Sets up a simple trigger from a specified channel and threshold in mV. |
set_trigger_channel_conditions |
Configure a trigger condition. |
set_trigger_channel_directions |
Specify the trigger direction for |
set_trigger_channel_properties |
Configure trigger thresholds for |
set_trigger_delay |
Delay the trigger by |
set_trigger_digital_port_properties |
Configure digital port trigger directions. |
set_trigger_holdoff_counter_by_samples |
Set the trigger holdoff period in sample intervals. |
trigger_within_pre_trigger_samples |
Control trigger positioning relative to pre-trigger samples. |
get_trigger_info(first_segment_index=0, segment_count=1)
Retrieve trigger timing information for one or more segments.
Parameters: |
|
---|
Returns: |
|
---|
Raises: |
|
---|
get_trigger_time_offset(time_unit, segment_index=0)
Get the trigger time offset for jitter correction in waveforms.
The driver interpolates between adjacent samples to estimate when the trigger actually occurred. This means the value returned can have a very fine granularity—down to femtoseconds—even though the effective resolution is usually limited to roughly one-tenth of the sampling interval in real-world use.
Parameters: |
|
---|
Returns: |
|
---|
Raises: |
|
---|
get_values_trigger_time_offset_bulk(from_segment_index, to_segment_index)
Retrieve trigger time offsets for a range of segments.
This method returns the trigger time offset and associated time unit for each requested segment.
Parameters: |
|
---|
Returns: |
|
---|
set_advanced_trigger(channel, state, direction, threshold_mode, threshold_upper_mv, threshold_lower_mv, hysteresis_upper_mv=0.0, hysteresis_lower_mv=0.0, aux_output_enable=0, auto_trigger_ms=0, action=ACTION.CLEAR_ALL | ACTION.ADD)
Configure an advanced trigger in a single call.
This helper sets up the trigger condition, direction and properties required for non-simple triggers.
Parameters: |
|
---|
set_aux_io_mode(mode)
Configure the AUX IO connector using ps6000aSetAuxIoMode
.
Parameters: |
|
---|
set_pulse_width_trigger(channel, timebase, samples, direction, pulse_width_type, time_upper=0, time_upper_units=TIME_UNIT.US, time_lower=0, time_lower_units=TIME_UNIT.US, threshold_upper_mv=0.0, threshold_lower_mv=0.0, hysteresis_upper_mv=0.0, hysteresis_lower_mv=0.0, trig_dir=None, threshold_mode=THRESHOLD_MODE.LEVEL, auto_trigger_us=0)
Configures a pulse width trigger using a specified channel and timing parameters.
This method sets up a trigger condition where a pulse on the specified channel must be within or outside a defined pulse width window. The trigger logic uses both level thresholds and pulse width qualifiers to define the trigger behavior.
Parameters: |
|
---|
set_simple_trigger(channel, threshold_mv=0, enable=True, direction=TRIGGER_DIR.RISING, delay=0, auto_trigger_ms=5000)
Sets up a simple trigger from a specified channel and threshold in mV.
Parameters: |
|
---|
Examples:
When using TRIGGER_AUX, threshold is fixed to 1.25 V
>>> scope.set_simple_trigger(channel=psdk.CHANNEL.TRIGGER_AUX)
set_trigger_channel_conditions(conditions, action=ACTION.CLEAR_ALL | ACTION.ADD)
Configure a trigger condition.
Parameters: |
|
---|
set_trigger_channel_directions(channel, direction, threshold_mode)
Specify the trigger direction for channel
.
If multiple directions are needed, channel, direction and threshold_mode
can be given a list of values.
Parameters: |
|
---|
set_trigger_channel_properties(threshold_upper, hysteresis_upper, threshold_lower, hysteresis_lower, channel, aux_output_enable=0, auto_trigger_us=0)
Configure trigger thresholds for channel
. All
threshold and hysteresis values are specified in ADC counts.
Parameters: |
|
---|
set_trigger_delay(delay)
Delay the trigger by delay
samples.
Args:
delay: Number of samples to delay the trigger by.
set_trigger_digital_port_properties(port, directions)
Configure digital port trigger directions.
Args:
port: Digital port identifier.
directions: Optional list of channel directions to set. None
to
clear existing configuration.
set_trigger_holdoff_counter_by_samples(samples)
Set the trigger holdoff period in sample intervals. Args: samples: Number of samples for the holdoff period.
trigger_within_pre_trigger_samples(state)
Control trigger positioning relative to pre-trigger samples. Args: state: 0 to enable, 1 to disable