set_trigger

Sets trigger source and parameters.

Parameters

string
Trigger type
default: Edge
allowed values:Edge, Pulse
string
Trigger channel
default: Input1
allowed values:
Moku:LabChannelA, ChannelB, Input1, Input2, Output1, Output2, External
Moku:GoChannelA, ChannelB, Input1, Input2, Output1, Output2
Moku:ProChannelA, ChannelB, ChannelC, ChannelD, Input1, Input2, Input3, Input4, Output1, Output2, Output3, Output4, External
number
Trigger level
default: 0
allowed values:
Moku:Lab-5 to 5
Moku:Go-5 to 5
Moku:Pro-20 to 20
units: V
string
Trigger mode
default: Auto
allowed values:Auto, Normal
string
Which edge to trigger on. In Pulse Width modes this specifies whether the pulse is positive (rising) or negative (falling), with the 'both' option being invalid
default: Rising
allowed values:Rising, Falling, Both
string
Trigger pulse polarity (Pulse mode only)
default: Positive
allowed values:Positive, Negative
number
Width of the trigger pulse (Pulse mode only)
default: 0.0001
allowed values:
Moku:Lab184e-9 to 10
Moku:Go480e-9 to 10
Moku:Pro24.51e-6 to 10
units: Seconds
Trigger pulse width condition (pulse mode only)
default: LessThan
allowed values:GreaterThan, LessThan
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:0 to 10
units: Seconds
number
Absolute hysteresis around trigger
default: 0.001
units: Seconds
Configure auto or manual hysteresis for noise rejection.
default: true
boolean
Configure the Oscilloscope with a small amount of hysteresis to prevent repeated triggering due to noise
default: false
boolean
Configure the trigger signal to pass through a low pass filter to smooth out the noise
default: false
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.

# Examples

# Sample Response

{
    "auto_sensitivity": true,
    "edge": "Rising",
    "hf_reject": false,
    "holdoff": 0.0,
    "level": 0.0,
    "noise_reject": false,
    "nth_event": 1
}
1
2
3
4
5
6
7
8
9