generate_waveform

Configures the output waveform.

Parameters

integer required
Target channel
allowed values:
Moku:Lab1, 2
Moku:Go1, 2
Moku:Pro1, 2, 3, 4
string required
Waveform type
allowed values:Off, Sine, Square, Ramp, Pulse, DC, Noise
number
Waveform peak-to-peak amplitude (For Moku:Pro, the output voltage is limited to between -1V and 1V above 1MHz)
default: 1
allowed values:
Moku:Lab2e-3 to 4
Moku:Go2e-3 to 10
Moku:Pro1e-3 to 10
units: V
number
Waveform frequency
default: 10000
allowed values:
Moku:Lab1e-3 to 100e6
Moku:Go1e-3 to 20e6
Moku:Pro1e-3 to 500e6
units: Hz
number
DC offset applied to the waveform (For Moku:Pro, the output voltage is limited to between -1V and 1V above 1MHz)
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
number
Edge-time of the waveform (Only for Pulse wave)
default: 0
allowed values:
Moku:Lab4e-9 to pulse width
Moku:Go16e-9 to pulse width
Moku:Pro2e-9 to pulse width
number
Pulse width of the waveform (Only for Pulse wave)
default: 0
allowed values:
Moku:Lab4e-9 to waveform period
Moku:Go16e-9 to waveform period
Moku:Pro2e-9 to waveform period
boolean
Disable all implicit conversions and coercions.
default: true

# Examples

# Sample response

{
    "amplitude": 1.0,
    "frequency": 10000.0,
    "offset": 0.0,
    "phase": 0.0,
    "type": "Sine"
}
1
2
3
4
5
6
7