LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting arrays from cases

Hallo,

I have to save various arrays to one file. They are generated in several case-boxes. If I connecto them the following error occurs:

"missing assignment to tunnel"

What am I doing wrong?

Arno
0 Kudos
Message 1 of 3
(2,838 Views)
Hi Arno,

You'll have to make sure that every output tunnel has been wired in each case in your case structure. If for some cases you're not outputing any values, you can right click on the tunnel and check "Use Default If Unwired", which in your case will return an empty array.

Dan
0 Kudos
Message 2 of 3
(2,838 Views)
Your question is a little unclear. Do you create the arrays in several cases of a single case structure or do have multiple case statements in which the arrays are generated in a single case? If it's the first, then all of the arrays should be wired to the same output tunnel of the case structure. The arrays have to be of the same dimension (can't be a mix of 1D and 2D) and type (can't mix string and numeric arrays). If you have multiple case statements in which only one case creates an array, in the other case you can create an empty array and wire that to the output tunnel or right click on the output tunnel at the empty case and select "Use Default if Unwired". The effect will be the same - an empty array will be passed out of the case.
0 Kudos
Message 3 of 3
(2,838 Views)