01-18-2019 11:40 AM
Hi everyone.
I want to calculate speed of a projectile using two IR sensors. I want to calculate time interval between rising edge of two signals from LabView 10.0. I have tried pulse width measurement, elapse time options but I am unable to calculate time interval between start of two signals. I would be thankful if anyone can provide some guidance regarding this.
Solved! Go to Solution.
01-18-2019 12:52 PM
What DAQ device are you using?
The best approach (if you have a DAQ device to support it) would use a counter configured for "two edge separation measurement". The devices which support it (including M-series, X-series, 66xx counter/timers, certain cDAQ module/chassis combos) would give you very good timing resolution for your measurements (12.5 or 10 nanosec resolution for desktop boards, some cDAQs might be more limited -- I just don't know).
A not-nearly-as-good alternative is to sample with AI and post-process to find edges. You'll likely lose somewhere between 2 and 3 orders of magnitude in your resolution though.
-Kevin P
01-18-2019 01:05 PM
Thank you Kevin for your response. I am using card Pxie 6124. I am acquiring analog input data.
01-18-2019 03:38 PM
Looking up your board specs, I see that it has counters which support "two edge separation measurement". The 80 MHz onboard clock allows you to get timing resolution as fine as 12.5 nanosec.
Over on the analog side, if you *must*, your best timing resolution will be 0.25 microsec, assuming a clean signal and excellent post-processing.
-Kevin P
01-19-2019 06:16 AM
Thank you Kevin once again. I have gone through documentation of " two edge separation measurement". For this measurement, I have to connect IR sensor outputs to PFI pinouts. (I am using TB-2706, 68-pin terminal block).
Since IR sensor have 3 wires (+V, -V/common, PNP/NPN). The output (PNP) from sensor I am connecting to PFI (pin-9 for my DAQ) and +Ve to external +24V power supply. The -V/Common should I connect to DGND? In the same way do I have to connect output from 2nd sensor to PFI(pin-10)?
I would be thankful if you can guide regarding the connections.
01-19-2019 11:04 AM
Thanks Kevin, Now I am able to do it.
Thanks alot for help.
01-20-2019 06:35 AM
It isn't clear if you've already dealt with the issue of digital voltage levels.
Your board is designed for for 5V digital. I don't know what you're using as an IR sensor, but the fact it uses a 24V supply is a little cause for concern that it might use 24V logic. On the other hand, you refer to the output signal as "PNP/NPN". That sounds like it might be an open collector arrangement where you can connect to a 5V logic supply (perhaps on your DAQ breakout board) through a pull-up or pull-down resistor.
-Kevin P
01-20-2019 08:51 AM
Yes, Kevin, my issue is resolved. Now I am able to measure the speed using two edge separation method.
Since my DAQ device can provide +5V of voltage but and the IR sensor requires 10-24V of supply that's why I was providing it externally. I am not sure how to use pull up and pull down resistors for this purpose.