LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Decimate all the column of an 2D array

You really need to provide more details. So what do you want to do with each 1D array? A for loop with a reverse 2D array function works if you do the processing inside the loop.

0 Kudos
Message 11 of 22
(2,093 Views)

HI,

 

I don't understand why you need more information. I can make it more clear.

 

Send me you proposition if you have time and if you can.

 

Just to try, the point here is not what i will do with, it's what i want, decimate X the column of 2d array into X 1D array, that means at any time i can use a variable local refer to on column and make a treatment on it.

I want separat all the column make indicateur so in fact i will have X 1d array as a reference. and this array correspond to the column of the first array 2D.

 

if you put that in For loop then you will get only the last column.

 

I want the X column in X 1D  array. so just with my VI i put at the beginning i want the column separate, no treatment behind, just indicateur array 1d

 

Ben

0 Kudos
Message 12 of 22
(2,087 Views)

HI,

 

Its like when you use delete From Array, then you choose the column you want or the line, then you get acces at the column or line choose, but for me the point is i want to do that for all the column but i dont know the number of column i have.

 

 

 Ben

0 Kudos
Message 13 of 22
(2,084 Views)

http://forums.ni.com/t5/LabVIEW/Split-a-2D-array/m-p/145074

 

On this one aflores wanted tosepare two column for me i don't the number of column but if i have 50 column per example in an array 2d i want 50 1d array. this is the question

 

Thanks for your help

 

Ben 

0 Kudos
Message 14 of 22
(2,075 Views)

You can't dynamically create indicators unless you use scripting.

 

If you don't want to provide the information on why you think you need a unknown number of separate arrays instead of the single 2D you already have, then it's going to be hard to suggest an alternative.

 

 

 

 

0 Kudos
Message 15 of 22
(2,074 Views)

HI

 

oki, now i see your point and in fact this is my problem.Create dynamically indicator.

Oki so let say i have  70 column then, first do have to be sure that there are all filled????

Then one solution will be to create a text file for all my column and then read it when i need?

I don't know i will try

 

Thanks for your help

 

0 Kudos
Message 16 of 22
(2,067 Views)

Once your 2D array is created, you can dynamically index any column you want with the Index Array function. Just wire a value to the column input - not the row input. You will know how many columns you have with the Array Size function. Creating separate files is of course possible but slow and almost certainly unnecessary. It's just more effecient to keep the 2D in memory.

0 Kudos
Message 17 of 22
(2,059 Views)

Hi,

 

Thanks but is not what i want, i want extract all the column in once, like the Unbudle option for cluster. As showned in my example.

 

Ben

0 Kudos
Message 18 of 22
(2,050 Views)

Hi,

 

I will change the problem, i know the number of column by asking to the user it's 50. then in for loop i can extract my column that i am 100 % agree, but i cannot keep it in memory, the problem is that all the time my indicator will take the last column as value. and again what i want, and i don't know if is possible is to get 50 indicateurs with 1d array each corresponding to a column of 2d array.

Ben

0 Kudos
Message 19 of 22
(2,045 Views)

I know what you want but you can't do that dynamically unless in a loop and that is why I keep asking what you want all of those separate 1D arrays for.

0 Kudos
Message 20 of 22
(2,044 Views)