View Full Version : Help with programming please very urgent
MechaKnight996
17-02-2014, 16:36
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.
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
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
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
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
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
okay thanks
BitTwiddler
17-02-2014, 17:08
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
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
my email is cguhsmechaknights996@gmail.com
MechaKnight996
17-02-2014, 17:51
what about the solenoids?
BitTwiddler
17-02-2014, 21:29
my email is cguhsmechaknights996@gmail.com
I've forgotten to mention an excellent source of working LabView examples put out by team 358.
Go to:
http://team358.org/files/programming/ControlSystem2009-/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.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.