LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring Velocity using 2 IR sensors

Hi, I have a project that requires to monitor the velocity of a moving object. I plan to use two IR sensors, in theory I can get the velocity by using this formula

V = distance between IR sensors / Time difference of 2 sensors

Now, I don't know how to make a block diagram for that kind of vi.
Btw, I am not using DAQ, I am using Arduino Uno straight to LabView with LINX ad on. Can someone help me?
(I really don't understand how Shift register works and how to configure it, also the Tick Count or High Resolution Relative Seconds)
Please, I need some help.

0 Kudos
Message 1 of 2
(103 Views)

Well we're not really here to teach you LabVIEW. I suggest you take some of the free training courses for LabVIEW and LINX available online. 

 

But since you understand what you basically need to do I will point you in a direction.

 

Connect each IR sensor to one of the Arduino's digital inputs (D0 and D1) 

When D0 is triggered start your timer

When D1 is triggered stop your timer

Do the speed calculation  

 

There are plenty of tutorials online that can show you how to attach sensors to the Arduino digital inputs and on how to use LINX to read digital inputs. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 2
(33 Views)