Creating a Marker Event in Script Mode
- Updated2025-10-10
- 1 minute(s) read
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
- To create markers in Script mode, refer to Common Scripting Use Cases.
- 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.
C Example
- To create markers in Script mode, refer to Common Scripting Use Cases.
- 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.
Related Information
- Script Mode
Script mode allows you to use scripting to link and loop multiple waveforms in complex combinations using a script.