generate_waveform
Configures the output waveform for each channelThe maximum number of points depends on the sample rate:
For Moku:Pro
- 16,384 at 1.25 GS/s
- 32,768 at 625 MS/s
- 65,536 at 312.5 MS/s
For Moku:Lab
- 8,192 at 1Gs
- 16,384 at 500Ms
- 32,768 at 250Ms
- 65,536 at 125Ms
For Moku:Go
- 8,192 at 125 MS/s
- 16,384 at 62.5 MS/s
- 32,768 at 31.25 MS/s
- 65,536 at 15.625 MS/s
Values will be normalized to the range [-1.0, +1.0] and then scaled to the desired amplitude and offset.
Parameters
integer required
Target output channel to generate waveform on
allowed values:Moku:Lab 1, 2 Moku:Go 1, 2 Moku:Pro 1, 2, 3, 4
string required
Defines the output sample rate of the AWG. If you don’t specify a mode, the fastest output rate for the given data length will be automatically chosen. This is correct in almost all circumstances.
allowed values:Moku:Lab Auto, 1Gs, 500Ms, 250Ms, 125Ms Moku:Go Auto, 125Ms, 62.5Ms, 31.25Ms, 15.625Ms Moku:Pro Auto, 1.25Gs, 625Ms, 312.5Ms
units: MS/s
array required
Lookup table voltage values. The entries of the LUT are normalized to range [-1.0, 1.0]; if the LUT entries are identically zero then it remains unchanged.
allowed values:array of -inf, inf
number required
Frequency of the waveform
allowed values:Moku:Lab 1e-3 to 10e6 Moku:Go 1e-3 to 10e6 Moku:Pro 1e-3 to 250e6
units: Hz
number required
Waveform peak-to-peak amplitude (For Moku:Pro, the output voltage is limited to -1V to 1V with a sample rate of 1.25GSa/s)
allowed values:4e-3 to 10
units: V
number
Waveform phase offset
default: 0
allowed values:0 to 360
units: Deg
number
DC offset applied to the waveform
default: 0
allowed values:-5 to 5
units: V
boolean
Enable linear interpolation of LUT entries.
default: false
string deprecated
Waveform load
default: 1MOhm
allowed values:Moku:Lab 50Ohm, 1MOhm Moku:Go 1MOhm Moku:Pro 50Ohm, 1MOhm
boolean
Disable all implicit conversions and coercions.
default: true
# Examples
# Sample response
{
"amplitude": 1.0,
"frequency": 10000.0,
"interpolation": 0,
"offset": 0.0,
"phase": 0.0,
"sample_rate": "125Ms"
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
← enable_output Getters →