LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean refnum in a cluster missing the point how to create it... :-(

The  "Set Enable State on Multiple Controls.vi" only accepts an ARRAY of Controls not clusters.

 

In the top level VI, the "UI Refs" are contained in a cluster stored in the while loop shift registor with the wire labeled "UI Refs"  

BUT the "Set Enable State on Multiple Controls.vi" accepts an ARRAY of controls refs.

So you must "convert" the cluster into an array before calling the "Set Enable State on Multiple Controls.vi"

 

This is the bit of code that is unbudling the cluster of UI Refs and building two arrays for each call to "Set Enable State on Multiple Controls.vi" 

ClusterToArray.png

One array to enable Stop [T] and one array of Control Refs to disable [F] Start, Exit and Settings

Omar
0 Kudos
Message 11 of 12
(558 Views)

code.gimmie.code a écrit :

Thank you Omar,

 

It seems to work now, the only thing is I need to keep the bundle function. I can not remove the bundle function and only use the Cluster constant created with the bundle function while the example uses only a cluster constant. Wondering why that is so...


The cluster that is created is just a datatype not reference to the controls. You need the bundle function to assign values (the controls references) to this datatype.

 

Ben64

0 Kudos
Message 12 of 12
(545 Views)