set_event_detector

Configures the event detector for the given channel

Parameters

integer required
The numerical id of the event
string required
Event source
allowed values:
Moku:LabInputA, InputB, Input1, Input2, Ext.trig.
Moku:GoInputA, InputB, Input1, Input2
Moku:ProInputA, InputB, Input1, Input2, Input3, Input4, Ext.trig.
Moku:DeltaInput1, Input2, Input3, Input4, Input5, Input6, Input7, Input8, InputA, InputB, Ext.trig.
number
When the selected edge of the input signal voltage crosses a user-input threshold voltage, the device detects an event. The trigger level must be within the bounds of the signal to detect events.
default: None
units: V

LabVIEW Note

Trigger voltage is required when the source is set to "External".

  • Moku:Lab: 1.8 V
  • Moku:Pro: 0.7 V
  • Moku:Delta: 1 V
string
The edge chosen for event detection.The device will look for an event on the selected edge, each time the selected edge passes through the event detectors
default: Rising
allowed values:Rising, Falling , Both
number
The duration to hold-off trigger post trigger event
default: 0
allowed values:0 to 1
units: s
boolean
Disable all implicit conversions and coercions
default: true

# Examples

# Sample response

{
    "Source": "AnalogInput1",
    "Trigger edge": "Rising",
    "edge": "Rising",
    "event": 1,
    "holdoff": 0.0,
    "source": "Input1",
    "threshold": 0.1
}
1
2
3
4
5
6
7
8
9