generate_waveform
Configures the output waveform.Parameters
integer required
Target channel
allowed values:Moku:Lab 1, 2 Moku:Go 1, 2 Moku:Pro 1, 2, 3, 4
string required
Waveform type
allowed values:Off, Sine, Square, Ramp, Pulse, DC, Noise
number
Waveform peak-to-peak amplitude
default: 1
allowed values:4e-3 to 10
units: V
number
Waveform frequency
default: 10000
allowed values:1e-3 to 20e6
units: Hz
number
DC offset applied to the waveform
default: 0
allowed values:-5 to 5
units: V
number
Waveform phase offset
default: 0
allowed values:0 to 360
units: Deg
number
Duty cycle as percentage (Only for Square wave)
default: 50
allowed values:0.0 to 100.0
units: %
number
Fraction of the cycle rising
default: 50
allowed values:0.0 to 100.0
units: %
number
DC Level. (Only for DC waveform)
default: 0
allowed values:Moku:Lab -2 to 2 Moku:Go -5 to 5 Moku:Pro -5 to 5
number
Edge-time of the waveform (Only for Pulse wave)
default: 0
allowed values:Moku:Lab 4e-9 to pulse width Moku:Go 16e-9 to pulse width Moku:Pro 4e-9 to pulse width
number
Pulse width of the waveform (Only for Pulse wave)
default: 0
boolean
Disable all implicit conversions and coercions.
default: true
# Examples
# Sample response
{
"amplitude":0.5,
"frequency":5000.0,
"offset":0.0,
"phase":0.0,
"type":"Sine"
}
1
2
3
4
5
6
7
2
3
4
5
6
7