Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Button to control motor? (http://www.chiefdelphi.com/forums/showthread.php?t=125761)

TylerStaudigel 03-02-2014 15:19

Button to control motor?
 
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

Re: Button to control motor?
 
Quote:

Originally Posted by TylerStaudigel (Post 1336987)
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

Re: Button to control motor?
 
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:


Using Case statements looks like this (replace the Solenoid Sets with Motor Sets).
This method isn't compatible with the Motor Safety Config:


All times are GMT -5. The time now is 09:43.

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