Chapter 4
Programming
©
National Instruments Corporation
4-27
NI PXIe-5450 User Manual
Creating a Marker Event in Arbitrary Sequence Mode
You can specify a marker and its location by setting an offset location value
(in number of samples) from the start of the waveform. If the offset is out
of range of the number of samples in that segment, NI-FGEN returns an
error.
LabVIEW Example
1.
Call the niFgen Create Advanced Arb Sequence VI and set
Marker
Location Array
to the location at which you would like the marker to
generate.
2.
Export the marker event by calling the niFgen Export Signal VI and
setting
Signal
to “NIFGEN_VAL_MARKER_EVENT”.
C Example
1.
Call the
niFgen_CreateAdvancedArbSequence
function and set
the
markerLocationArray
parameter to the location at which you
would like the marker to generate.
2.
Export the marker event by calling the
niFgen_ExportSignal
function and setting the
signal
parameter to
“
NIFGEN_VAL_MARKER_EVENT
”.
Creating a Marker Event in Script Mode
You can specify a marker and its location by setting an offset location value
(in number of samples) from the start of the waveform. If the offset is out
of range of the number of samples in that segment, NI-FGEN returns an
error.
In Script mode, you can create up to four markers for each waveform.
LabVIEW Example
1.
To create markers in Script mode, refer to
Common Scripting Use
Cases
in the NI Signal Generators Help.
2.
Export the marker event by calling the niFgen Export Signal VI. Set
Signal to “
NIFGEN_VAL_MARKER_EVENT
” and set Signal Identifier to
the name of the marker to export.