View Single Post
  #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