|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||||
|
|||||
|
Re: Toggle program for a controller?
Here are some examples:
![]() |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
Re: Toggle program for a controller?
|
|
#5
|
|||
|
|||
|
Re: Toggle program for a controller?
'Boolean Crossing PtByPt.vi' can be useful for detecting joystick button presses.
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|