LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a control with different options?

I have an input for a diameter in inches, there are only 6 different options that it can be as I am dealing with specific fan models. Is there a way I can create the control to have the 6 different options as buttons or a drop down menu without using a case structure or radio buttons? Not sure if those would work for this but that's the information I'm getting when searching. Thanks.

0 Kudos
Message 1 of 5
(2,686 Views)

You can use a Ring control. 

0 Kudos
Message 2 of 5
(2,678 Views)

There are many ways to select one from a small number, including a Knob Control!  I'm attaching a little VI with a Knob Control whose labels are "Model 1", "Model 2", "Model 2A", and three others, and which output values of 1.3 and others, designed to be the diameters of the chosen Fan.  It's not necessarily a "serious" suggestion that you do it this way, but it does show that you can make a Knob that outputs specific values, as though it was an Enum.

 

Bob Schor

 

Download All
0 Kudos
Message 3 of 5
(2,649 Views)

Here is a nice challenging question.

 

How to: make a "Selection" of One only Gizmo type from a known set of Gizmos and return a parameter of that Gizmo type which may not be unique among all known Gizmos?

 

Obviously a single control won't do. we need a Control and a Look Up Table and we can populate both at run-time.

Capture2.png

 

This shows all three parts of the required solution:

  1. Write a file with Fan Types and Diameters 
  2. Read the file and populate the UI Control (Ring type as I32) strings and values[] and The LUT
  3. Read Fan Diameter from the LUT for selected Fan Type

Now, if you are Really Good. you will create a Lvlib with an Action Engine as a private member and public Members of Write to LUTFile.vi Initialize From LUTFile.vi and Get Diameter.vi (API) 

 

And if you are Exceptional, the Library will also contain a "LUT File Editor Utility.vi" with load, Save, Save As, Exit and Cancel Buttons

 

Kudos to the less time constrained for that example


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

Thank you all for the suggestions! I will look into them and figure out what I can come up with that best fits my application. I will post back with results soon!

0 Kudos
Message 5 of 5
(2,596 Views)