LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Clusters & array

I have one Cluster. In that cluster i have 34 string controls and 24 Numeric controls.I have 2nos. 1D arrays.one for strings and another one for numeric datas.Since the control index is mixed for numeric and String(Example index 0 is string,index 1 is String,Index 2 is string,index 3 is Numeric,index 4 is String,Index5 is Numeric,etc.,).How can i pass the datas to the correponding controls.If I use value property node for each controlto assign the corresponding values from the array, it seems to be very big program and trouble shooting also big headache to me.Please suggest
0 Kudos
Message 1 of 4
(2,553 Views)
Hi,

I am attaching a vi where you can change values of cluster elements without using property nodes. Try it.

Hope it hepls. Your feedbacks are welcome.

Best Regards,
Nirmal Sharma
Message 2 of 4
(2,553 Views)
> I have one Cluster. In that cluster i have 34 string controls and 24
> Numeric controls.I have 2nos. 1D arrays.one for strings and another
> one for numeric datas.Since the control index is mixed for numeric and
> String(Example index 0 is string,index 1 is String,Index 2 is
> string,index 3 is Numeric,index 4 is String,Index5 is
> Numeric,etc.,).How can i pass the datas to the correponding
> controls.If I use value property node for each controlto assign the
> corresponding values from the array, it seems to be very big program
> and trouble shooting also big headache to me.Please suggest

You don't exactly state what you are trying to do, but in general, stay
away from setting value properties of cluster elements. You typically
update the entire
cluster at once via its terminal or a local variable.
Or if you are calling a subVI, by wiring to the subVI terminal.

To modify the values of the cluster, use either the bundle or bundle by
name nodes. You can use the center node to take in an existing cluster
value, and use the left side to replace the elements you want to change.
Then wire this to the cluster indicator.

If this wasn't clear, please give more background about what this
cluster represents and under what circumstances you are modifying it.
Also, it this mostly UI or is this a parameter to a subVI, etc.

Greg McKaskle
Message 3 of 4
(2,553 Views)
Hi Nirmal Sharma,

Thanks for giving Sample code.Actually i tried with the same and i forget to link the input Cluster and i got error. Thats why i tried to use property nodes for each elements in the cluster. Now i got cleared.

With best Regards

R.Sathiyanarayanan
0 Kudos
Message 4 of 4
(2,553 Views)