Go to Post How come CD doesn't have a "Like" button??? - dlavery [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 26-01-2012, 14:03
Salmonfishyfish Salmonfishyfish is offline
Registered User
FRC #0640
 
Join Date: Jan 2012
Location: New York
Posts: 5
Salmonfishyfish is an unknown quantity at this point
Can you create motor speed limiters in LabVIEW?

Hello I am a complete newbie at programming. My team wants to program a code that can limit the speeds our motors can run at the push of a button. Can anyone tell me how to go about this?
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2012, 14:26
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Can you create motor speed limiters in LabVIEW?

make a local variable (true=half speed) that is a boolean. If you hit a button, set the variable to true. Wire the variable into a case structure, and if it is true, multiply the joystick axis by .5
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2012, 16:02
Salmonfishyfish Salmonfishyfish is offline
Registered User
FRC #0640
 
Join Date: Jan 2012
Location: New York
Posts: 5
Salmonfishyfish is an unknown quantity at this point
Re: Can you create motor speed limiters in LabVIEW?

Thank you for the quick reply. I am still unsure as to what this exactly does though. Would you mind explaining in detail what that code will do?
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2012, 18:33
Chrono101 Chrono101 is offline
Registered User
FRC #1448
Team Role: College Student
 
Join Date: Jul 2008
Rookie Year: 2007
Location: Parsons, Kansas
Posts: 13
Chrono101 is an unknown quantity at this point
Re: Can you create motor speed limiters in LabVIEW?

Quote:
Originally Posted by Salmonfishyfish View Post
Thank you for the quick reply. I am still unsure as to what this exactly does though. Would you mind explaining in detail what that code will do?

Basically it will make the Joystick's output value 1/2 of what it normally would be. So if you push the Joystick half of the way down while the button is pressed, you will only get 1/4 of the output on the corresponding motor(s).
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2012, 16:48
Team 1908 Team 1908 is offline
Registered User
FRC #1908
 
Join Date: Jan 2012
Location: Eastville
Posts: 3
Team 1908 is an unknown quantity at this point
Re: Can you create motor speed limiters in LabVIEW?

Hello, I'm trying to do the same thing and I don't quite understand how to do it. Could you put up an example of what this program should look like? Thank you!
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 08:50.

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