Main Content

selectWaveform

Specify arbitrary waveform for function generator output

Description

selectWaveform(fginstr,waveformHandle) specifies which downloaded arbitrary waveform the function generator produces. The waveform is specified by waveformHandle, which is the handle returned by downloadWaveform.

example

Examples

collapse all

Load multiple arbitrary waveforms into a Quick Control function generator, and select one for generating an output.

f = fgen(rsrc,drvr);
f.Waveforem = 'Arb';
w1 = 1:0.001:2;
w2 = 2:-0.001:1
wh1 = downloadWaveform (f,w1);
wh2 = downloadWaveform (f,w2);
selectWaveform(f,wh1);
enableOutput(f)

Input Arguments

collapse all

Quick Control function generator instrument, specified as an FGen object.

Example: fginstr = fgen(...)

Data Types: object

Waveform handle, created by downloadWaveform.

Version History

Introduced in R2012a

See Also

Functions