Go to Post Like many researchers before me, I look and read about what my peers are doing and developing, and then incorperate the best of them into my ideas or change my focus because of them. - Wetzel [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 05-04-2011, 01:47
viperred396's Avatar
viperred396 viperred396 is offline
people have lives during January?!?
AKA: Bryan
FRC #2240 (Brute Force)
Team Role: Leadership
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Colorado
Posts: 185
viperred396 has a spectacular aura aboutviperred396 has a spectacular aura aboutviperred396 has a spectacular aura about
Exclamation Help Needed please

Due to some unfortunate circumstances we have lost our programming team and code. Because of this and our upcoming regional (Colorado) we are in need for some dire help.
Our code, we think, isn’t that hard to do and would appreciate any and all help that we could get.
Our current set up is 4 jaguars powering 2 CIMple boxes (2 CIMs per trany) and a spike powering a window motor.

What we would like the code to be able to do would be run a tank drive system where if either of the 2 triggers are pressed on the joystick then we can run our CIMs at 50% speed and if the buttons are not pressed then we can run the CIMs at 100% speed.
The spike controls our window motors which raises and lowers two “wings”. What would be nice if this could with a button push on a joystick turn the winch until a limit switch is pressed turning the motor off, then when the same (or another button) is pressed the motor then reverses and raises the wings until another limit switch is pressed.

Thanks for anything you can do,
Bryan Fisher
Team Captain 2240 - Brute Force
__________________

2010 CO Regional: Finalist
2007 CO Regional: Semi-Finalist
Reply With Quote
  #2   Spotlight this post!  
Unread 05-04-2011, 14:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Help Needed please

Do you have an up-to-date copy of LabVIEW for FRC? Do you have anyone who knows anything about LabVIEW? What you're asking is indeed easy to do, and it shouldn't be hard to talk you through it.

You have two motors on each side? The default robot project is set up to use two-motor drive. You will need to replace that section in Begin.vi with four-motor drive, specify which PWM outputs go to each Jaguar, and verify the proper directions of each motor.

You want to use tank drive? The default robot project uses arcade drive. You will need to open a second joystick in Begin.vi, get its Y axis value in Teleop.vi, replace the arcade drive function in Teleop.vi with a tank drive function, and wire the appropriate Y axis joysticks to the drive function inputs.

You want to reduce power by half when either joystick trigger is pressed? You will need to unbundle the trigger values from the Buttons output of each joystick get function, "or" them together, and use the resulting boolean value to select either 0.5 or 1.0 as the input to a multiplication function on the Y axis values of each joystick.

You want to control a Spike relay from two joystick buttons and two limit switches? That's more involved. The way you describe the desired function, it isn't very complicated, but you need to specify exactly what you want the motor to do and exactly when you want it to do it. If you just want to run the motor while a button is pressed, with the limit switch preventing it from running too far, that's not hard at all. If you want the motor to start running when the button is pressed and keep running until it reaches the limit even if the button is released in the meantime, that's still not hard, but it is a little less straightforward.

Is that enough to start you in the right direction? How much hand-holding would you like? If you can itemize which pins on the Digital Sidecar your Jaguars, Spike, and limit switches are connected to, I can give you detailed directions on what to do.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-04-2011, 15:29
koo_04 koo_04 is offline
Registered User
FRC #2493
 
Join Date: Dec 2008
Location: California
Posts: 47
koo_04 will become famous soon enough
Re: Help Needed please

If that doesn't help as much as you want. I have been helping a ton of teams with labView. I use some programs to take control, show you what to do and make sure things work.

Contact me if you want more detailed help.

Yahoo!: koo_04@yahoo.com
Skype: Awesomemess
Yahoo Messenger: koo_04
phone #: PM me for that. =p

If you have another preferred way of contact, let me know. I have many many ways. I am sure I have one you do.
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:15.

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