Amplitude and Phase Spectrum PtByPt VI
- Updated2025-07-30
- 3 minute(s) read
Computes the single-sided, scaled amplitude spectrum of a real-valued time-domain signal and returns the amplitude spectrum as magnitude and phase.
This VI is similar to the Amplitude and Phase Spectrum VI.

Inputs/Outputs
initialize
—
initialize, when TRUE, initializes the internal state of the VI.
signal
—
signal specifies the input time-domain signal, usually in volts.
sample length
—
sample length is the length of each set of incoming data. The VI performs computation on each set of data. The default is 100. sample length must be greater than 0.
dt
—
dt is the sample period of the time-domain signal, usually in seconds. Set dt to 1/fs, where fs is the sampling frequency of the time-domain signal. The default is 1.
unwrap phase (T)
—
unwrap phase, when TRUE, enables phase unwrapping on the output Amp Spectrum Phase. The default is TRUE. If unwrap phase is FALSE, this VI does not unwrap the output phase.
Amp Spectrum Mag (Vrms)
—
Amp Spectrum Mag returns the magnitude of the single-sided power spectrum. If the input signal is in volts (V), Amp Spectrum Mag has units of volts-rms (Vrms). If the input signal is not in volts, Amp Spectrum Mag has units of the input signal unit-rms.
Amp Spectrum Phase (radians)
—
Amp Spectrum Phase is the single-sided amplitude spectrum phase in radians.
df
—
df is the frequency interval of the power spectrum in hertz, if dt is in seconds.
error
—
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
initialize
—
signal
—
sample length
—
Amp Spectrum Mag (Vrms)
—
df
—
error
—