Table Of Contents

Create Frequency List (G Dataflow)

Last Modified: May 16, 2018

Creates a frequency list from an array of frequencies and an array of durations.

The waveform 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 waveform generator starts over at the beginning of the list. You can create multiple frequency lists using this node.

The waveform generator must not be in the Generating state when you call this node.

Programming Patterns

You must set the output mode input of Configure Output Mode to frequency list before calling this node.

connector_pane_image
datatype_icon

frequency array

Array of frequencies to form the frequency list in hertz (Hz).

The array must have at least as many elements as the value you specify in the frequency list length input. Each frequency array element has a corresponding duration array input element that indicates how long that frequency is repeated. frequency array should have the same number of elements as the duration array input.

datatype_icon

session in

Handle that identifies your instrument session previously allocated by Initialize With Channels.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

frequency list length

Number of steps in the frequency list.

The value must be between the minimum and maximum frequency list lengths that the waveform generator allows. You can obtain the minimum and maximum frequency list lengths from the minimum frequency list length and maximum frequency list length outputs of Query Freq List Capabilities.

datatype_icon

waveform

Standard waveform that you want the waveform generator to produce. The Waveform property sets to this value.

Name Value Description
Sine 0 The waveform generator produces a sine waveform.
Square 1 The waveform generator produces a square waveform.
Triangle 2 The waveform generator produces a triangle waveform.
Ramp Up 3 The waveform generator produces a ramp up waveform.
Ramp Down 4 The waveform generator produces a ramp down waveform.
DC 5 The waveform generator produces a DC waveform.
Noise 6 The waveform generator produces a noise waveform.
User 7 The waveform generator produces a user-defined waveform.

Default: Sine

datatype_icon

duration array

Array of durations in seconds 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 input. Each duration array element has a corresponding frequency array input element and indicates how long in seconds to generate the corresponding frequency. duration array should have the same number of elements as the frequency array input.

datatype_icon

session out

Reference to your instrument session to wire to the next node.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.
datatype_icon

frequency list reference

Handle that identifies the frequency list you want the waveform generator to produce.

Wire frequency list reference to Configure Frequency List to specify which frequency list you want the waveform generator to produce.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics