set_trigger

Sets trigger source and parameters.

On the LIA instrument, the trigger refers to the Monitor unit. See `set_monitor`.

Parameters

string
Trigger type
default: Edge
allowed values:Edge, Pulse
string
Trigger Source
default: ProbeA
allowed values:
Moku:LabProbeA, ProbeB
Moku:GoProbeA, ProbeB
Moku:ProProbeA, ProbeB, ProbeC, ProbeD
number
Trigger level
default: 0
allowed values:-5 to 5
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:26e-3 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:1e-9 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 smooths 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