Example Code

Baseband FFT (DAQmx)

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Driver

  • NI-DAQ™mx

Code and Documents

Attachment

Description

Overview


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.

Related Links

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.