Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   how do you make 2 joysticks run 4 motors on labview (http://www.chiefdelphi.com/forums/showthread.php?t=91626)

LK Peter 12-02-2011 15:22

how do you make 2 joysticks run 4 motors on labview
 
does anyone have a plot of how to make two joysticks run four motors for labveiw because my team is trying to do that but we can only get one of the joysticks working.

PatrickS 12-02-2011 20:03

Re: how do you make 2 joysticks run 4 motors on labview
 
Quote:

Originally Posted by LK Peter (Post 1021414)
does anyone have a plot of how to make two joysticks run four motors for labveiw because my team is trying to do that but we can only get one of the joysticks working.

In your Begin.vi use the open 4 motors instead of open 2 motors. You will also need to open up another joystick. Then in your Teleop.vi instead of using ArcadeDrive.vi use TankDrive.vi and link it to your open 4 motors you initialized in Begin.vi. Then plug in the two joysticks and you should be good to go.

Remember to close everything in Finish.vi.


Make sure you make use of the examples they provide. Here is the TankDrive example:

Doc Wu 13-02-2011 11:47

Re: how do you make 2 joysticks run 4 motors on labview
 
Use the PWM Y-cables in the KOP

Nicandy 23-02-2011 08:17

Re: how do you make 2 joysticks run 4 motors on labview
 
Quote:

Originally Posted by PatrickS (Post 1021637)
In your Begin.vi use the open 4 motors instead of open 2 motors. You will also need to open up another joystick. Then in your Teleop.vi instead of using ArcadeDrive.vi use TankDrive.vi and link it to your open 4 motors you initialized in Begin.vi. Then plug in the two joysticks and you should be good to go.

Remember to close everything in Finish.vi.


Make sure you make use of the examples they provide. Here is the TankDrive example:

Can you re-upload that picture? It seems to be broken.

Nicandy 23-02-2011 08:33

Re: how do you make 2 joysticks run 4 motors on labview
 
Quote:

Originally Posted by PatrickS (Post 1021637)
In your Begin.vi use the open 4 motors instead of open 2 motors. You will also need to open up another joystick. Then in your Teleop.vi instead of using ArcadeDrive.vi use TankDrive.vi and link it to your open 4 motors you initialized in Begin.vi. Then plug in the two joysticks and you should be good to go.

Remember to close everything in Finish.vi.


Make sure you make use of the examples they provide. Here is the TankDrive example:


Is that in the Begin.vi or in the teleop.vi?

Mark McLeod 23-02-2011 09:40

Re: how do you make 2 joysticks run 4 motors on labview
 
Here's a similar Tank Drive example.

Alan Anderson 23-02-2011 11:12

Re: how do you make 2 joysticks run 4 motors on labview
 
Quote:

Originally Posted by Nicandy (Post 1029858)
Is that in the Begin.vi or in the teleop.vi?

As a general rule:
Opens go in Begin. Gets and Sets and Drives go in Teleop. Closes go in Finish.

Read the LabVIEW tutorial on how to integrate examples into a robot project.


All times are GMT -5. The time now is 09:15.

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