Go to Post Dee and I pooling our brain cells almost make a full deck... - RoboMom [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2011, 15:22
LK Peter LK Peter is offline
Registered User
FRC #3871
 
Join Date: Feb 2011
Location: worthington mn
Posts: 10
LK Peter is an unknown quantity at this point
Exclamation 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.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2011, 20:03
PatrickS's Avatar
PatrickS PatrickS is offline
I get my code from /dev/null
FRC #1742 (Shockwave)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Oklahoma City
Posts: 21
PatrickS is an unknown quantity at this point
Re: how do you make 2 joysticks run 4 motors on labview

Quote:
Originally Posted by LK Peter View Post
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:

Last edited by PatrickS : 12-02-2011 at 20:12.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2011, 11:47
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 207
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Re: how do you make 2 joysticks run 4 motors on labview

Use the PWM Y-cables in the KOP
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2016 Robot Inspector - Fingerlakes, Pittsburgh
2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship - Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2011, 08:17
Nicandy's Avatar
Nicandy Nicandy is offline
Registered User
AKA: Nicole/Andy
FRC #3580 (Marinerds)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cape Coral
Posts: 23
Nicandy is an unknown quantity at this point
Re: how do you make 2 joysticks run 4 motors on labview

Quote:
Originally Posted by PatrickS View Post
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-02-2011, 08:33
Nicandy's Avatar
Nicandy Nicandy is offline
Registered User
AKA: Nicole/Andy
FRC #3580 (Marinerds)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cape Coral
Posts: 23
Nicandy is an unknown quantity at this point
Re: how do you make 2 joysticks run 4 motors on labview

Quote:
Originally Posted by PatrickS View Post
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?
Reply With Quote
  #6   Spotlight this post!  
Unread 23-02-2011, 09:40
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: how do you make 2 joysticks run 4 motors on labview

Here's a similar Tank Drive example.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 23-02-2011, 11:12
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: how do you make 2 joysticks run 4 motors on labview

Quote:
Originally Posted by Nicandy View Post
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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