I wrote a LabVIEW VI to measure ball speed using two IR sensors spaced a few feet apart detect when a ball passes by. The NI USB 6009 interface measures the analog voltge from each sensor (using a pull up resistor in series with the signal). A LabVIEW VI is used to determine the time difference between the leading edge of the signal from each IR sensor.
The Block Diagram of the VI is not elegant (and I’m sure there are cleaner ways to code the VI) but the front panel looks pretty clean.
I think this would be an excellent thing for NI Pilot Program teams to build if you have the means - I can see something like this being in high demand during a regional. I’ll provide a LabVIEW VI that does something similar if teams would like to build one (I’ll even provide some crude instructions on building one). Anyone a taker?
I didn’t see the earlier post you made (must have been building a robot or something) - if you send me an email at vw-AT-alum.mit.edu (maybe the phisher programs won’t spot this as an email adress with the -AT- in the note) I’ll shoot you out the VI - the program and rig seem to be helpful at the Regionals I’ve been at - Cheers - Vince