Chapter 4
Programming
©
National Instruments Corporation
4-23
NI PXIe-5450 User Manual
else if(error == VI_SUCCESS) ResetTextBox(fgenPanel,
FGEN_PANEL_ERROR_MESSAGE, "");
}
Features
This section provides instructions for using some of the features of
National Instruments signal generators.
Configuring an Internal Sample Clock
You can use the internal (onboard) Sample clock to control the clocking
rates of your signal generator. In Arbitrary Waveform or Arbitrary
Sequence mode, you can choose a clocking mode that will allow you to
configure the rate at which this Sample clock runs.
Note
The onboard clock is the default Sample clock source. If you have not changed the
settings for your Sample clock source, you do not need to perform this procedure.
LabVIEW Example
1.
Call the niFgen Configure Sample Clock Source VI with
Source
set to
“OnboardClock”.
Perform the following step only if your application is configured for
Arbitrary Waveform or Arbitrary Sequence output mode:
2.
Call the niFgen Configure Clock Mode VI with
Clock Mode
set to the
clock mode required for your application.
C Example
1.
Call the
niFgen_ConfigureSampleClockSource
function with
the
sampleClockSource
parameter set to “OnboardClock”.
Perform the following step only if your application is configured for
Arbitrary Waveform or Arbitrary Sequence output mode:
2.
Call the
niFgen_ConfigureClockMode
function with the
clockMode
parameter set to the clock mode required for your
application.