LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

initialize an array of clusters

I know this is simple and I've looked through many discussions as well as studied the turtorial.  I am missing something very simple.  Please tell me why the broken wire exists for both images?   In one instance the source and sink are exact?

 

Thanks,

CJ

Download All
0 Kudos
Message 1 of 6
(3,832 Views)

The 'default state' declares what the structure/elements of the cluster will look like.

You are contradicting this by what you are building into the cluster.

 

The two have to match.

Cory K
0 Kudos
Message 2 of 6
(3,818 Views)
The cluster array that you are building consists of a cluster that has two scalars, not two arrays. They are not exact.
0 Kudos
Message 3 of 6
(3,814 Views)
But the default state doesn't initialize the array values. This is the case for the valves state.  I am initializing the valves to False and this is an array in the default state.  What gives?
0 Kudos
Message 4 of 6
(3,802 Views)
OK, cool!  I have changed the array build to a cluster of arrays.  Am I just duplicating what is already in the default state?  How do I verify that the array values have been zero'ed?
0 Kudos
Message 5 of 6
(3,791 Views)

Your problem has nothing at all to do with the valves array. If it did, you would have a broken wire there. The problem is with cluster array - where the broken wire is. Look very, very closely at the 'default state' cluster and the elements in it. They simply do not match for the reason I already gave.

 

If you had posted an actual VI instead of some image, I would have posted the fix. Since you did not, CHANGE THE ELEMENTS IN THE CLUSTER to match.

0 Kudos
Message 6 of 6
(3,790 Views)