NI 5412 Calibration Procedure
|
© National Instruments
|
15
3. Call
niFgen_SetAttributeViReal64
to set the load impedance (niFgen property
node:
Output»Load Impedance
) using the following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_LOAD_IMPEDANCE
•
value
:
10000000000
4. Call
niFgen_SetAttributeViInt32
to set the analog path (niFgen property node:
Output Attributes»Analog Path
) using the following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_ANALOG_PATH
•
value
:
NIFGEN_VAL_MAIN_ANALOG_PATH
5. 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_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_OUTPUT_IMPEDANCE
•
value
:
50
6. 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
7. 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).
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
(positive full-scale handle).
9. 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).