set_modulation

Set up modulation on an output channel.

Parameters

integer required
Target channel
allowed values:
Moku:Lab1, 2
Moku:Go1, 2
Moku:Pro1, 2, 3, 4
string required
Modulation type
allowed values:Amplitude, Frequency, Phase, PulseWidth
string required
Modulation source
allowed values:
Moku:LabInput1, Input2, Output1, Output2, Internal
Moku:GoInput1, Input2, Output1, Output2, Internal
Moku:ProInput1, Input2, Input3, Input4, Output1, Output2, Output3, Output4, Internal
number
Modulation depth (depends on modulation type): Percentage modulation depth, Frequency Deviation/Volt or +/- phase shift/Volt
default: 0
number
Frequency of internally-generated sine wave modulation. This parameter is is only used when the modulation source is set to internal.
default: 10000000
allowed values:
Moku:Lab0 to 62.5e6
Moku:Go0 to 5e6
Moku:Pro0 t0 125e6
units: Hz
boolean
Disable all implicit conversions and coercions.
default: true

# Sample response

{
    "depth": 50,
    "frequency": 1.0,
    "source": "Internal",
    "type": "Amplitude"
}
1
2
3
4
5
6