Owning Palette: Waveform Measurements VIs
Requires: Full Development System
Computes the averaged FFT spectrum of time signal. This VI returns the FFT results as magnitude and phase. Wire data to the time signal input to determine the polymorphic instance to use or manually select the instance.
Use the pulldown menu to select an instance of this VI.
restart averaging specifies whether the VI restarts the selected averaging process. If restart averaging is TRUE, the VI restarts the selected averaging process. If restart averaging is FALSE, the VI does not restart the selected averaging process. The default is FALSE. When you call this VI for the first time, the averaging process restarts automatically. A typical case when you should restart averaging is when a major input change occurs in the middle of the averaging process.  
time signal is the input timedomain waveform.  
window is the timedomain window to apply to the time signal. The default window is Hanning.


view defines how the different results from this VI are returned.
 
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.  
averaging parameters is a cluster that defines how this VI computes the averaging. The specifications of the parameters include the type of averaging, the type of weighting, and the number of averages.
 
window parameter specifies the beta parameter for a Kaiser window, the standard deviation for a Gaussian window, and the ratio, s, of the main lobe to the side lobe for a DolphChebyshev window. If window is any other window, this VI ignores this input. The default value of window parameter is NaN, which sets beta to 0 for a Kaiser window, the standard deviation to 0.2 for a Gaussian window, and s to 60 for a DolphChebyshev window. 

averaging done returns TRUE when averages completed is greater than or equal to the number of averages specified in averaging parameters. Otherwise, averaging done returns FALSE. averaging done is always TRUE if the selected averaging mode is No averaging.  
magnitude returns the magnitude of the averaged FFT spectrum and the frequency scale.
 
phase returns the phase of the averaged FFT spectrum and the frequency scale.
 
averages completed returns the number of averages completed by the VI at that time.  
error out contains error information. This output provides standard error out functionality. 
This VI applies the same averaging parameters settings to each waveform in time signals.
restart averaging specifies whether the VI restarts the selected averaging process. If restart averaging is TRUE, the VI restarts the selected averaging process. If restart averaging is FALSE, the VI does not restart the selected averaging process. The default is FALSE. When you call this VI for the first time, the averaging process restarts automatically. A typical case when you should restart averaging is when a major input change occurs in the middle of the averaging process.  
time signals is the input array of timedomain waveforms.  
window is the timedomain window to apply to the time signal. The default window is Hanning.


view defines how the different results from this VI are returned.
 
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.  
averaging parameters is a cluster that defines how this VI computes the averaging. The specifications of the parameters include the type of averaging, the type of weighting, and the number of averages.
 
window parameter specifies the beta parameter for a Kaiser window, the standard deviation for a Gaussian window, and the ratio, s, of the main lobe to the side lobe for a DolphChebyshev window. If window is any other window, this VI ignores this input. The default value of window parameter is NaN, which sets beta to 0 for a Kaiser window, the standard deviation to 0.2 for a Gaussian window, and s to 60 for a DolphChebyshev window. 

averaging done returns TRUE when averages completed is greater than or equal to the number of averages specified in averaging parameters. Otherwise, averaging done returns FALSE. averaging done is always TRUE if the selected averaging mode is No averaging.  
magnitudes is an array of magnitudes of the averaged FFT spectra, one per input waveform.
 
phases is an array of phases of the averaged FFT spectra, one per input waveform.
 
averages completed returns the number of averages completed by the VI at that time.  
error out contains error information. This output provides standard error out functionality. 
restart averaging specifies whether the VI restarts the selected averaging process. If restart averaging is TRUE, the VI restarts the selected averaging process. If restart averaging is FALSE, the VI does not restart the selected averaging process. The default is FALSE. When you call this VI for the first time, the averaging process restarts automatically. A typical case when you should restart averaging is when a major input change occurs in the middle of the averaging process.  
time signal is the input timedomain waveform.  
window is the timedomain window to apply to the time signal. The default window is Hanning.


view defines how the different results from this VI are returned.
 
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.  
averaging parameters is a cluster that defines how this VI computes the averaging. The specifications of the parameters include the type of averaging, the type of weighting, and the number of averages.
 
window parameter specifies the beta parameter for a Kaiser window, the standard deviation for a Gaussian window, and the ratio, s, of the main lobe to the side lobe for a DolphChebyshev window. If window is any other window, this VI ignores this input. The default value of window parameter is NaN, which sets beta to 0 for a Kaiser window, the standard deviation to 0.2 for a Gaussian window, and s to 60 for a DolphChebyshev window. 

averaging done returns TRUE when averages completed is greater than or equal to the number of averages specified in averaging parameters. Otherwise, averaging done returns FALSE. averaging done is always TRUE if the selected averaging mode is No averaging.  
magnitude returns the magnitude of the averaged FFT spectrum and the frequency scale.
 
phase returns the phase of the averaged FFT spectrum and the frequency scale.
 
averages completed returns the number of averages completed by the VI at that time.  
error out contains error information. This output provides standard error out functionality. 
restart averaging specifies whether the VI restarts the selected averaging process. If restart averaging is TRUE, the VI restarts the selected averaging process. If restart averaging is FALSE, the VI does not restart the selected averaging process. The default is FALSE. When you call this VI for the first time, the averaging process restarts automatically. A typical case when you should restart averaging is when a major input change occurs in the middle of the averaging process.  
time signals is the input array of timedomain waveforms.  
window is the timedomain window to apply to the time signal. The default window is Hanning.


view defines how the different results from this VI are returned.
 
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.  
averaging parameters is a cluster that defines how this VI computes the averaging. The specifications of the parameters include the type of averaging, the type of weighting, and the number of averages.
 
window parameter specifies the beta parameter for a Kaiser window, the standard deviation for a Gaussian window, and the ratio, s, of the main lobe to the side lobe for a DolphChebyshev window. If window is any other window, this VI ignores this input. The default value of window parameter is NaN, which sets beta to 0 for a Kaiser window, the standard deviation to 0.2 for a Gaussian window, and s to 60 for a DolphChebyshev window. 

averaging done returns TRUE when averages completed is greater than or equal to the number of averages specified in averaging parameters. Otherwise, averaging done returns FALSE. averaging done is always TRUE if the selected averaging mode is No averaging.  
magnitudes is an array of magnitudes of the averaged FFT spectra, one per input waveform.
 
phases is an array of phases of the averaged FFT spectra, one per input waveform.
 
averages completed returns the number of averages completed by the VI at that time.  
error out contains error information. This output provides standard error out functionality. 
The FFT Spectrum (MagPhase) VI completes the following steps to compute magnitude and phase:
The singlechannel version of this VI can perform singlechannel measurements in both oneshot mode, meaning a single call, and continuous mode, meaning multiple calls with history. The singlechannel version can perform multichannel measurements only in oneshot mode. If you want to make multichannel measurements in continuous mode, use the multichannel version of this VI.
The singlechannel version of this VI maintains internal state information for a single channel only. Calling the singlechannel version to process another channel without using the restart averaging control to clear the history results in an unexpected behavior of this VI. The unexpected behavior results from the VI passing the internal state information from one channel to another.
Note The singlechannel version of this VI is intended primarily for continuous processing of a single channel. Do not generalize this behavior to the multichannel case and use the singlechannel version in a For Loop to continuously process multiple channels by indexing an array of waveforms. Refer to the following VIs for examples of using a multichannel version of a VI like the FFT Spectrum (MagPhase) VI in a loop:

Refer to the Amplitude Spectrum (sim) VI in the labview\examples\analysis\measxmpl.llb for an example of using the FFT Spectrum (MagPhase) VI.