NI 5421/5441 Calibration Procedure
16
ni.com
5.
Call
niFgen_SetAttributeViReal64
to set the offset (niFgen
property node:
Arbitrary Waveform Output»Arbitrary Waveform
Offset
) using the following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_ARB_OFFSET
•
value
:
0
Note
You can adjust the offset value based on which measuring device you use.
6.
Call
niFgen_SetAttributeViBoolean
to set the analog filter state
(niFgen property node:
Output Attributes»Analog Filter Enabled
)
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
(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
8.
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
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 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.