Table Of Contents

Cross Spectrum (Mag-Phase » Single-shot) (G Dataflow)

Version:
    Last Modified: January 9, 2017

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

    connector_pane_image
    datatype_icon

    signal x

    The input, time-domain signal x, usually in volts. The time-domain record must contain at least three cycles of the signal for a valid estimate.

    datatype_icon

    signal y

    The input, time-domain signal y, usually in volts. The time-domain record must contain at least three cycles of the signal for a valid estimate.

    datatype_icon

    error in

    Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

    Default: No error

    datatype_icon

    dt

    The sample period of the time-domain signal, usually in seconds.

    Set this input to 1/fs, where fs is the sampling frequency of the time-domain signal.

    Default: 1

    datatype_icon

    magnitude

    The single-sided cross power spectrum between the input signals x and y.

    datatype_icon

    phase

    The phase spectrum, in radians, showing the difference between the phases of the input signals x and y.

    datatype_icon

    error out

    Error information. The node produces this output according to standard error behavior.

    datatype_icon

    df

    The frequency interval of the power spectrum. The unit of this output is Hz if the sample period is in seconds.

    Algorithm for Calculating the Single-Sided Cross Power Spectrum

    If the input signals signal x and signal y have different lengths, this node first pads the end of the shorter input signal with zeros to make the signals the same length. This node then uses the following equation to compute the two-sided cross power spectrum:

    FFT ( signal x ) × ( FFT ) * ( signal y ) N 2

    where N is the common length of the two input signals after the node pads the end of the shorter input signal with zeros.

    To compute the single-sided cross power spectrum, this node converts the two-sided cross power spectrum to the single-sided form.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics