Chapter 2
Verification
©
National Instruments Corporation
2-3
Initializing Device for Verification
Complete the following setup steps for each of the specifications you want
to verify prior to beginning the verification steps:
1.
Call
niFgen_init()
to initialize the instrument 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 Devic
e—
True
2.
Call
niFgen_ConfigureOutputMode()
to select the standard
function output mode for the function generator to use. Set the
following parameters:
•
vi
—The output value
sessionHandle
that you obtained from
the
niFgen_init
function
•
OutPut_Mode
—
NIFGEN_VAL_OUTPUT_FUNC
Verifying DC Offset
Complete the following steps to measure the DC offset of your NI 54
XX
device when you use it to generate a 0.0 V DC voltage:
1.
Complete the setup steps described in the
section.
2.
Call
niFgen_ConfigureStandardWaveform()
to select the
channel to output a waveform. Set the following parameters:
•
vi
—The output value
sessionHandle
that you obtained from
the
niFgen_init
function
•
Channel_Name
—
”0”
•
Amplitude
—
0
•
DC_Offset
—
0
•
Frequency
—
0
•
Waveform
—
NIFGEN_VAL_WFM_DC
•
Start_Phase
—
0