Arbitrary sequence output mode allows you to load multiple waveforms in the onboard memory of the signal generator.

A finite number of samples make a waveform. To generate these downloaded waveforms in a specific order, you must prepare a sequence, which contains a number of segments in a specific order. Each segment specifies a downloaded waveform, a number of loops to repeat the selected waveform, and a numeric offset in which a marker is generated by the instrument. The timing and behavior of the generation of a waveform sequence is dependent on the trigger mode selected.

Table 1. Waveform and Segment
Waveform or Segment Type Waveform or Segment Shape Description
Waveform A A single cycle of a sine wave that is downloaded to onboard memory
Waveform B A single cycle of a ramp waveform that is downloaded to onboard memory
Waveform Segment 1 A segment created using Waveform A that repeats or loops three times
Waveform Segment 2 A segment created using Waveform B that loops twice
Waveform Segment 3 A segment created using Waveform A that loops only once
Sequence List or Waveform Linking The waveforms are linked in a sequence. The concept of using a sequence to generate waveforms is referred to as waveform sequencing or linking and looping waveforms.

Segment Components

You create a sequence segment by segment. Each segment is made up of the following four components.

  • Waveform Handle—Specifies the downloaded waveform to be accessed by the segment. A waveform handle is returned for each waveform that is downloaded to the onboard memory. Refer to the niFgen Create Waveform or niFgen Allocate Waveform VIs, or the niFgen_CreateArbWaveform or niFgen_AllocateWaveform functions for more information about downloading waveforms.
  • Sample Count—Specifies how many samples of a downloaded waveform the segment uses. The sample count is not necessarily the actual size of the downloaded waveform. If the sample count is less than the actual size of the downloaded waveform, only a part of that waveform is used for that segment, starting with the first sample of the waveform. If the count is more than the actual size of that waveform, NI-FGEN returns an error. If the sample count is set to zero, NI-FGEN automatically uses the actual size of that waveform.
  • Waveform Loops—Specifies the number of times that the waveform, or portion indicated by sample count of the waveform loops. The maximum number of loops is 16,777,215.
  • Marker Offset—Specifies where the marker generates within that waveform. The offset is referenced to the beginning of the waveform, with sample 0 being the first sample of the waveform. Refer to Marker Events for more information.
  • Refer to the niFgen Create Arbitrary Sequence or niFgen Create Advanced Arb Sequence VIs or the niFgen_CreateArbSequence or niFgen_CreateAdvancedArbSequence functions for more information about creating and configuring arbitrary sequences.