22
|
ni.com
|
NI 5421/5441 Calibration Procedure
3.
Call
niFgen_ConfigureSampleRate
(niFgen Set Sample Rate VI) using the following
parameters:
•
vi
: The session handle returned from
niFgen_init
•
Sample Rate
: 100 MS/s (
100000000
)
4.
Call
niFgen_SetAttributeViReal64
to set the load impedance (NI-FGEN Load
Impedance property) using the following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_LOAD_IMPEDANCE
•
value
:
1000000
5.
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_FALSE
6.
Call
niFgen_ConfigureOutputMode
(niFgen Configure Output Mode VI) using the
following parameters:
•
vi
: The session handle returned from
niFgen_init
•
Output Mode
:
NIFGEN_VAL_OUTPUT_ARB
(Arbitrary Waveform)
7.
Create an array of waveform samples. The waveform array should contain a single cycle
sine wave of 2,000 samples and an amplitude of 1.
8.
(LabVIEW Only) You must call the niFgen Util Create Waveform Data VI to generate the
single cycle sine wave with 2,000 samples and an amplitude of 1 for step 7. Wire the output
of the niFgen Util Create Waveform Data VI to the
Waveform Data Array
input of the
niFgen Create Waveform (DBL) VI in step 9.
9.
Call
niFgen_CreateWaveformF64
(niFgen Create Waveform (DBL) VI) using the
following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
wfmSize
: The size in samples (
2000
) of the waveform that you created in step 7 or
•
wfmData
: The array of waveform samples (double representation) that you created in
•
wfmHandle
: A pointer to a waveform. The variable passed by reference through this
parameter acts as a handle to the waveform and can be used for setting the active
waveform, changing the data in the waveform, building sequences of waveforms, or
deleting the waveform when it is no longer needed.