How do I Find the Frequency of an Analog Input Signal?

Updated Aug 3, 2023

Environment

Software

  • LabVIEW

Driver

  • NI-DAQmx

I am unable to figure out how to display the frequency of an analog input in LabVIEW. How can I determine this frequency and display it?
 

There are a couple options for finding the frequency of an analog input signal:
  • There is an example shipped with LabVIEW showing an approach using Extract Single Tone Information VI: In Example Finder, open Analysis, Signal Processing and Mathematics » Signal Processing » Single Tone Measurements.vi.
  • Use LabVIEW's built-in signal analysis Express VIs, e.g. as shown in the example code below. DAQmx Read is wired into Tone Measurements Express VI, which calculates the signal's frequency. Similarly, Spectral Measurements Express VI is used to obtain the signal's frequency spectrum.​