LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combo Box Not Updating Automatically

Solved!
Go to solution

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?

0 Kudos
Message 1 of 6
(5,386 Views)

Capture.PNG

 

About what I thought I'd find

 

The ring does not have this property set.


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 6
(5,368 Views)

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

0 Kudos
Message 3 of 6
(5,357 Views)
Solution
Accepted by topic author jamiva

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)


"Should be" isn't "Is" -Jay
Message 4 of 6
(5,349 Views)

Setting the Value property after updating the combo box list solved the problem.

Thanks for your help.

0 Kudos
Message 5 of 6
(5,338 Views)

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.

 

ComboBox_vs_Ring.png

 

Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
0 Kudos
Message 6 of 6
(5,323 Views)