Extract Single Tone Information 1 Chan (CDB) 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.

Inputs/Outputs
time signal in
—
time signal in is the time-domain waveform.
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 contains the signals specified by export mode.
detected frequency
—
detected frequency is the frequency of the detected single tone in Hz.
detected amplitude
—
detected amplitude is the peak amplitude of the detected single tone.
detected phase (deg)
—
detected phase is the phase of the detected single tone in degrees. Use the Wrap Angle VI to change the units of detected phase. Wire detected phase 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.
measurement info
—
measurement info 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 signal in
—
export mode
—
error in (no error)
—
advanced search
—
approx freq. (optional)
—
exported signals
—
exported time signal
—
f0
—
dB Spectrum (Hann)
—
error out
—
Warning
—
comments
—