To download NI software, including the products shown below, visit ni.com/downloads.
This VI continuously acquires data from the specified channel, scales the data to engineering units, windows the signal, and performs the requested averaged frequency measurement. Power Spectrum, Power Spectral Density, and FFT are available frequency measurements. The resulting spectrum is displayed on a waveform graph. Based on the scan rate and the number of samples, the VI returns the frequency resolution and the period of the acquisition time.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.