generate_output

Generate a signal on the specified output channel

The available outputs are either a sine wave, optionally locked to the incoming signal; or a voltage proportional to the current phase measurement value

Parameters

integer required
Target channel
allowed values:
Moku:Lab1, 2
Moku:Go1, 2
Moku:Pro1, 2, 3, 4
number
Waveform peak-to-peak amplitude
default: 1
allowed values:
Moku:Lab1e-3 to 2
Moku:Go1e-3 to 5
Moku:Pro1e-3 to 10
units: Vpp
number
Waveform frequency
default: 1000000
allowed values:
Moku:Lab1e-3 to 250e6
Moku:Go1e-3 to 20e6
Moku:Pro1e-3 to 500e6 Amplitude 0 - 2Vpp, 1e-3 to 100e6 Amplitude > 2Vpp
units: Hz
Frequency multiplier
default: 1
number
Output voltage offset
default: 0
units:
number
Phase offset of the wave
default: 0
allowed values:0 to 360
units: Deg
boolean
Locks the phase of the generated sinewave to the measured phase of the input signal
default: true
string
Type of output signal
default: Sine
allowed values:Sine, Phase, FrequencyOffset, Amplitude
number
Configures Frequency Offset Scaling (or) Phase Scaling (or) Amplitude scaling, based on the type of output signal.
default: 0.001
allowed values:10e-9 to 100e3
units: V/cyc
boolean
Disable all implicit conversions and coercions.
default: true

# Examples