Cross Power Spectrum VI
- Updated2023-02-21
- 6 minute(s) read
Cross Power Spectrum VI
Owning Palette: Spectral Analysis VIs
Requires: Multicore Analysis and Sparse Matrix Toolkit
Computes the cross power spectrum of two time-domain signals X and Y. For real input signals, the cross power spectrum can be either single-sided or double-sided. For complex input signals, the cross power spectrum is double-sided.
Wire data to the X and Y inputs to determine the polymorphic instance to use or manually select the instance.
Cross Power Spectrum (DBL)
![]() |
power spectrum type specifies whether the output Cross Power Spectrum is single-sided or double-sided.
|
||||
![]() |
X specifies the input time-domain signal. | ||||
![]() |
Y specifies the input time-domain signal. | ||||
![]() |
dt specifies the sample period of X and Y, usually in seconds. Set dt to 1/fs, where fs is the sampling frequency of the time-domain signals. The default is 1. | ||||
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||
![]() |
Cross Power Spectrum Magnitude returns the magnitude of the cross power spectrum of signal X and Y. | ||||
![]() |
Cross Power Spectrum Phase returns the phase spectrum, in radians, showing the difference between the phases of signal X and Y. | ||||
![]() |
df returns the frequency interval of the power spectrum, in hertz, if dt is in seconds. | ||||
![]() |
error out contains error information. This output provides standard error out functionality. |
Cross Power Spectrum (SGL)
![]() |
power spectrum type specifies whether the output Cross Power Spectrum is single-sided or double-sided.
|
||||
![]() |
X specifies the input time-domain signal. | ||||
![]() |
Y specifies the input time-domain signal. | ||||
![]() |
dt specifies the sample period of X and Y, usually in seconds. Set dt to 1/fs, where fs is the sampling frequency of the time-domain signals. The default is 1. | ||||
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||
![]() |
Cross Power Spectrum Magnitude returns the magnitude of the cross power spectrum of signal X and Y. | ||||
![]() |
Cross Power Spectrum Phase returns the phase spectrum, in radians, showing the difference between the phases of signal X and Y. | ||||
![]() |
df returns the frequency interval of the power spectrum, in hertz, if dt is in seconds. | ||||
![]() |
error out contains error information. This output provides standard error out functionality. |
Cross Power Spectrum (CSG)
![]() |
X specifies the input time-domain signal. |
![]() |
Y specifies the input time-domain signal. |
![]() |
dt specifies the sample period of X and Y, usually in seconds. Set dt to 1/fs, where fs is the sampling frequency of the time-domain signals. The default is 1. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
Cross Power Spectrum Magnitude returns the magnitude of the cross power spectrum of signal X and Y. |
![]() |
Cross Power Spectrum Phase returns the phase spectrum, in radians, showing the difference between the phases of signal X and Y. |
![]() |
df returns the frequency interval of the power spectrum, in hertz, if dt is in seconds. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Cross Power Spectrum (CDB)
![]() |
X specifies the input time-domain signal. |
![]() |
Y specifies the input time-domain signal. |
![]() |
dt specifies the sample period of X and Y, usually in seconds. Set dt to 1/fs, where fs is the sampling frequency of the time-domain signals. The default is 1. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
Cross Power Spectrum Magnitude returns the magnitude of the cross power spectrum of signal X and Y. |
![]() |
Cross Power Spectrum Phase returns the phase spectrum, in radians, showing the difference between the phases of signal X and Y. |
![]() |
df returns the frequency interval of the power spectrum, in hertz, if dt is in seconds. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Cross Power Spectrum Details
The following table lists the support characteristics of this VI.
Supported on RT targets | Yes |
Suitable for bounded execution times on RT | Yes |
If the input signals X and Y have different lengths, this VI first pads zeros to the shorter input signal to make the signals the same length. Let n represent the common length of the two signals after this VI pads zeros to the end of the shorter input signal.
This VI computes the double-sided cross power spectrum using the following equation.
where Pdouble is the double-sided Power Spectrum.
To compute the single-sided cross power spectrum, this VI converts the double-sided power spectrum to the single-sided form.
Refer to the Details section in the Cross Power Spectrum VI for more details about this VI.