LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Toggle switch flip up and down to activate a system

If a certain system is activated by flipping the toggle switch up and down, or down and up, what is the most elegant way to implement this?

 

The only way I can think of is comparing the switch's present value with a feedback node; if the values are not the same, the system will be activated.

 

But could there be a simpler way to do this, like changing the switch properties or something? 

 

ScreenHunter_05 Apr. 27 19.26.jpg

 

 

0 Kudos
Message 1 of 3
(3,561 Views)

A statemachine works pretty well...

Message 2 of 3
(3,553 Views)

 

 

http://wiki.openg.org/Boolean_Trigger

 


This VI is used to detect rising and falling edges of the Boolean Input. "Rising Edge" is TRUE if Boolean Input is TRUE and was previously FALSE. "Falling Edge" is TRUE if Boolean Input is FALSE and was previously TRUE. This VI is intended to be used in loops to aid in user input polling.


 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 3 of 3
(3,538 Views)