Go to Post Success isn't from winning nationals but from improving as a person or as team. Putting the minds together in order to get the job done is success. - Melissa Nute [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 16-02-2009, 10:47
Gomez Gomez is offline
Registered User
FRC #1605
 
Join Date: Feb 2009
Location: Toronto
Posts: 2
Gomez is an unknown quantity at this point
Programming buttons help!

Hey, I'm not that good with labview and so I came here asking for your help and advice. I was wondering if you guys can help me with programming buttons. Now I already learned how to program a button but could you please teach me how I make it so that when I press the button on the joystick the motor will start moving and when I press another button, the motor will stop.
Also I was wondering if it is also possible to make a motor rotate only 90 degrees, if it is can you please show me how?
If you guys could help me, I would greatly appreciate your help with this.
Please and thank you.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2009, 16:44
rhoads2234's Avatar
rhoads2234 rhoads2234 is offline
Registered User
AKA: Erin
FRC #2234
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: PA
Posts: 80
rhoads2234 will become famous soon enough
Re: Programming buttons help!

if you want it to only rotate 90 degrees, you will have to have some sort of sensor (limit switch, encoder or potentiometer) Be careful if you use a potentiometer- they have a limited range.

As for how to get a button to send signal to a motor,
use the "get" VI for a joystick and unbundle the button output (I recommend unbundle by name)
wire one of the buttons you want to use to a case structure (to the question mark) and in the true statement put a set speed for your motor. Create a constant for the speed.
wire the other button to another case structure and do the same thing, but your constant should be 0 this time.
__________________
ALWAYS a mechanical problem!
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2009, 15:47
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Programming buttons help!

Quote:
Originally Posted by rhoads2234 View Post
if you want it to only rotate 90 degrees, you will have to have some sort of sensor (limit switch, encoder or potentiometer) Be careful if you use a potentiometer- they have a limited range.

As for how to get a button to send signal to a motor,
use the "get" VI for a joystick and unbundle the button output (I recommend unbundle by name)
wire one of the buttons you want to use to a case structure (to the question mark) and in the true statement put a set speed for your motor. Create a constant for the speed.
wire the other button to another case structure and do the same thing, but your constant should be 0 this time.
Is there a tutorial section on this? I have looked at Tip Jar and have a confusion about how to use and connect VI's. We are interested in using the following type Joystick button control.

Will it allow me to use the triggers on the joysticks to move the chain forward and backwards and use the top button to move the dumper forward and back? Where do I put this code and how do I hook it to the Main?

I found out that the dumper is using the Keyang motor and the chain is using the globe motor and the drive motors are the CIMS.

Thanks for all help.
Attached Files
File Type: doc 2 button.doc (26.0 KB, 46 views)
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State

Last edited by chinckley : 17-02-2009 at 15:50. Reason: added motor types
Reply With Quote
  #4   Spotlight this post!  
Unread 24-02-2009, 21:15
Gomez Gomez is offline
Registered User
FRC #1605
 
Join Date: Feb 2009
Location: Toronto
Posts: 2
Gomez is an unknown quantity at this point
Re: Programming buttons help!

Thank you for your help and advice, for explaining to me how I would program it to make so that each button can perform a separate action. Also, since the only way to make it rotate 90 degrees is with sensors, I guess we're changing the way we're going to make it work. But THANK YOU SOOOO much for actually taking your time to give me advice and helping me with this problem that I had with the programming and teaching me on how to do it.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming 2 buttons for a relay team877 NI LabVIEW 15 18-02-2011 00:18
programming buttons tyson2010 NI LabVIEW 2 12-02-2009 22:17
programming a motor to two buttons solomason519 Programming 2 28-01-2009 12:37
Help Programming Buttons LordFrz Programming 3 14-02-2008 13:55
Programming Extra Joystick Buttons Inverted Programming 2 08-02-2007 11:45


All times are GMT -5. The time now is 10:34.

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