05-07-2017 10:08 AM
Good Afternoon,
I am using MyRio and URG-04LX-UG01 together and trying to get the distance of the obstacle, but the URG-04LX-UG01 is only giving me magnitudes and directions with a very huge size of array.
I tried to get the distance with practical way to get an equation that represent a relation between the magnitude and distance. but that did not work since the magnitudes were almost the same in all cases.
Any idea how to get the distance ?
Thanks
05-08-2017 05:27 PM
Can you post a screen shot of what the front panel looks like when you run it? I am unable to see what you mean because I do not have the hardware to run the code.
Have you tried adjusting the Acquire Data.vi to adjust the size of the data array?
Danielle
Applications Engineer
05-09-2017 01:54 AM
Hello, dmysliwiec13,
Attached the picture of the front panel, the plot describes the obstacles in-front of the Hokuyo_URG-04LX-UG01.
Yes, I changed the start point and the end point then the size of the array has been change.
Thanks,
Appreciate your response.
05-09-2017 05:28 PM
I am a bit confused, it doesn't seem like the array size is very large for the direction and magnitude; it only looks like one number. The values of what is in the array however seem large. Maybe I am misunderstanding your question. What are you wanting to see exactly?
Danielle
Applications Engineer