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:Moku:Lab Bit - 0 to 2; Trigger edge - Ignore, High, Low, Rising, Falling, Both; (MultiInstrument; Bit - 0 to 15) Moku:Go Pin - 1 to 16; Trigger edge - Ignore, High, Low, Rising, Falling, Both; (MultiInstrument; Bit - 0 to 15) Moku:Pro Bit - 0 to 4; Trigger edge - Ignore, High, Low, Rising, Falling, Both; (MultiInstrument; Bit - 0 to 15) Moku:Delta Pin - 1 to 16; Trigger edge - Ignore, High, Low, Rising, Falling, Both; (MultiInstrument; Bit - 0 to 15)
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: Autoallowed values:Auto, Normal string
Trigger combination
default: ANDallowed values:AND, OR integer
The number of trigger events to wait for before triggering
default: 1allowed values:0 to 65535 number
The duration to hold off Oscilloscope trigger post trigger event.
default: 0allowed values:1e-9 to 10units: Seconds boolean
Disable all implicit conversions and coercions.
default: trueTIP
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
2
3
4
5