02-12-2012 02:12 PM
Hello,
I am working on a university project where i will use ultrasonic sensor for detecting vehicles. The distance measured from the srf05 will be used to determine wether a parking spot is occupied or not using red and green led lights. I have already used an example from the forums but the problem is that the values of distance obtained are not correct, with numbers reaching thousand of metres.
What do you thing is the problem? The vi used is attached in the following link :https://decibel.ni.com/content/docs/DOC-3737
The hardware used is Compactrio 9024 with cRIO 9118 chassis and the module is NI 9403.
02-15-2012 03:24 AM
Hi Stefanos,
I have taken a look at your VI and have a few questions/tips I need you to do to establish what is causing the distance to be so large.
1. If you place a probe on the wire leading to the "Raw Distance (cm)" indicator and one after the high throughput add function. Do either probe display the correct value or is the raw distance correct?
2. If you test your system and measure a known distance does the distance measured by your application linearly increase or decrease as you move the object? If so, it could be to do with some scaling somewhere.
3. Would it be possible to create a .zip file with your full project file and attach this to a post. This could allow me to try to recreate the system and see if I experience the same issue.
I hope this info helps!
Kind Regards,
02-15-2012 04:37 PM
Hello Laurence,
Thank you for the response! Actually i managed to make it work today!! It was a problem with the sensor. it works perfectly now!
Regards
Stefanos Kythreotis
02-16-2012 03:01 AM
Hi Stefanos,
That is good to hear. I hope your project goes well!
Kind Regads,
12-06-2012 12:32 PM
hii Stefanos
i am using ultrasonic sensor SRF05 for measurement distance from sensor to object! but i did not know why my resulf is very erratic!
i am using PCI 6052E, LabVIEW 2010, win7!
can u help me?