© National Instruments Corporation 17 NI PXI-5422 Calibration Procedure
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 this 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. Generate an array of waveform samples. The waveform should have
20 samples per cycle with a total of 500 samples. This configuration
results in 25 sine wave cycles. Because you set the sample rate to 200
MS/s and because you are using 20 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.
8. 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 7
wfmData: The array of waveform samples that you created in
step 7
wfmHandle: The variable passed by reference through this
parameter receives the value (waveform handle) that identifies
the waveform created by this function.
9. Call niFgen_InitiateGeneration (niFgen Initiate Generation VI)
to initiate the waveform generation using the following parameter:
vi: The session handle returned from niFgen_init
10. Measure the frequency out of the NI PXI-5422.