40
|
ni.com
|
NI 5412 Calibration Procedure
4. 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_InitExtCal
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_ARB_OFFSET
•
value
:
0
Note
You can adjust this value based on which measuring device you use.
5. 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_InitExtCal
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_DIGITAL_FILTER_ENABLED
•
value
:
VI_TRUE
6. 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_InitExtCal
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_DIGITAL_FILTER_INTERPOLATION_FACTOR
•
value
:
4
7. Call
niFgen_SetAttributeViReal64
to set the output impedance (niFgen property
node:
Basic Operation»Output Impedance
) using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_OUTPUT_IMPEDANCE
•
value
:
50
8. Call
niFgen_SetAttributeViBoolean
to enable the analog output (niFgen property
node:
Basic Operation»Output Enabled
) using the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_OUTPUT_ENABLED
•
value
:
VI_TRUE
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 there are 10 samples
per cycle, the resulting waveform is a 10 MHz sine wave. The sample values of this
waveform must fall between -1.0 and 1.0.