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.

Note By default, reentrant execution is enabled in all Point By Point VIs.


icon

Inputs/Outputs

  • cbool.png initialize

    initialize, when TRUE, initializes the internal state of the VI.

  • cdbl.png signal

    signal specifies the input time-domain signal, usually in volts.

  • ci32.png 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.

  • cdbl.png 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.

  • cbool.png 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.

  • i1ddbl.png 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.

  • i1ddbl.png Amp Spectrum Phase (radians)

    Amp Spectrum Phase is the single-sided amplitude spectrum phase in radians.

  • idbl.png df

    df is the frequency interval of the power spectrum in hertz, if dt is in seconds.

  • ii32.png 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.