Go to Post Many of us are engineers who value precision and accuracy in communication. Words mean things. - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-02-2014, 15:19
TylerStaudigel's Avatar
TylerStaudigel TylerStaudigel is offline
Registered User
FRC #0144 (R.O.C.K)
Team Role: Programmer
 
Join Date: Dec 2013
Rookie Year: 2014
Location: United States
Posts: 39
TylerStaudigel is an unknown quantity at this point
Question 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.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2014, 15:22
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: Button to control motor?

Quote:
Originally Posted by TylerStaudigel View Post
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2014, 16:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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:
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2014 at 16:45.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:54.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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