Programing LabView - Arrays of Clusters

From the last example, place an array container next to the cluster control and then drag the entire cluster into the array container:

Expand the array so you can see multiple elements by left click / dragging the bottom of the array container:


Type in some information. Note that you can provide different information for each cluster element of the array.


Here is an example in code of how you would use many of the pieces learned so far in these tutorials to actually do something with an array of clusters:

This example autoindexes an element of the array of clusters for each iteration of the for loop. Each element coming out of the autoindexing tunnel is a cluster that is then unbundled by name. In this example the string type only is sent to an outgoing autoindexing tunnel which creates a string array. The indicator at the right shows an array of strings. You could process the data in each cluster element any way you want with code in the for loop. This is one of many programming patterns that you will see in LabView.

5 comments:

praveen darapu said...
This comment has been removed by the author.
praveen darapu said...

if possible provide the code for the array example

Anonymous said...

in the last picture. the connection between the unbundle n the Array on the outside cannot be established.

Anonymous said...

I have the same problem. There is not sufficient information in this example to build the final circuit. I've spent half an hour messing around with little boxes and clicking hard to find edges and I can't build it. This doesn't feel like logic or programming, it feels like a form of torture.

Anonymous said...

Example doesn't work