LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster2Array ||

Hello !
I would like to ask if it´s better to have Cluster2 Array (Func) or
UnboundleByName and after Build Array ?If you wonder why i can tell you that
the first one it´s working only with object of the same type ,instead of the
second way which supports any objects inluded.The problem is that if you use
the second option then the function array to cluster it´s not working.!
0 Kudos
Message 1 of 3
(2,854 Views)
AusDeutschland wrote:

> Hello !
> I would like to ask if it´s better to have Cluster2 Array (Func) or
> UnboundleByName and after Build Array ?If you wonder why i can tell you that
> the first one it´s working only with object of the same type ,instead of the
> second way which supports any objects inluded.The problem is that if you use
> the second option then the function array to cluster it´s not working.!

I am a little confused about what you are asking but here is some information.

All elements of an array must be of the same datatype (i.e all DBL, all
strings, etc).
The elements of a cluster do not have to be the same. So if you have a cluster
of different data types then the "Cluster To Array" will not work.

If you have built an array the "Unbundle ...." f
unctions will not work, they
are designed for clusters.
If you build and array and use the "Array to Cluster" function then you can not
use the
"Unbundle by Name" on the cluster since there are no names associated with the
elements.
In this case you will have to use the "Unbundle" which works on cluster order.

If this is not clear, please ask again.
Kevin Kent
0 Kudos
Message 2 of 3
(2,854 Views)
Kevin B. Kent wrote in message
news:3991AD0D.B34D81CB@usa.alcatel.com...
> AusDeutschland wrote:
>
> > Hello !
> > I would like to ask if it´s better to have Cluster2 Array (Func) or
> > UnboundleByName and after Build Array ?If you wonder why i can tell you
that
> > the first one it´s working only with object of the same type ,instead of
the
> > second way which supports any objects inluded.The problem is that if you
use
> > the second option then the function array to cluster it´s not working.!
>
> I am a little confused about what you are asking but here is some
information.
>
> All elements of an array must be of the same datatype (i.e all DBL, all
> strings, etc).
> The elements of a cluster do not have to be the same. So if
you have a
cluster
> of different data types then the "Cluster To Array" will not work.

Additionally, if you convert an array to a cluster, you have to pop up the
right mouse button menu over the "array to cluster" node and specify how
many elements the cluster has- the default is to make a 9 element cluster
from the first 9 elements of the array. I get the impression from the last
line that this may be the problem.
0 Kudos
Message 3 of 3
(2,854 Views)