LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array into cluster

How do I input an array into the middle of a cluster?
Thanks
0 Kudos
Message 1 of 21
(3,136 Views)
For loop or something more elegant?
0 Kudos
Message 2 of 21
(3,132 Views)
Hi exo,
can you explain a little bit more? Thanks
Mike
0 Kudos
Message 3 of 21
(3,130 Views)
Like what?
 
You have to be more specific. Cause if you use "bundle" you can do that!
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 4 of 21
(3,130 Views)
I have an array of strings that needs to become part of a cluster. If I bundle an array of 10 elements into position 3 in the cluster will it fill in elements 3 to 12?
0 Kudos
Message 5 of 21
(3,127 Views)
The example it's not pretty. But see if it helps!
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 6 of 21
(3,126 Views)
Nope, Sorry. Each element in the array has to become an element in the cluster. The array cannot be an element in the cluster.
0 Kudos
Message 7 of 21
(3,095 Views)

Index array and bundle by name will let you choose which index goes into which cluster element.  If there is a 1:1 mapping of index to cluster elements and the cluster is all of a particular data type there is cluster to array and array to cluster fuinctions in the vi pallette.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 8 of 21
(3,091 Views)
The array elements have to go into the middle of the cluster.
0 Kudos
Message 9 of 21
(3,088 Views)
It does not really help if you keep repeating cryptic messages.
 
A cluster has no "middle"!
 
Why don't you attach a VI that has reasonable input values as control defaults and an indicator with the desired cluster, again containing the desired outcome as default value. This way we can easily see what you actually mean. Thanks! 🙂
0 Kudos
Message 10 of 21
(3,059 Views)