01-06-2014 12:08 PM
I would like to programmatically populate a combo box but it appears to have an odd behavior: it doesn’t actually update until the “Down Arrow” of the combo box is pressed. If you run the snippet, the Ring Control updates automatically the Combo Box still shows the previous value.
Searching the forum, I found one article that recommends using a Refnum instead of a property node. Combo Box still not automatically updating. What am I doing wrong?
Solved! Go to Solution.
01-06-2014 12:23 PM - edited 01-06-2014 12:24 PM
About what I thought I'd find
The ring does not have this property set.
01-06-2014 12:32 PM
Checking or unchecking the box didn't change the behavior.
The behavior gets even worse if you wire an empty array to the combo box STRING[] property. It never updates on the front panel although the properties dialog box shows it as being empty.
I attached the VI in Ver 10
01-06-2014 12:37 PM - edited 01-06-2014 12:41 PM
Well, you never set the value property. You really didn't expect the value to change without any change to the value property did you? (that would be bad) (That is, there is nothing to trigger the transfer buffer to refresh the control's view and update the display- Perhaps there "Should be" perhaps not- current implementation suggests that there is not)
01-06-2014 12:54 PM
Setting the Value property after updating the combo box list solved the problem.
Thanks for your help.
01-06-2014 01:16 PM
You're confusing the combo box string with the combo box value. Your VI changes the strings but not the value of the combo box. Actally, the same thing is happening to the ring, the value isn't changin. The difference is you get the string associated with that value.
Just change the value of the combo box as well as the strings.