LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hokuyo_URG-04LX-UG01_ with NI-MyRIO

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 

 

Download All
0 Kudos
Message 1 of 4
(2,730 Views)

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

0 Kudos
Message 2 of 4
(2,627 Views)

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.

0 Kudos
Message 3 of 4
(2,622 Views)

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

0 Kudos
Message 4 of 4
(2,612 Views)