From Thursday, May 23rd (05:00 PM CDT) through Friday, April 24th (1:30 AM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Input items to a ComboBox at runtime

Hi
 
I'm trying to use a comboBox to display a list of item only at runtime. For example, there are 2 combo boxes, the first one is a menu (1-4), when option 1 is selected at runtime, the second combo box should have a list for option 1 which might be (A-D). It this possible in LabView 8?
 
 
0 Kudos
Message 1 of 14
(3,610 Views)
Sorry it's in LV 7.1.1, but it should work in LV 8 also 😉



We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 14
(3,593 Views)

Please see attached for your reference.

In addition, you may consider using

  1. Enum or
  2. Menu Ring

to achieve your requirement 😉

Cheers!

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 14
(3,592 Views)
Cool, i tried both solutions. I'm deploying it to a PDA, so the same rules should apply right?
0 Kudos
Message 4 of 14
(3,586 Views)
might i'll try both solutions. Thanks for the quick response
0 Kudos
Message 5 of 14
(3,585 Views)

I forgot to mention that it is for a PDA, so property node is not supported.

Any other ideas?

Plus, the String ComboBox has a very small drop down button that the size can not be increased and it can't be see on a PDA, a Ring drop down will be prepared.

 

0 Kudos
Message 6 of 14
(3,577 Views)
Well the code is not different to do the same with a dropdown box instead of the combo.

I have never used LV on a PDA and didn't know that property nodes are not supported Smiley Surprised.... an then I don't know how to do that... Smiley Indifferent
Sorry...

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 7 of 14
(3,574 Views)
In LV PDA 7.1 there is a function in the Application palette: PDA Set Ring Strings.vi. It needs a reference to the ring control as input.
However, there were many changes from 7 to 8, so I don't know if it's still there.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 8 of 14
(3,567 Views)
Hi

The PDA Set Ring Strings.vi is still available on the Applications Palettein LabVIEW 8 for your reference.

Regards
JamesC
NIUK and Ireland

0 Kudos
Message 9 of 14
(3,537 Views)
Thanks, just trying to get my head around it now.
0 Kudos
Message 10 of 14
(3,533 Views)