Go to Post For years, Dave Lavery couldn't fart without people trying to interpret it as a game hint. - Taylor [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 22-12-2008, 20:21
CVassos's Avatar
CVassos CVassos is offline
A man of many subgroups
AKA: Chris Vassos
FRC #2016 (MightyMonkeyWrenches)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Ewing, New Jersey
Posts: 19
CVassos is an unknown quantity at this point
Please Help, Don't Know How to Implement Tank Drive in LabView

Please help, me and my team have just started programming in labview and we don't know much about it, anything really.We're all very adjusted to C/C++. We are trying to implement tank drive in the default code included with labview, the basic and advanced templates for the frc robot project template. We realize that there is a tank drive vi included in the WPI libraries but our real problem is getting a second joystick to be included in the code. Any help would be incredibly helpful. It doesn't matter whether the help is with the basic or advanced template, anything that works would be helpful.
__________________

Thank you, Johnson & Johnson, we are very grateful for your sponsorship
Reply With Quote
  #2   Spotlight this post!  
Unread 22-12-2008, 21:29
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: Please Help, Don't Know How to Implement Tank Drive in LabView

Are you using the Basic Framework? If so, simply select the one Open Joystick vi and hold the Ctrl key while dragging the copy to a space just below. Create a constant and choose usb port 2. Click on the lower of the two joystick clusters going into the Joystick-Get Axis vi and delete it. Now wire the Joystick cluster (the think brown line at the upper left) from the new Open Joystick vi to the same Get Axis vi. Select axis 2 for each one. Wire them into the left and right values of the Tank Drive vi and there you go!
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
  #3   Spotlight this post!  
Unread 24-12-2008, 10:20
CVassos's Avatar
CVassos CVassos is offline
A man of many subgroups
AKA: Chris Vassos
FRC #2016 (MightyMonkeyWrenches)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Ewing, New Jersey
Posts: 19
CVassos is an unknown quantity at this point
Re: Please Help, Don't Know How to Implement Tank Drive in LabView

Thanks, the help is much appreciated. I'm still curious as to how that would be done in the advanced framework as well. If anybody has any knowledge on that it would be great, just for curiosities sake.
__________________

Thank you, Johnson & Johnson, we are very grateful for your sponsorship
Reply With Quote
  #4   Spotlight this post!  
Unread 24-12-2008, 11:16
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: Please Help, Don't Know How to Implement Tank Drive in LabView

Just use the open vi's for the joysticks and motors in Begin.vi, making sure their Device Reference type def is copied into RobotData type def. Then use them in Teleop.vi as the provided example shows.
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
  #5   Spotlight this post!  
Unread 24-12-2008, 11:21
samir13k samir13k is offline
Registered User
AKA: Samir Shaikh
FRC #4329
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2008
Location: St. Louis, MO
Posts: 281
samir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant future
Send a message via AIM to samir13k Send a message via MSN to samir13k
Re: Please Help, Don't Know How to Implement Tank Drive in LabView

our team had done the advanced framework, and we actually just copied and pasted a second joystick in. we also did that for all the motors and axis.

Ctrl+C Copy
Ctrl+V Paste
Reply With Quote
  #6   Spotlight this post!  
Unread 24-12-2008, 16:55
keen101's Avatar
keen101 keen101 is offline
Ubuntu Linux User
no team
Team Role: College Student
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Loveland, CO
Posts: 228
keen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the rough
Re: Please Help, Don't Know How to Implement Tank Drive in LabView

I haven't actually programmed anything yet, but these video's are pretty helpful. You could probably skip the first one.

http://www.lvmastery.com/files/FIRST..._Part1(2).html

---------------------------------------------------------------------

http://www.lvmastery.com/files/First...c12_Part2.html

---------------------------------------------------------------------

http://www.lvmastery.com/files/First...12_Part3b.html
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP!!! Don't know where to start! comwiz7 Programming 3 29-01-2006 19:22
Does anyone know how to animate with inventor studio? Please Help ME BigMcLargeHuge Inventor 8 22-12-2005 12:37
What is wrong with this code???? It won't Compile and I don't know why? Please Help CrashZero Programming 23 26-03-2004 09:44


All times are GMT -5. The time now is 08:04.

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