Chapter 4
Programming
©
National Instruments Corporation
4-25
NI PXIe-5450 User Manual
C Example
Call the
niFgen_configureReferenceClock
function with the
referenceClockSource
parameter set to the Reference clock source. For
example, set the
referenceClockSource
parameter to “ClkIn” to obtain the
Reference clock signal from the Clk In front panel connector. Set
referenceClockFrequency
to the frequency of the Reference clock.
Configuring Triggers
Triggers are signals that cause the NI device to perform an action such as
starting or stopping a generation operation. Triggers can be internal
(software-generated) or external. External digital triggers can be several
different types. When triggering your NI signal generator in Standard
Function, Arbitrary Waveform, Arbitrary Sequence, Script, or Frequency
List mode, you can select the type of trigger, the trigger source, and the
trigger mode that you want to use.
LabVIEW Example
1.
Call the niFgen Configure Trigger Mode VI to select the trigger mode
in which your trigger will generate. This mode affects the behavior of
the trigger and is dependant on the output mode of the signal generator.
2.
Call the niFgen Configure Trigger poly VI. Choose the instance of the
VI that corresponds to the type of trigger you wish to use.
C Example
1.
Call the
niFgen_configureTriggerMode
function to select the
trigger mode in which your trigger will generate. This mode affects the
behavior of the trigger and is dependant on the output mode of the
signal generator.
2.
Call one of the following niFgen Configure Trigger functions:
niFgen_ConfigureDigitalEdgeStartTrigger
,
niFgen_ConfigureSoftwareEdgeStartTrigger
,
niFgen_ConfigureDigitalEdgeScriptTrigger
,
niFgen_ConfigureDigitalLevelScriptTrigger
,
niFgen_ConfigureSoftwareEdgeScriptTrigger