04-16-2019 04:20 AM
So I would like to build the following Array clusters in my VI:
Initially the array is 'Disabled and Greyed Out', ticking/unticking the 'Output Trigger Setup' tick box enables/disables the array.
and this is where I am now stuck....
In the clusters, I have the initial condition set as Outer Cluster 'Enabled' and Inner Cluster 'Disabled and Greyed Out'.
What I would like to happen is that if 'Trigger1' Tickbox is ticked/unticked, the corresponding inner Cluster is enabled/disabled.
Also I would like that when the array is enabled, 'Trigger1' caption in each of the elements is changed to 'Trigger1', 'Trigger2' and 'Trigger3' respectively.
Is there any way of achieving this?
The reason that I want to use this kind on arrangement is because it would make building the next steps of this project significantly easier.
Solved! Go to Solution.
04-16-2019 04:48 AM
Hi sherzaad,
Also I would like that when the array is enabled, 'Trigger1' caption in each of the elements is changed to 'Trigger1', 'Trigger2' and 'Trigger3' respectively.
In an array all elements share the same properties: this includes the caption!
So "No", you cannot use different captions for the same item in each array element…
I prefer to decouple the UI representation from the data storage datatype. This way you can do anything you like in the UI, but keep your data in a consitent data structure!
Example: I never (or: very very seldom) use arrays in the UI. Most often I only show one array element and have an additional listbox to select the array element I want to edit…
04-16-2019 05:27 AM
What you _can_ do is adding a string indicator (name?) and hide the Trigger label. That is a data field which is unique to each cluster, thus giving them unique 'names'.
Ofc, since the properties are common, if you enable the inner cluster, it'll enable for all elements.
You could use Array to Cluster to convert the array to a cluster of clusters with an inner cluster … that way you could control each individually (since they'd all be unique within one cluster), but you'll use the expandability of an array.
/Y