LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Deconstructing a 2D Array with a Loop

I'am generating via a .NET function an Output in the form of a 2D Array:

 

Object[][]

 

Now i'm funneling this towards a For-Loop, in the hopes of turning this Output by means of auto-indexing into sequential chunks of

 

Object[]

 

as i have a function within the loop that is expecting "Object[]" as an argument.

 

Now im getting the error in the pic related: LabView "chunks" my 2D Array in a different format and i cannot connect them anymore. 

 

How do i need to adjust the code so that i can connect ?

0 Kudos
Message 1 of 3
(1,903 Views)

The problem does not appear to be with the auto-indexing of your array but rather with the datatype that you provide (or try to use) of the elements in the array.

 

Since you do not provide more information, I cannot help you more than that. Try to provide actual code in the simplest form possible that reproduce your problem.

Marc Dubois
0 Kudos
Message 2 of 3
(1,876 Views)

That doesn't appear to be a 2D array. The function returns a 1D array, and the autoindexing turns it into a scalar.

0 Kudos
Message 3 of 3
(1,808 Views)