|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Toggling Between Two buttons
I'm working in FRC Labview 2015.
|
|
#2
|
||||
|
||||
|
Re: Toggling Between Two buttons
I think this vi comes close to what you are looking for. Let me know if you need more details on how it works.
Dave |
|
#3
|
|||||
|
|||||
|
Re: Toggling Between Two buttons
In LabVIEW, what you want to do is pretty easy. You only want to change the value being sent to the motor controller when a button is pressed, right? You want the motor to keep turning in whatever direction it was turning when you let go of the button, right?
Use a Case block wired to the button value. In the True case, set the motor to whatever value you want. Leave the False case empty. Use another similar Case block for the other button. This will do what you asked for. You will want to avoid pressing both buttons at the same time, because what the motor does might not be predictable. It won't give you a way to turn off the motor, though. This might be okay, or you might need to rethink your requirements. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|