LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of Cluster with event structure

Hi,
 
I am having Array of cluster with cluster having 1 String Control , 1 Combo box, 1 Led control and 2 Numeric control. In the combo box i am having two options to select ('Binary' and 'PWM').Whenever Binary is selected then Led control has be enabled and whenever PWM is selected 2 Numeric control has to be enabled.
 
Is there any way to do this??
Pleas help me...
 
 
Regards
Meenatchi
0 Kudos
Message 1 of 13
(4,173 Views)
enqbling/disabling of controls and indicators, as well as their visibility can be easily programatically defined using property nodes for each control.
cant you use the combo box output to a case structure: case one LEd is enable, case 2, PWM numberic control is enabled?
 
show your app for (maybe) better advice 🙂
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 2 of 13
(4,171 Views)
Meenatchi,

you cannot solve what you are up to!

The reason is that ALL elements of an array share the same properties except the value. Therefore for your application: disabling the LED in one cluster will disable the same LED in all other clusters in this array!

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 3 of 13
(4,164 Views)
true! my misreading.
 
you have to change your array into a super cluster. then continue from there. i dont like this approach tough, because it limits all the features of arrays. i tried once to do this kind of things using xcontrols, but ended on the same side of the fence.


Message Edited by Gabi1 on 11-28-2007 10:45 AM
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 4 of 13
(4,162 Views)
actually in my application, the front panel has to have 16 rows of controls (1 string control, 1 combo box, 1 Led control, 2 numeric control).so i planned to keep all those controls in a cluster and create one array.If i didnt so i will have 16x5 controls in my front panel and i have to put 16 event cases for each combo box to do the enable and disable of controls..
is there any simple way to do this..i have attached my front panel view
0 Kudos
Message 5 of 13
(4,141 Views)


Meenatchi wrote:
If i didnt so i will have 16x5 controls in my front panel and i have to put 16 event cases for each combo box to do the enable and disable of controls..
You dont need 16 ES on the trot, you can have a single common ES for all the Controls that are going to exhibit the common operation phenomena. You just need to wire the New Value from he Event Dat Node to the Case Structure you ve inside the ES, thats it.
 
Try this out...
- Partha ( CLD until Oct 2027 🙂 )
Message 6 of 13
(4,137 Views)
can u please send one example for this...
0 Kudos
Message 7 of 13
(4,134 Views)

if you have "only" 16 clusters of indics, knowing in advance it will not change, you can group them into one cluster.

that mean, you can access programatically all indics easily, and define behavior pattern without hassle. also, if the operations are similar you can use a single event cases for several indics, as Partha said.

i will set up an example later on and post it.

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 8 of 13
(4,128 Views)
A quick n dirty draft using normal controls. Modify as per your cluster needs.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 9 of 13
(4,124 Views)

Meenatchi,

May I know why you want to keep them as Cluster controls? Smiley Indifferent

You can simply keep them as normal controls & building their references into an array to do the Enable/Disable or Visible/Invisible operations all in a single stroke using a For loop -->> Generic Property/Invoke node.

This way will be very much helpful when your application grows to a bigger size in terms of COntrols/Indicators in future, whereas Array of Clusters of Clusters will be really painful when you want to set properties for individual elements all along your UI.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 10 of 13
(4,120 Views)