Log in

View Full Version : Problem with the joystick


Asmos
21-01-2009, 15:14
Hello
I want to know if can you control two independets motor with only one joystick, programming with labview

can you please help me:confused:

TotalChaos
21-01-2009, 15:32
I want to know if can you control two independets motor with only one joystick

I'm pretty sure you can! How exactly do you want to control them? Maybe a few more specifics would help us.

- Austin

EDIT - And welcome to ChiefDelphi! :D

Asmos
21-01-2009, 15:43
I was thinking that it can work, but does anybody know how to program it in labview?:]

Bryan Herbst
21-01-2009, 15:44
As Austin said, yes you can.

To drive "Arcade style" (one joystick- X axis controls turning, y controls forward/backward) , simply wire the two axises up to the arcade drive subVI. To get to the axises, simply right click the joystick get subVI's axis output (NOT the button output), and click unbundle by name.

You can also control two non-driving motors in pretty much the same way. First you open the motor, then use the motor set speed subVI. If you want each axis to control a different motor, wire one up to the X, and one to the Y. If you want one axis to control two motors, wire both motors to the single axis.

Asmos
21-01-2009, 22:21
thank you man, you safe my life :D

Robert Cawthon
23-01-2009, 09:40
Don't forget that you can also use the buttons to controll the motors if you have a fixed speed in mind. Also, with a little ingenuity, you can use different buttons to send different speeds to the same motor. :cool: