Computes the single-sided, scaled, cross power spectrum of two real-time signals.

This VI is similar to the Cross Power 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 x

    signal x is the input, time-domain signal x, usually in volts.

  • cdbl.png signal y

    signal y is the input, time-domain signal y, 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.

  • i1ddbl.png Cross Power XY Spectrum Mag (V^2rms)

    Cross Power XY Spectrum Mag is the single-sided cross power spectrum between signals X and Y.

    If the input signals are in volts (V), Cross Power XY Spectrum Mag has units of volts-rms squared (Vrms²). If the input signals are not in volts, Cross Power XY Spectrum Mag has units of the input signal unit-rms squared.

  • i1ddbl.png Cross Power XY Spectrum Phase (radians)

    Cross Power XY Spectrum Phase is the phase spectrum in radians showing the difference between the phases of signal Y and signal X.

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

  • The cross power spectrum gives the product of the amplitude of the signals x and y and the difference between their phases, phase of signal y minus phase of signal x.