LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multi dimensional arrays and table indicators

I'm wondering how I can write a string array with more than two dimensions to a table. Specifically what I want to do is this:

 

I am currently writing a 2d array to the table. Column 1 consists of the channel names from my DAQmx task and Column two is the current data for those channels. What I am trying to do is to split that up into a '2 column view' so that:

 

Column 1: 1st half of  the channel names

Column 2: 1st half of the data

 

Column 3: 2nd half of the channel names

Column 4: 2nd half of the data

 

Here are the steps that I've done to try and make this work:

 

I've split the original 2d array in half by using the 'delete from array' vi which outputs both parts that I need then putting that through the build array vi.  When I do this, the data wire out of the build array vi is of type '3d array' I'm thinking it should be a 4d array and I'm not sure why it isn't. When I try and wire the table to this it will not allow it because the sink type is for 2d arrays.

 

Any advice or suggestions?

0 Kudos
Message 1 of 3
(2,325 Views)

Hi scrook,

that you get a 3D array is absolut correct. Smiley Wink If you have two 2D array, then the next dimension is 3D. Draw a 2D array on one paper (your first part) and a 2D array on another paper (your second part). If you combine them, put one on the other you get a 3D array. Smiley Wink

 

But you need a 2D array.

See the attached example, pelase.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 3
(2,323 Views)

Mike,


I see what you mean. Thanks for giving an example of how to do it correctly.

0 Kudos
Message 3 of 3
(2,311 Views)