Chapter 4
Programming
NI PXIe-5450 User Manual
4-26
ni.com
Creating a Marker Event
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.
There are two rules for marker placement:
1.
A marker can be specified only at offsets that are multiples of four
samples (or two complex samples).
2.
A marker must be placed at least four samples from the end of the
waveform. In Burst trigger mode, a marker must be placed at least
eight samples from the end of the waveform.
For example, for a waveform containing 100 samples, a marker at an offset
of 0 or 4 is valid, but a marker at an offset of 3 is invalid. In addition, a
marker at an offset of 97 or 100 is always invalid, while a marker at an
offset of 96 is valid for all trigger modes except Burst. The marker can be
placed at an offset of 92 for all trigger modes.
Creating a Marker Event in Arbitrary Waveform 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.
Specify the position of the Marker event by setting the Arbitrary
Waveform Marker Position property.
2.
Export the marker event by calling the niFgen Export Signal VI and
setting
Signal
to “NIFGEN_VAL_MARKER_EVENT”.
C Example
1.
Specify the position of the Marker event by setting the
NIFGEN_ATTR_ARB_MARKER_POSITION
attribute.
2.
Export the marker event by calling the
niFgen_ExportSignal
function and setting the
signal
parameter to
“
NIFGEN_VAL_MARKER_EVENT
”.