Chapter 2
Verification
©
National Instruments Corporation
2-9
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
sessionHandle
.
6.
Connect ARB OUT to the spectrum analyzer. Choose the input
attenuator setting of the spectrum analyzer so that the input mixer
distortion does not limit the measurements. Refer to the documentation
for your spectrum analyzer to ensure measurement accuracy.
7.
Verify that there are no harmonics or spurs higher than –60 dBc in
comparison to the 1 MHz sine wave carrier.
8.
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
sessionHandle
.
Generate a 16 MHz sine wave with a 10 Vpp amplitude for a 50
Ω
load by
completing the following steps:
1.
Complete the setup steps described in the
section.
2.
Call
niFgen_EnableAnalogFilter()
to select the channel to
enable an analog filter on. Set the following parameters:
•
vi
—The output value
sessionHandle
that you obtained from
the
niFgen_init
function
•
Channel_Name
—
”0”
•
Filter Correction Frequency
—
16000000
3.
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”
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
—
10
•
DC_Offset
—
0
•
Frequency
—
16000000