Chapter 2
Verification
©
National Instruments Corporation
2-7
11. Begin FOR Loop. For
i
= 1000000 to 16000000 in increments of
1000000, follow these steps:
a.
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
—
i
b.
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”
•
DC_Offset
—
0
•
Waveform
—
NIFGEN_VAL_WFM_SINE
•
Amplitude
—
x
, where
x
= the largest possible peak-to-peak
amplitude for the power meter
•
Frequency
—
i
•
Start_Phase
—
0
c.
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
.
Note
Measure the power of the signal at this step.
d.
Call
niFgen_AbortGeneration()
to abort the previously
initiated signal generation. When you call this function, the
function generator leaves its signal generation state and returns to
its configuration state. The only parameter required for this
function is
sessionHandle
.
e.
Call
niFgen_DisableAnalogFilter()
to disable the analog
filter. Set the following parameters:
•
vi
—The output value
sessionHandle
that you obtained
from the
niFgen_init
function
•
Channel_Name
—
”0”
f.
End FOR Loop.