Hi,
I am using a NI USB-6212 to carry out the test.
1. I am trying to calculate RPM of a wind turbine by using a rpm sensor that will on/off a LED whenever something passes through it. When a signal of 2V and above is detected (something passes), a pulse is given out. The time interval is not always constant because of the variable wind speed. When i try to subtract the time, i get weird results. May i know how do i get the time of the new pulse and the time of the previous pulse and then subtract it to get the time interval? My draft VI is as attached.
2. Another idea of mine is that i count the number of pulses in a period of time and then i divide by the period to get the RPM. However in this way, the pulses keeps increasing when the LED is turned off (wind blade is passing through) when i only want it to only increment by 1 when the blade is passing through. Hence, i introduced some delay of 300ms. But i dont think this way is accurate enough. Is there any way i can improve on this?
I would prefer if i can count the time interval using way no.1 as it will provide a more accurate results. Please advise me on this matter.
Thank you very much.
Regards,
Kristin