NI 5421/5441 Calibration Procedure
20
ni.com
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 (positive full-scale handle).
10. Create an array of waveform samples for the negative full-scale DC
waveform. This array should contain 500 samples with each sample
having the value
–1.0
(representation: double).
11. 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 that you
created in step 10
•
wfmData
: The array of waveform samples that you created in
step 10
•
wfmHandle
: The variable passed by reference through this
parameter receives the value (waveform handle) that identifies the
waveform created by this function (negative full-scale handle).
12. 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
Repeat steps 13 through 23 for each of the 24 iterations listed in Table 4,
changing the
Gain
value for each iteration.