NI PXI-5404 Calibration Procedure
|
© National Instruments
|
13
7.
Call
niFgen_close()
. Set the following parameter:
•
vi
—The output value
sessionHandle
you obtained from the
niFgen_init
function
You have completed verifying the SINE out amplitude passband flatness of your module.
Verifying CLOCK Out Duty Cycle Accuracy
Complete the following steps to measure the duty cycle of the NI 5404 when you use it to
generate a 50% duty cycle:
1.
Call
niFgen_init()
to initialize the module you are testing and to create an I/O session.
Set the following parameters:
•
vi
—The output that is passed in by reference to the verification functions as
sessionHandle
•
resourceName
—
"DAQ::#"
, where
#
is the device number
•
ID Query
—
True
•
Reset Device
—
True
2.
Call
niFgen_ConfigureStandardWaveform()
to select the channel to output a
waveform. Set the following parameters:
•
vi
—The output value
sessionHandle
you obtained from the
niFgen_init
function
•
Channel_Name
—
"0"
•
Amplitude
—
5
•
Frequency
—
1000000
•
Waveform
—
NIFGEN_VAL_WFM_SQUARE
•
Start phase
—
0
•
DC offset
—
0
3.
Call
niFgen_SetAttributeViReal64()
. Set the following parameters:
•
vi
—The output value
sessionHandle
you obtained from the
niFgen_init
function
•
Channel_Name
—
"0"
•
Attribute_ID
—
NIFGEN_ATTR_FUNC_DUTY_CYCLE_HIGH
•
Value
—
50.0
Note
If you are using LabVIEW, select the property node attribute
niFgen»
Standard Function Output»Duty Cycle High
.
4.
Call
niFgen_InitiateGeneration()
to initiate signal generation. This function
causes the NI 5404 to leave its configuration state and enter its signal generation state. Set
the following parameter:
•
vi
—The output value
sessionHandle
you obtained from the
niFgen_init
function