Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Help with programming please very urgent (http://www.chiefdelphi.com/forums/showthread.php?t=126666)

MechaKnight996 17-02-2014 16:36

Help with programming please very urgent
 
I am trying to program in labview and im not very good at it. I need to make an arm move forward and backward with 2 window motors, which need to be ran by buttons on a joystick. I also need to launch a catapult with a cylinder which will eb ran by a button, there will also be 2 cylinders for opening and closing the arms inward and outward i will need to program. All of these actions need to run smoothly through joystick buttons. if anyone can tell me how to do this please reply.

cgmv123 17-02-2014 16:46

What is controlling your window motors? Are there any sensors on your arm? How are your solenoids connected? How many buttons are on your joystick? What joystick buttons make the most sense for your drivers?

MechaKnight996 17-02-2014 16:49

Re: Help with programming please very urgent
 
we are running the motors with jaguars, the solenoid will eb 3 solenoids ran by the crio and we are using the attack 3 joysticks

cgmv123 17-02-2014 16:57

Let's focus on the arm. Are you comfortable with letting your drivers move it themselves by eye or do you want your code to be able to know where the arm is?

If it's the former, you'll just need to have one button send a forward command to the Jaguar and one button send a reverse command to the Jaguar.

If it's the latter, you'll need to implement some form of closed loop control. You'll need a sensor on the arm, and some additional logic in code.

MechaKnight996 17-02-2014 16:59

Re: Help with programming please very urgent
 
for our surrent purposes we jsut need them both to spin forward at the same time and trhen both to spin back at the same time(forward is 1 button and back is 1 button)

Wildcats1378 17-02-2014 17:02

Re: Help with programming please very urgent
 
Quote:

Originally Posted by MechaKnight996 (Post 1344714)
for our surrent purposes we jsut need them both to spin forward at the same time and trhen both to spin back at the same time(forward is 1 button and back is 1 button)

Oh, that is fairly simple and I can help you out! Let me whip up some sample code to show you how

MechaKnight996 17-02-2014 17:03

Re: Help with programming please very urgent
 
okay thanks

BitTwiddler 17-02-2014 17:08

Re: Help with programming please very urgent
 
Quote:

Originally Posted by MechaKnight996 (Post 1344683)
I am trying to program in labview and im not very good at it. I need to make an arm move forward and backward with 2 window motors, which need to be ran by buttons on a joystick. I also need to launch a catapult with a cylinder which will eb ran by a button, there will also be 2 cylinders for opening and closing the arms inward and outward i will need to program. All of these actions need to run smoothly through joystick buttons. if anyone can tell me how to do this please reply.

Hello MechaKnight996 programmer,
I am the programmer for your fellow Arizona competitor, team 1726, the NERDS. I am going to see if I can email you a copy of our LabView code. We use many of the same elements you wish to control so you can use it as as an example of how to do the tasks you describe. Hopefully Chief Delphi has your email address. If not let me know and I'll give you mine.

Wildcats1378 17-02-2014 17:09

Re: Help with programming please very urgent
 
1 Attachment(s)
Okay! here you go! Just feel free to ask if you need any explanations or have any questions.

Just change the reference names and the buttons from the cluster as necessary

Head Programming Mentor
3878

MechaKnight996 17-02-2014 17:09

Re: Help with programming please very urgent
 
my email is cguhsmechaknights996@gmail.com

MechaKnight996 17-02-2014 17:51

Re: Help with programming please very urgent
 
what about the solenoids?

BitTwiddler 17-02-2014 21:29

Re: Help with programming please very urgent
 
Quote:

Originally Posted by MechaKnight996 (Post 1344726)

I've forgotten to mention an excellent source of working LabView examples put out by team 358.

Go to:
http://team358.org/files/programming...2009-/LabVIEW/
and scroll down to the bottom. You'll probably find just what you're looking for there.

A tip and a nod to the Robotic Eagles.


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi