Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract Tone (frequency) of analog signal in a loop

Hi

 

I have an instrument (pressure sensor) sending a constant analog data (pressure waves) - the data is refreshed in a while loop.   I'd like to measure the frequency using 'extract tone information.vi'. The way i have it connected it returns '0' as frequency. 

 

I tried to use the 'Tone measurements express.vi' and have the same problem.

 

I think the problem is since the data is constantly refreshed and there is no  'bin' or buffer to collect them over a certain period of time, the frequency cannot be measured. 

 

So, how do i go and collect them in a buffer or a bin so it can be fed into the tone information vi and refreshed every so often?

 

Thanks !

MX    

0 Kudos
Message 1 of 2
(1,910 Views)

Can you attach the VI instead? Your FOR loop spins once, thus your 1D array will have one element. There is no way to determine a frequency from a single value, right?

 

(The FOR loop serves no purpose! What determines the loop rate?)

0 Kudos
Message 2 of 2
(1,906 Views)