03-09-2014 01:10 PM
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"
One array to enable Stop [T] and one array of Control Refs to disable [F] Start, Exit and Settings
03-09-2014 03:07 PM
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