LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connected 2 terminals of 2 different types even though they are the same?

Solved!
Go to solution

Hello, 

 

I have a Hokuyo Lidar and I am trying to graph the points on a polar plot. From what I understand, the Lidar Vi outputs both the magnitude and direction as two separate 1D arrays. So the nth index of the magnitude array will correspond with the nth index of the direction array. The polar plot requires a 1D array with a cluster of 2 elements. 

 

So I bundled the two 1D arrays into a cluster, and then built the array as shown in the screenshot below. (I apologize for the messiness, I am still new to LabVIEW)

Capture.PNG

 

However as the screenshot shows, there is a broken line between the array output and the polar plot input. The error is shown below. 

Error.PNG

 

So why am I still getting an error when the types are the same? Is this even the correct way to show the lidar points? Should I be using something other than a polar plot? 

 

Thank you for your help.

0 Kudos
Message 1 of 3
(3,097 Views)
Solution
Accepted by topic author oodan123
The data type Polar Plot accepts is Array of Cluster of two elements.
-What you connected is Array of Cluster of arrays(LabVIEW Error is showing as element maybe some bug).
-So you need have Cluster of two elements(Dir and Mag) and then Build Array.
-Generally when I face these type of mismatch happens will create simple constant or control/Indicator at that input/output and get the exact data type and correct it.
Thanks
uday
Message 2 of 3
(3,075 Views)

Thanks for that, ill check it out

0 Kudos
Message 3 of 3
(3,067 Views)