主要内容

removeWaveform

Remove arbitrary waveform from function generator memory

Description

removeWaveform(fginstr) removes the last waveform from the function generator memory. Use this syntax when working with only one waveform at a time.

example

removeWaveform(fginstr,waveformHandle) removes a previously downloaded arbitrary waveform from the function generator memory. The waveformHandle is returned from the downloadWaveform function.

example

Examples

collapse all

Generate two arbitrary waveforms, downloading and removing one at a time.

f = fgen(rsrc,drvr);
f.Waveforem = 'Arb';
w1 = 1:0.001:2;

downloadWaveform (f,w1);
enableOutput(f)
    ⋮
disableOutput(f)
removeWaveform(f)
    ⋮
downloadWaveform (f,w2);
enableOutput(f)
    ⋮
disableOutput(f)
removeWaveform(f)

Generate two arbitrary waveforms after downloading both, then remove both.

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)
    ⋮
selectWaveform(f,wh2);
enableOutput(f)
    ⋮
removeWaveform(f,wh1)
removeWaveform(f,wh2)

Input Arguments

collapse all

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

Example: fginstr = fgen()

Data Types: object

Waveform handle, created by selectWaveform. When working with only one waveform at a time, you do not need to specify a waveform handle.

Version History

Introduced in R2012a

See Also

Functions