generate_waveform

Configures the output waveform for each channel

The 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:Lab1, 2
Moku:Go1, 2
Moku:Pro1, 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:LabAuto, 1Gs, 500Ms, 250Ms, 125Ms
Moku:GoAuto, 125Ms, 62.5Ms, 31.25Ms, 15.625Ms
Moku:ProAuto, 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:Lab1e-3 to 10e6
Moku:Go1e-3 to 10e6
Moku:Pro1e-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:Lab50Ohm, 1MOhm
Moku:Go1MOhm
Moku:Pro50Ohm, 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