View Full Version : Button to control motor?
TylerStaudigel
03-02-2014, 15:19
I need help to figure out a way to make a Boolean true false control a motor. I only need the motor to run at one speed and needs lots of help.
Kevin Phan
03-02-2014, 15:22
I need help to figure out a way to make a Boolean true false control a motor. I only need the motor to run at one speed and needs lots of help.
Use the express vi for true and false or a case structure with a constant in it to control your motor output. I don't have LabVIEW on me, so I can't show you right now.
Mark McLeod
03-02-2014, 16:35
It sounds like you just want to use a Select (on the Programming->Comparisons palette).
Here's an example using a couple of Selects to set motor speeds.
This particular example maintains the last speed chosen by button until overridden by a new button press and it's compatible with the Motor Safety Config if you want to use that:
http://team358.org/files/programming/ControlSystem2009-/LabVIEW/TwoButtonOnOff.png
Using Case statements looks like this (replace the Solenoid Sets with Motor Sets).
This method isn't compatible with the Motor Safety Config:
http://team358.org/files/programming/ControlSystem2009-/LabVIEW/TwoButtonsAlternate.png
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.