LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple case structure problem

Hello, I am brand new on LabVIEW and I have a very simple problem with case structures. I basically have a simple program (set of alarms) and I want them to work on 3 different cases. I want the user to have a string control (hopefully a drop down menu) that has "Metric, English, or User Defined" If the user chooses "Metric" then the alarms function in metric units, and so on for the other two cases. In other words, all I want is:

 

if 

input "Metric"

     Program 1

input "English"

     Program 2

input "User Defined"

     Program 3

end

 

I just dont know what string control to use and how to connect it to the case structure. The simple case structure example didn't help me much so I was just wondering if someone could either tell me how to connect string controls or even give me a better example.

 

Thanks!

0 Kudos
Message 1 of 4
(3,943 Views)

You really need to learn Labview basics.  Simply wire the string to the case question mark.  Edit the text at the top of the case structure to match your input.  Put appropriate code in each case.  Add new cases by right clicking on the case border and selecting Add Case.

 

17671i98950F7A5BF12B4F

- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 4
(3,936 Views)

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

0 Kudos
Message 3 of 4
(3,931 Views)

You can actually use any of the drop-down controls. Text and Menu ring display strings but return a number that can be wired. A enum can display strings and the case structure will also display them. A Combo Box displays and returns strings and you manually enter in the case values.

0 Kudos
Message 4 of 4
(3,926 Views)