Go to Post We're not all autonomous robots who are preprogrammed to always follow rules blindly regardless of what they are. - Ryan Dognaux [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 08-02-2009, 16:46
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: Trying to control 1 motor with 2 buttons

are you trying to control a relay or a jaguar/victor?
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2009, 17:12
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Re: Trying to control 1 motor with 2 buttons

Specifically a Jaguar
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2009, 17:24
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: Trying to control 1 motor with 2 buttons

sure okay. To do this I would use code similar to what i posted in the picture and instead of assigning forward/ reverse/off to the block selectors use integer values. 255 would be full power in one direction, 0 would be full power in the other direction and 127 would be off. Also, instead of using the set relay use the set speed to connect to the output of the block selector.

It might be easier to just use a relay instead of a jaguar unless you really need to control speed.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2009, 18:01
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Re: Trying to control 1 motor with 2 buttons

What is a relay?
I'm a rookie and I don't know some stuff....
Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2009, 18:27
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: Trying to control 1 motor with 2 buttons

sorry about that. they are also known as the spikes. They cannot be used to power the CIMs (against the rules), but they can be used to power smaller motors like the globe motors. On the spike there is M+ and M- on one side. On the other side there is 12V and GND. The M+ and M- is for the motor leads. the 12V and Gnd is for power to the motor. there is also a three terminal header in the spike. it is rectangular and a pwm cable plugs into that which delivers the signal from the digital I/O sidecar to the spike.

The relay is pretty much just an on/off or forward/off/reverse device. There is no speed control. Determining if you need speed control depends on the application for the motor.

In the WPI libraries there are VIs written for controlling the spike. I think they are under WPI Library-->Actuators-->Relay. By putting those VIs into the code and then clicking the question mark in the right hand corner and hovering over the icon you will get a description of what he inputs and outputs are to the vi.

Here is also more info from NI.
http://decibel.ni.com/content/docs/DOC-3321

hope this helps!
Reply With Quote
  #6   Spotlight this post!  
Unread 08-02-2009, 18:35
elbuo elbuo is offline
Teams #2884 and #1144
AKA: Yamil Asusta
FRC #1144 (Coquitron)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 89
elbuo has a spectacular aura aboutelbuo has a spectacular aura aboutelbuo has a spectacular aura about
Re: Trying to control 1 motor with 2 buttons

Oh the Spikes! Oh Lala!
I'll use those then! I'll check tomorrow and let you know.

Thanks
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 a motor to two buttons solomason519 Programming 2 28-01-2009 12:37
Programming Joystick Buttons to toggle a motor on and off programmr C/C++ 6 25-01-2009 17:47
[FTC]: Random Error with FTC motor control Xaphiinia FIRST Tech Challenge 2 01-12-2008 15:39
What to do with buttons Storcky General Forum 20 14-06-2006 22:07
Buttons, Buttons and more Buttons (2006) Freddy Schurr Team Organization 11 14-12-2005 21:36


All times are GMT -5. The time now is 16:35.

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