LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

push button

hi everyone

I wanted to select for example 2 input and even if one of  two buttons is not zero the program still works.

 

My  program works but I do not know why LEDs flash ??

0 Kudos
Message 1 of 4
(2,196 Views)

Its Straight forward since your Push button is true the true case is getting executed if that is false nothing happens. What do you want to achieve in your program?, if you can explain then it would be good

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 4
(2,186 Views)

emmm it look like just a test i want to know how i can use push button so i realsed that programm!!

my programm said if i push commande  and capteur my two LEDS should works but reset commande i stiil have those two leds work but when i resert capteur the two leds shouldn't works  

0 Kudos
Message 3 of 4
(2,181 Views)
  • Buttons are true or false, never zero.
  • Your two boolean controls have to different mechanical actions.
  • Your loop spins millions of times per second. I doubt you need that kind of resolution (and your mouse is much slower anyway!).
  • What is flashing? I don't see that?
  • You don't need a case structure or local variables for your code. Simplify!
  • If you want the output to be true if at least one input is true, use a OR function.

 

Please show us what you do and in what order you operate the controls. What do you observe and what you expect to see instead.

0 Kudos
Message 4 of 4
(2,156 Views)