Chapter 2
Verification
2-6
ni.com
4.
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
—
X
, where
X
= the largest possible peak-to-peak
amplitude for the power meter.
•
DC_Offset
—
0
•
Frequency
—
1000
•
Waveform
—
NIFGEN_VAL_WFM_SINE
•
Start_Phase
—
0
5.
Call
niFgen_InitiateGeneration()
to initiate signal generation.
This function causes the function generator to leave its configuration
state and enter its signal generation state. The only parameter required
for this function is the
sessionHandle
.
6.
Use the power meter to measure the power of the signal present at
ARB OUT of your NI 54
XX
device. This measurement is your
baseline.
7.
Call
niFgen_Close()
to close the instrument I/O session, destroy the
instrument driver session and all of its properties, and release any
memory resources the driver uses. The only parameter required for this
function is the
sessionHandle
.
8.
Use the code in steps 9 though 17 to generate sine waves of the same
amplitude you used for the 100 kHz sine wave, varying the frequency
from 1 MHz to 16 MHz in 1 MHz increments. Measure the power for
each frequency in the same manner. Deviation from the baseline you
established in step 7 should not exceed ±2 dB.
9.
Complete the setup steps described in the
section.
10. Call
niFgen_EnableDigitalFilter()
to select the channel to
enable a digital filter on. Set the following parameters:
•
vi
—The output value
sessionHandle
that you obtained from
the
niFgen_init
function
•
Channel_Name
—
”0”
Note
Steps 11a through 11f are contained in a FOR Loop
.