Extract Single Tone Information N Chan VI
- Updated2025-07-30
- 5 minute(s) read
Takes a signal in, finds the single tone with the highest amplitude or searches a specified frequency range, and returns the single tone frequency, amplitude, and phase. The input signal can be real or complex and single-channel or multichannel. Wire data to the time signal in input to determine the polymorphic instance to use or manually select the instance.
The waveform array input should be the result of a multichannel acquisition where each element of the array of waveforms is a distinct and separate channel of data.

Inputs/Outputs
time signals in
—
time signals in is an array of time-domain waveforms.
export mode
—
export mode selects the source of the signal and spectrum to export to exported signals.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
advanced search
—
advanced search controls the frequency domain search area, center frequency, and width. You use advanced search for narrowing the single tone search range.
exported signals
—
exported signals is an array of exported signals.
detected frequencies
—
detected frequencies is an array of frequencies of the detected single tone in Hz for each waveform.
detected amplitudes
—
detected amplitudes is an array of peak amplitudes of the detected single tone for each waveform.
detected phases (deg)
—
detected phases is an array of phases of the detected single tone in degrees for each waveform. Use the Wrap Angle VI to change the units of detected phases. Wire detected phases to the angle in input on the Wrap Angle VI, and select degree in, degree out or degree in, radians out for the angle units input.
error out
—
error out contains error information. This output provides standard error out functionality.
measurements info
—
measurements info is an array that returns information about your measurement, mainly warnings for inconsistencies in your input signal.
|
A real tone signal can be expressed as shown in the following equation:
where A, f, and φ are the amplitude, frequency, and phase of the tone signal, respectively, and Fs is the sample rate in samples per second of the input waveform signal.
A complex tone signal can be expressed as shown in the following equation:
where A, f, and φ are the amplitude, frequency, and phase of the tone signal, respectively, and Fs is the sample rate in samples per second of the input waveform signal.
This VI is designed to process a single channel or multiple channels continuously, typically from within a For Loop or a While Loop.
For a real signal, the frequency range is (min frequency, max frequency) = (0, Fs/2). For a complex signal, the frequency range is (min frequency, max frequency) = (–Fs/2, Fs/2).
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Signal Processing\Waveform Conditioning\Correct for MIO inter-channel delay (continuous).vi
- labview\examples\Signal Processing\Waveform Measurements\Single Tone Measurements.vi
- labview\examples\Signal Processing\Waveform Measurements\Complex Single Tone Measurements.vi
time signals in
—
export mode
—
error in (no error)
—
advanced search
—
approx freq. (optional)
—
exported signals
—
exported time signal
—
exported spectrum (dB)
—
f0
—
dB Spectrum (Hann)
—
error out
—
Warning
—
comments
—