niFgen Create Frequency List VI
- Updated2025-10-07
- 4 minute(s) read
Creates a frequency list from an array of frequencies and an array of durations. The two arrays should have the same number of elements. The VI returns a handle that identifies the frequency list. You can pass this handle to the niFgen Configure Frequency List VI to specify what frequency list you want the signal generator to produce.
A frequency list consists of a list of frequencies and durations. The signal generator generates each frequency for the given amount of time and then moves on to the next frequency. When the end of the list is reached, the signal generator starts over at the beginning of the list.

Inputs/Outputs
Frequency Array
—
Frequency Array specifies the array of frequencies to form the frequency list. The array must have at least as many elements as the value you specify in the Frequency List Length parameter. Each Frequency Array element has a corresponding Duration Array element that indicates how long that frequency is repeated. Units: hertz (Hz)
Instrument Handle
—
Instrument Handle identifies a particular instrument session. Instrument Handle is obtained from the niFgen Initialize VI, niFgen Initialize With Options VI, or the niFgen Initialize With Channels VI.
Frequency List Length
—
Frequency List Length if specified, controls the number of steps in the frequency list. The value must be between the minimum and maximum frequency list lengths that the signal generator allows. You can obtain the minimum and maximum frequency list lengths from the Minimum Frequency List Length and Maximum Frequency List Length parameters in the niFgen Query Freq List Capabilities VI. The Frequency Array and the Duration Array parameters must each be at least as long as the frequency list length if one is specified.
Waveform
—
Waveform specifies the standard waveform that you want the signal generator to produce. NI-FGEN sets the Waveform property to this value.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. Default value: no error
Duration Array
—
Duration Array specifies the array of durations to form the frequency list. The array must have at least as many elements as the value that you specify in the Frequency List Length parameter. Each Duration Array element has a corresponding Frequency Array element and indicates how long in seconds to generate the corresponding frequency. Units: seconds
Instrument Handle Out
—
Instrument Handle Out passes a reference to your instrument session to the next VI.
Frequency List Handle
—
Frequency List Handle specifies the handle of the frequency list you want the signal generator to produce. You can create multiple frequency lists using the niFgen Create Frequency List VI. niFgen Create Frequency List returns a handle that you use to identify each list.
error out
—
error out contains error information. This output provides standard error out functionality. |
Frequency Array
—
Instrument Handle
—
Frequency List Length
—
error in (no error)
—
Instrument Handle Out
—
Frequency List Handle
—
error out
—