LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to use a 2 way switch with integer control in labview.

I need to use a 2 way switch with integer control. Like when it is in true state then it gives int =1 as the output and when it is in false state then it gives int =2 as the output.

0 Kudos
Message 1 of 3
(2,368 Views)

Hi Neha,

 

LabVIEW provides a lot of boolean input switches. Use one of them.

There also is a "Boolean To 0/1" function: use it!

Then all you need to do is to apply some simple math:

output := 2 - BooleanTo01(boolean switch)

 

The other option is the same as in your other thread about 3-way switches:

Use a pointer slide control and set it's values as needed…

Best regards,
GerdW


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

Another option is for you to use a selector.

Sample.png

Message 3 of 3
(2,348 Views)