set_modulation
Set up modulation on an output channel.Parameters
integer required
Target channel
allowed values:Moku:Lab 1, 2 Moku:Go 1, 2 Moku:Pro 1, 2, 3, 4
string required
Modulation type
allowed values:Amplitude, Frequency, Phase, PulseWidth
string required
Modulation source
allowed values:Moku:Lab Input1, Input2, Output1, Output2, Internal Moku:Go Input1, Input2, Output1, Output2, Internal Moku:Pro Input1, 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:Lab 0 to 62.5e6 Moku:Go 0 to 5e6 Moku:Pro 0 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
2
3
4
5
6