ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple dropdown menu

Solved!
Go to solution

Hello

 

I want to  just write a simple Labview program that would take an input from user (The input must be limited e.g creating a drop down menu). Then based on this input, it must ask user to enter other inputs. for example.

Input 1. can be either a colour , a month or a fruit.

Input 2. If input 1 is colour, then drop down menu should take Red, Green, Orange and Yellow from user. If Input 1 is month, it should ask for one of twelve months and so on.

In the third step I am going to use both of the inputs.

Take the example from snapshot.

 

I would like if you could indicate me an easy method to use this, or should I create a text / excel file or some sort of table to implement this. 

 

0 Kudos
Message 1 of 4
(4,105 Views)

Hi omer,

 

use ring controls to create your "dropdown menus". You can populate the rings with any strings you like at runtime!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(4,096 Views)

Thanks

Thats fine but I want that. If user selects Month from dropdown menu 1, The second dropdown  menu should automatically show just the names of months.

If user selects Colours from dropdown menu 1 , the second dropdown menu should only show colour names.

 

I hope you understand my problem.

0 Kudos
Message 3 of 4
(4,084 Views)
Solution
Accepted by topic author omerbashir

You just write the the Strings[] property for the ring to change the possible values.  You can use the first menu ring and a case structure to decide what to populate the second menu ring with.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 4
(4,074 Views)