05-26-2013 08:01 PM
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.
05-29-2013 12:42 PM
Hello,
We can make use of Shift Registers to save data between loops iterations. I created the following code:
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:
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!