LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I sense the speed of wind

I have a question here, I have an Arduino and I´m working with LabVIEW, I need to do a Weather Station, I have a infrarred sensor that send me a pulse when the infrarred is off, I gonna make something like an anemometer, but to sense the speed, I need to know how much time elapsed between pulses, to make the conversion and get the speed. How can I get time between pulses in LabVIEW? or how can I get the speed with a sensor like this?

 

Somebody did it this before??

 

I have this VI at moment.

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

Hello, 

 

We can make use of Shift Registers to save data between loops iterations. I created the following code: 

 

first pulse.PNG

 

 

We are constantly monitring the analog pin to detect a pulse. If is is teh fist time it is detected, we are going to save the current time in a shift regiter. Then: 

 

second_pulse.PNG

 

If the second pulse is detected, we are going to make a subtraction between the time where the second pulse it was detected, and the time where the first pulse was detected. In this way, we can get the time between pulses. I am attaching the code in 2012 version and 2010 too. The code still needs to be finished 

 

I hope this is useful, 

 

You can write in Spanish too, if you wish to. 

 

Regards!

 

 

José Alberto G.
National Instruments
ELP Support Engineer
www.ni.com/soporte
Download All
0 Kudos
Message 2 of 2
(2,479 Views)