![NI 5421 Calibration Procedure Download Page 10](http://html1.mh-extra.com/html/ni/5421/5421_calibration-procedure_1685638010.webp)
10
|
ni.com
|
NI 5421/5441 Calibration Procedure
6.
Call
niFgen_SetAttributeViBoolean
to set the analog filter state (NI-FGEN
Analog Filter Enabled property) using the following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_ANALOG_FILTER_ENABLED
•
value
:
VI_TRUE
7.
Call
niFgen_SetAttributeViBoolean
to set the digital filter state (NI-FGEN Digital
Filter Enabled property) using the following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_DIGITAL_FILTER_ENABLED
•
value
:
VI_TRUE
8.
Call
niFgen_SetAttributeViReal64
to set the digital filter interpolation factor
(NI-FGEN Digital Filter Interpolation Factor property) using the following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_DIGITAL_FILTER_INTERPOLATION_FACTOR
•
value
:
4
9.
Generate an array of waveform samples. Each waveform should have 10 samples per cycle
with a total of 500 samples and 50 sine wave cycles. Because you set the sample rate to 100
MS/s and use 10 samples per cycle, the resulting waveform is a 10 MHz sine wave.
Note
The sample values of this waveform must fall between -1.0 and 1.0.
10. (LabVIEW Only) You must call the Sine Pattern VI to create the array of waveform
samples for step 9. Specify 500
samples
, an
amplitude
of 1, and 50
cycles
. Wire the
Sinusoidal Pattern
output of the Sine Pattern VI to the
Waveform Data Array
input of
the niFgen Create Waveform (DBL) VI in step 11.
11. Call
niFgen_CreateWaveformF64
(niFgen Create Waveform (DBL) VI) using the
following parameters:
•
vi
: The session handle returned from
niFgen_init
•
wfmSize
: The size in samples (
500
) of the waveform you created in step 9 or step 10.
•
wfmData
: The array of waveform samples you created in step 9 or step 10.
•
wfmHandle
: The variable passed by reference through this parameter receives the
value (waveform handle) that identifies the waveform created by this function.
12. Call
niFgen_InitiateGeneration
(niFgen Initiate Generation VI) to initiate the
waveform generation using the following parameter:
•
vi
: The session handle returned from
niFgen_init