set_trigger
Sets trigger source and parameters.On the PID instrument, the trigger refers to the Monitor unit. See `set_monitor`.
Parameters
  string  
  
                Trigger type
            
default: Edgeallowed values:Edge, Pulse  string  
  
                Trigger Source
            
default: Input1allowed values:Moku:Lab ProbeA, ProbeB Moku:Go ProbeA, ProbeB Moku:Pro ProbeA, ProbeB, ProbeC, ProbeD Moku:Delta ProbeA, ProbeB, ProbeC, ProbeD, External 
  number  
  
                Trigger level
            
default: 0allowed values:-5 to 5units: V  string  
  
                Trigger mode
            
default: Autoallowed 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: Risingallowed values:Rising, Falling, Both  string  
  
                Trigger pulse polarity (Pulse mode only)
            
default: Positiveallowed values:Positive, Negative  number  
  
                Width of the trigger pulse (Pulse mode only)
            
default: 0.0001allowed values:26e-3 to 10units: Seconds  string  
  
                Trigger pulse width condition (pulse mode only)
            
default: LessThanallowed values:GreaterThan, LessThan  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  number  
  
                Absolute hysteresis around trigger
            
default: 0.001units: V  boolean  
  
                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: trueTIP
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
2
3
4
5
6
7
8
9