Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Toggle program for a controller? (http://www.chiefdelphi.com/forums/showthread.php?t=153858)

20181180 18-01-2017 10:00

Toggle program for a controller?
 
Quick question:

Does anyone have a screenshot or an explanation on how to make something that is toggle-able in LabVIEW? We're trying to have a piston be opened upon a button press and then have it close upon the same button press, not having to hold down the button or release the button to let it go out and in respectively.

Thanks

Mark McLeod 18-01-2017 10:05

Re: Toggle program for a controller?
 
Here are some examples:

rich2202 18-01-2017 10:33

Re: Toggle program for a controller?
 
You also might want to include a function to "debounce" the button. A quick and dirty way is to wait at least 1/2 a second before recognizing a change in state of the button.

20181180 18-01-2017 11:12

Re: Toggle program for a controller?
 
Quote:

Originally Posted by Mark McLeod (Post 1632874)
Here are some examples:


Thank you! This is very helpful!

MStewart 27-01-2017 14:24

Re: Toggle program for a controller?
 
'Boolean Crossing PtByPt.vi' can be useful for detecting joystick button presses.




All times are GMT -5. The time now is 10:53.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi