LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Seperate an array like a cluster?

I wonder if its possible to seperate an array like a cluster. I am looking for something like the cluster tool with one input (the array) and many outputs.

Is it possible to create an array like a cluster many inputs (numbers, values) and one output (the array)
But the other way?
I know how to divide or seperate one single part of an array. But the entire array?
0 Kudos
Message 1 of 6
(3,043 Views)
If the array is always the same size or you know the maximum size, then you can use the array to cluster function.
0 Kudos
Message 2 of 6
(3,043 Views)
"Knappe" wrote in message
news:506500000008000000BD640000-1031838699000@exchange.ni.com...
> I wonder if its possible to seperate an array like a cluster. I am
> looking for something like the cluster tool with one input (the array)
> and many outputs.
>
> Is it possible to create an array like a cluster many inputs (numbers,
> values) and one output (the array)
> But the other way?
> I know how to divide or seperate one single part of an array. But the
> entire array?

If you know the size of the array you could use decimate array. Size it to
the number of elements. It will return N arrays with 1 element each and you
can index out the elements with a for loop set to one iteration.
0 Kudos
Message 3 of 6
(3,043 Views)
You can also expand the "Index Array" node to any number of outputs. When you leave the indices unwired, the outputs are elements 0,1,2,3,...

To create an array on the diagram, use "Build Array" function and expand it to the desired number of elements. The node can concatenate arrays and elements.


LabVIEW, C'est LabVIEW

Message 4 of 6
(3,043 Views)
> You can also expand the "Index Array" node to any number of outputs.
> When you leave the indices unwired, the outputs are elements
> 0,1,2,3,...
>
> To create an array on the diagram, use "Build Array" function and
> expand it to the desired number of elements. The node can concatenate
> arrays and elements.

And if you are using an old version of LV, you can just convert the
array to a cluster, then use the cluster unbundler. Note that you
probably need to popup on the array to cluster convertor and tell it how
many items should be taken from the array and put into the cluster. It
defaults to nine.

Greg McKaskle
Message 5 of 6
(3,043 Views)
Jipeeeeh, that´s it.
I never tried to expand this node. My godness, that was easy.
Thanks man.

ALEX
0 Kudos
Message 6 of 6
(3,043 Views)