LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to initialise/initialize array of clusters

Solved!
Go to solution

I'm trying to initialize an array of clusters of arrays and getting a bit muddled up. Can anyone help?

 

I've attached the (very simple) VI. I'm sure there's an easy way to do it, but I'm getting nowhere fast.

 

In case anyone is interested, the array is used in a much bigger application to store XY graph data.

 

Thanks in advance,

 

Jon.

 

0 Kudos
Message 1 of 5
(8,881 Views)

You can use a for loop with Auto-indexing.

The attached image has an example.

0 Kudos
Message 2 of 5
(8,869 Views)
Solution
Accepted by topic author Tournifreak

There's no need to use a for loop to build the array.  You can use "Initialize Array" to do this.

 

Chris M 

Message 3 of 5
(8,862 Views)
Thanks Chris. It didn't strike me. 🙂
Message 4 of 5
(8,850 Views)

Brilliant - thanks so much. It's obvious now you've shown me!

 

Jon.

0 Kudos
Message 5 of 5
(8,846 Views)