osc_measurement

Sets up commonly used configurations in the Oscilloscope, including the time base, channel signal source, and trigger.

This function is a convenience wrapper around the other functions here, allowing you to set up common configurations in a single call.

Parameters

number required
Time from the trigger point to the left of screen
number required
Time from the trigger point to the right of screen. (Must be a positive number, i.e. after the trigger event)
string required
Trigger source
allowed values:
Moku:LabInput1, Input2, Output1, Output2, External
Moku:GoInput1, Input2, Output1, Output2
Moku:ProInput1, Input2, Input3, Input4, Output1, Output2, Output3, Output4, External
string required
Which edge to trigger on. Only edge trigger is used with this function, pulse trigger can be enabled using set_trigger()
allowed values:Rising, Falling, Both
number required
Trigger level
allowed values:
Moku:Lab-5 to 5
Moku:Go-5 to 5
Moku:Pro-20 to 20
units: V
boolean
Disable all implicit conversions and coercions.
default: true

# Examples

# Sample response

{
  "edge": "Rising",
  "level": 1.0,
  "offset": 0.0,
  "span": 1e-05,
  "trigger_source": "Input1"
}
1
2
3
4
5
6
7