09-18-2014 06:04 AM
hello,
I 've to the output of an anemometer, an AC voltage whose frequency is related to the wind speed. unfortunately I did not get my signal frequency. I'm using the CompactRIO 9074 with NI9221 module. I see my good signal but I can not seem to extract its frequency. Have you any idea of VI? This is urgent.
Thank you.
09-18-2014 06:28 AM - edited 09-18-2014 06:28 AM
09-18-2014 07:00 AM
Are you trying to calculate this in the FPGA or in the RT?
If in the FPGA, you need to count the zero crossings to get the period and then invert.
If in the RT, then there is a bunch of FFT and frequency analysis VIs in the Signal Processing palette.
09-18-2014 07:24 AM
hi GerdW ,
I have a signal like the attachment picture. My problem is that I can not seem to extract the signal frequency. My frequency must be multiplied by a coefficient to match the speed of the wind.
I work in RT.
thank you
09-18-2014 07:28 AM
09-18-2014 07:55 AM
I put a screen capture of the code as an attachment. I read my signal from the anemometer on the AI2 port NI 9221. For my range-measuring sensor, I have to measure frequencies from 0 Hz to 125 Hz. Documentation of the anemometer is attached too.
Thanks
09-18-2014 07:57 AM
09-18-2014 08:24 AM
I forgot Shannon-Nyquist. I put a frequency of 350 Hz Sample Rate (285ms) but I still can not get my signal frequency. Is my code is right according to you? thanks
09-18-2014 08:26 AM - edited 09-18-2014 08:28 AM
Hi levla,
you wired a 3ms wait for an expected 333Hz sample rate. Don't know where your numbers are coming from.
BUT:
How did you configure your scan engine? Does it work that fast?
All of your data analysis is also highly flawed. How do you expect meaningful results when you try to measure frequencies from just single samples? Those functions expect an array of samples (or a waveform) for a reason…
09-18-2014 08:29 AM
Hello crossrulz,
I work in RT and attachments you have documentation of the anemometer and my code screenshot.
thank you