06-11-2014 06:44 AM
I am looking to update a combo box from a cluster array. The array is indexed then unbundled by name and the element I want for the combo box is selected. How would i update the combo box from here or is this method even the right method of doing it?
06-11-2014 08:20 AM
Use the property Strings [] to populate the drop down with the items you want. Use a local variable, or property node Value to set the selected item of the combo box.
Does that answer your question?
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-11-2014 08:23 AM
Hey,
you could use a local variable to write the value to the Control or use the property node -> value.
Regards,
CMW
06-11-2014 08:24 AM
I was too slow :-).
06-11-2014 08:28 AM
This is what I have where will I link the local variable to?
Is it possible to index out the combo box selection?
06-11-2014 08:42 AM
You are close. So instead of indexing on item out, why not grab all of them? So for all items, index out all Types and then write that. Do this with a For Loop. Remove the index function, remove the build array, and instead put a for loop so that you index out all types (but the unbundle in the for loop) and the output will be an array of items which you set the Strings[] to.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-11-2014 08:48 AM
Hey,
here some additional information of the two possible ways discussed in the previous posts.
..sorry for not posting an VI snippet
Regards,
CMW
06-11-2014 08:56 AM
If I use the cluster to array function on either example I get the polymorphic tunnel cannot accept this data type error
06-11-2014 09:01 AM
Cluster to Array only works when the datatype of the cluser elements are all the same. Here is what I was trying to say. And by the way I sure hope your massive cluster is type def'ed.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-11-2014 09:02 AM
Datatypes in arrays must have the same datatypes. e.g. strings, ..
Regards
CMW