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, PXIe-5433 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

Note NI-FGEN supports only Marker0 in arbitrary waveform mode.
  1. Specify the active channel as Marker0.
  2. Specify the marker event position by setting the Arbitrary Waveform Marker Position property or the NIFGEN_ATTR_ARB_MARKER_POSITION attribute.
  3. Export the marker event by calling the niFgen Export Signal VI or the niFgen_ExportSignal function and setting the Signal or signal parameter respectively to NIFGEN_VAL_MARKER_EVENT.

Creating a Marker Event in Arbitrary Sequence Mode

  1. Call the niFgen Create Advanced Arb Sequence VI or the niFgen_CreateAdvancedArbSequence function and set the Marker Location Array or markerLocationArray parameter respectively to the location at which you would like the marker to generate.
  2. Export the marker event by calling the niFgen Export Signal VI or the niFgen_ExportSignal function and setting the Signal or signal parameter respectively to NIFGEN_VAL_MARKER_EVENT.

Creating a Marker Event in Script Mode

In script mode, you can create up to four markers for each waveform. For examples of scripting applications, refer to common scripting use cases in NI-FGEN User Manual.
  1. Export the marker event by calling the niFgen Export Signal VI or the niFgen_ExportSignal function.
  2. Set the Signal or signal parameter respectively to NIFGEN_VAL_MARKER_EVENT and set the Signal Identifier or signalIdentifier parameter respectively to the name of the marker to export.