LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d array to cluster

Hello,
My program contains 3 nested loops. When I bring the "error: wire out of them it is a "3D array of cluster of 3 elements". How would I convert it back to a cluster of 3 elements?
I get the following error when I try to wire it to something; You have connected and array data type to it's element data type. The type of source is 3D array of cluster of 3 elements. The type of sink is cluster of 3 elements.

Thanks in advance,

Jimmy
0 Kudos
Message 1 of 5
(3,023 Views)
if you dont need all those error arrays from each loop just disable the indexing on the output from the loops. this will only contain the last error that happened though.

Dan
Message 2 of 5
(3,021 Views)
Dan is right. If you want the first error and all of your subVIs do nothing except pass errors through when error in is true, you can pass the error cluster through the loops via shift registers.

Lynn
0 Kudos
Message 3 of 5
(3,009 Views)
If you disable indexing, you get the error of the last iteration. If you use the shift register approach, you should get the first error, provided the code in the loop correctly passes errors. If it doesn't (more common than you may think), do not disable indexing, but use the Merge Errors VI to pick the first error from each loop. You will need to use it twice, once after each loop.
Message 4 of 5
(2,992 Views)
Thanks to all,
I had disabled indexing, but changed to the merge error approach.

Jimmy
0 Kudos
Message 5 of 5
(2,989 Views)