set_trigger

Configures the trigger on pin(s).

Parameters

array required deprecated

pins is deprecated and will be removed in future releases. Please use sources instead

List of Pin-Trigger edge mapping
allowed values:Pin - 1 to 16; Trigger edge - Ignore, High, Low, Rising, Falling, Both
array required
List of Pin-Trigger edge mapping
allowed values:Pin - 1 to 16; Trigger edge - Ignore, High, Low, Rising, Falling, Both
boolean deprecated

advanced is deprecated, it will have no impact and will be removed in future releases

Toggle advanced trigger mode
default: false
string
Trigger mode
default: Auto
allowed values:Auto, Normal
string
Trigger combination
default: AND
allowed values:AND, OR
integer
The number of trigger events to wait for before triggering
default: 1
allowed values:0 to 65535
number
The duration to hold off Oscilloscope trigger post trigger event.
default: 0
allowed values:1e-9 to 10
units: Seconds
boolean
Disable all implicit conversions and coercions.
default: true

TIP

To mimic the Single trigger mode, configure the trigger mode to Normal and call the get_data method exactly once.

# Sample response

{
    "holdoff": 0.0,
    "mode": "Auto",
    "nth_event": 1
}
1
2
3
4
5