03-19-2009 06:53 PM
We have built a circuit that is supposed to mimic an Exercycle. We have an IR interrupter and a spinning wheel, the interrupter runs into a comparator circuit, and the output from the comparator we have running into LabView. We have successfully been able to measure the number of rotations of the wheel and the total distance covered by the wheel, but are having trouble measuring the velocity. We can't figure out how to measure the time between peaks in real-time, which we could then take to divide the circumference of the wheel and calculate velocity also in real-time. The VI i posted has a simulated square wave in place of the signal we get from our circuit. Thank you in advance for the assistance.
Jon and David
Solved! Go to Solution.
03-20-2009 12:03 AM - edited 03-20-2009 12:05 AM
HI
You can use Extract single tone information.vi that will give you frequency of signal.
Otherwise for measuring the time between peak values you can use Transition parameters.vi, for each electrical rotation you can calculate the time for peak value & by taking the differences between two electrical rotation you can find time between the peaks.
03-20-2009 12:11 AM
03-20-2009 02:08 AM
Thanks for the input guys.
Neither of us are very experienced in using labview (maybe a month tops), and we've been trying to use the Transition parameters.vi and Peak detection.vi but can't get anything to output. We've read over the help file maybe a million times, but I don't think that we understand some basic things about labview to implement it. Can you give me a rundown of how to hook up either one to get the peak to peak time. I'm sorry for our inexperience. Thank you in advance
03-20-2009 02:42 AM
HI
In peak detector VI connect waveform to singal In, The Location output gives you the time in mSec.
Location you will get for each electrical rotation
You can take the difference between of these location and find the time between peaks
Hope this helps.
Also refer example vi on http://forums.ni.com/ni/board/message?board.id=220&message.id=545&requireLogin=False
Regards
Santosh
03-21-2009 06:39 PM
03-23-2009 10:20 PM
I think you are overcomplicating things by trying to get the elapsed time between pulses yourself. Instead, you can use the Tone Measurements Express VI and select Frequency for it to measure. Then, you can multiply the circumference of the wheel by the frequency to get the velocity.
I hope this helps.
- Christina