NI 5412 Calibration Procedure
|
© National Instruments
|
13
Note
You can adjust the offset value based on which measuring device you use.
6. Call
niFgen_SetAttributeViBoolean
to set the digital filter state (niFgen property
node:
Output Attributes»Digital Filter Enabled
) using the following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_DIGITAL_FILTER_ENABLED
•
value
:
VI_TRUE
7. Call
niFgen_SetAttributeViReal64
to set the digital filter interpolation factor
(niFgen property node:
Output Attributes» Digital Filter Interpolation Factor
) using
the following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_DIGITAL_FILTER_INTERPOLATION_FACTOR
•
value
:
4
8. 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 because you are using 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.
9. Call
niFgen_CreateArbWaveform
(niFgen Create Arbitrary Waveform 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 8.
•
wfmData
: The array of waveform samples that you created in step 8.
•
wfmHandle
: The variable passed by reference through this parameter receives the
value (waveform handle) that identifies the waveform created by this function.
10. Call
niFgen_InitiateGeneration
(niFgen Initiate Generation VI) to initiate the
waveform generation using the following parameter:
•
vi
: The session handle returned from
niFgen_init