Chapter 4
Programming
©
National Instruments Corporation
4-13
NI PXIe-5450 User Manual
Configure Arbitrary Waveform Mode
You can use Arbitrary Waveform mode to generate waveforms from
user–created or user–provided waveform arrays of numeric data.
LabVIEW Example
The procedure below provides the basic steps required to configure
Arbitrary Waveform mode. For a more detailed example of the use of
Arbitrary Waveform mode in LabVIEW, refer to the
Fgen Basic Arb
Waveform.vi
or the
Fgen Arbitrary Waveform.vi
examples for
LabVIEW.
1.
Call the niFgen Configure Output Mode VI with
Output Mode
set to
Arbitrary Waveform.
2.
(Optional) Call the niFgen Clear Arbitrary Memory VI. This clears any
previously created arbitrary waveforms, sequences, and scripts from
the signal generator memory.
Choose one of the following two options for creating your arbitrary
waveform:
Option 1
—Allow NI-FGEN to configure the size and allocated space of
your waveform.
1.
Call the niFgen Create Waveform (poly) VI. This VI creates a
waveform the size of the data you provide.
2.
Call the niFgen Configure Arbitrary Waveform VI to configure the
gain and offset of the waveform.
Option 2
—Manually configure the size and allocated space of your
waveform.
1.
Call the niFgen Allocate Waveform VI to specify the size of the
waveform to allocate in the onboard memory of the signal generator.
2.
Call the niFgen Write Waveform (poly) VI to write waveform data to
the onboard memory you allocated in step 3.
3.
Call the niFgen Configure Arbitrary Waveform VI to configure the
gain and offset of the waveform.