|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
||||
|
||||
|
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?
|
|
#3
|
|||
|
|||
|
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
|
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||
|
|||
|
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)
|
|
#6
|
|||
|
|||
|
Re: Help with programming please very urgent
Oh, that is fairly simple and I can help you out! Let me whip up some sample code to show you how
|
|
#7
|
|||
|
|||
|
Re: Help with programming please very urgent
okay thanks
|
|
#8
|
||||
|
||||
|
Re: Help with programming please very urgent
Quote:
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. |
|
#9
|
|||
|
|||
|
Re: Help with programming please very urgent
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 |
|
#10
|
|||
|
|||
|
Re: Help with programming please very urgent
my email is cguhsmechaknights996@gmail.com
|
|
#11
|
|||
|
|||
|
Re: Help with programming please very urgent
what about the solenoids?
|
|
#12
|
||||
|
||||
|
Re: Help with programming please very urgent
Quote:
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|