![NI 5421 Скачать руководство пользователя страница 29](http://html1.mh-extra.com/html/ni/5421/5421_calibration-procedure_1685638029.webp)
NI 5421/5441 Calibration Procedure
|
©
National
Instruments
|
29
•
vi
: A pointer to a ViSession. The variable passed by reference through this parameter
receives the value that identifies the session created by this function. This value acts
as the session handle and is passed as the first parameter to all subsequent NI-FGEN
functions.
3.
Call
niFgenSetAttributeViBoolean
(NI-FGEN Output Enabled property) to disable
the NI 5421/5441 output. Use the following parameters:
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_OUTPUT_ENABLED
•
value
:
VI_FALSE
•
vi
: The session handle returned from
niFgen_init
4.
Null the power meter according to the power meter documentation.
5.
Configure the power meter using the following settings:
•
Average: 16
•
Measure: Watts
6.
Call
niFgen_SetAttributeViReal64
to set the offset (NI-FGEN Offset property)
using the following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_ARB_OFFSET
•
value
:
0
7.
Call
niFgen_SetAttributeViInt32
to set the analog path (NI-FGEN Analog Path
property) using the following parameters:
•
vi
: The session handle returned from
niFgen_init
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_ANALOG_PATH
•
value
:
NIFGEN_VAL_DIRECT_ANALOG_PATH
8.
Call
niFgen_SetAttributeViReal64
to set the gain (NI-FGEN Gain property) using
the following parameters:
•
vi
: The session handle returned from
niFgen_InitExtCal
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_ARB_GAIN
•
value
:
0.5
9.
Call
niFgenSetAttributeViBoolean
(NI-FGEN Output Enabled property) to enable
the NI 5421/5441 output. Use the following parameters:
•
channelName
:
"0"
•
attributeID
:
NIFGEN_ATTR_OUTPUT_ENABLED
•
value
:
VI_TRUE
•
vi
: The session handle returned from
niFgen_init