LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why does the selector label turn red when i try to change it?

Solved!
Go to solution

I need 6 cases in the case structure. When i try to change the default True label to Zero, I see that it turn red. why is that? and how do i prevent that?   

0 Kudos
Message 1 of 8
(5,882 Views)
Because you left the Boolean connected to the selector. Change to an integer.
0 Kudos
Message 2 of 8
(5,878 Views)

Sorry, Very new to labview.... how exactly do i do that? 

0 Kudos
Message 3 of 8
(5,870 Views)
Solution
Accepted by topic author haab16
...or you just created it and the default selector type is boolean. As Dennis said wire a number to it and all will be well with the world.

If you are going to have multiple cases, do you know how to define ranges in the labels? That can be very helpful.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 8
(5,869 Views)
Obviously, a Boolean will not give you more than 2 options - true or false. If you don't know how to create a numeric control or wire the case selector to whatever is generating the 6 different numbers for the case statement, stop what you are doing and take some of the free tutorials.
0 Kudos
Message 5 of 8
(5,854 Views)

Wired up a numeric constant and right clicked and selected" replace with case selector" . Solved the issue! thanks!  

 

Can you give me an example when the range is used? 

0 Kudos
Message 6 of 8
(5,853 Views)
Ranges are also a basic element. You can have a case where the input can be anything between two numbers, greater than, less than, etc. For example, if you used ..2, the case would apply to any number less than or equal to 2. Be sure to use an integer as the case selector.
0 Kudos
Message 7 of 8
(5,841 Views)

Thanks! 🙂 

0 Kudos
Message 8 of 8
(5,836 Views)