Chapter 4
Programming
NI PXIe-5450 User Manual
4-28
ni.com
C Example
1.
To create markers in Script mode, refer to refer to Common Scripting
Use Case.
2.
Export the marker event by calling the
niFgen_ExportSignal
function. Set the
signal
parameter to “
NIFGEN_VAL_MARKER_EVENT
”
and the
signalIdentifier
parameter to the name of the marker to export.
Creating a Data Marker Event
To create and export a Data Marker event, complete the following steps:
LabVIEW Example
1.
Specify a data bit number using the Data Marker Event Bit Number
property.
2.
Set the output polarity of the data marker event using the Data Marker
Event Level Polarity property.
3.
To export the data marker, use the niFgen Export Signal VI. To
determine all possible signal routes for your device, refer to Signal
Routing.
Note
When exporting data markers, you must specify the signal identifier for the data
marker using the niFgen Export Signal VI.
C Example
1.
Specify a data bit number using the
NIFGEN_ATTR_DATA_MARKER_EVENT_DATA_BIT_NUMBER
attribute.
2.
Set the output polarity of the data marker event using the
NIFGEN_ATTR_DATA_MARKER_EVENT_LEVEL_POLARITY
attribute.
3.
To export the data marker, use the
niFgen_ExportSignal
function.
To determine all possible signal routes for your device, refer to Signal
Routing.
Note
When exporting data markers, you must specify the signal identifier for the data
marker using the
niFgen_ExportSignal
function.