NI PXI-5422 Calibration Procedure 20 ni.com
7. 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_init
channelName: "0"
attributeID: NIFGEN_ATTR_OUTPUT_ENABLED
value: VI_TRUE
8. Create an array of waveform samples for the positive full-scale DC
waveform. This array should contain 500 samples with each sample
having the value 1.0 (representation: double).
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).