Go to Post It only takes micro-seconds to release the magic smoke and empty the teams' budget. - Jim E [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-01-2010, 20:46
chsrobotics3283's Avatar
chsrobotics3283 chsrobotics3283 is offline
Registered User
FRC #3283 (Clarksburg Robotics)
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Clarksburg, Maryland
Posts: 41
chsrobotics3283 is an unknown quantity at this point
Labview Questions!!

I was looking at the Tank Drive Example under the examples folder in the startup of Labview. And I was wondering if I choose to use the Tank Drive function, how do I implement it to Robot Main.vi? Do I just copy and paste something? I am very confused on how to incorporate modified vi's. into Robot Main. vi
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2010, 23:52
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,112
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: Labview Questions!!

I think the most appropriate way to use the example code is indeed to copy it from the example and paste it into your robot project. Only copy the parts you need.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2010, 06:36
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Labview Questions!!

Quote:
Originally Posted by chsrobotics3283 View Post
I was looking at the Tank Drive Example under the examples folder in the startup of Labview. And I was wondering if I choose to use the Tank Drive function, how do I implement it to Robot Main.vi? Do I just copy and paste something? I am very confused on how to incorporate modified vi's. into Robot Main. vi
You'll want to put it in the TeleOp VI and the Autonomous (independent or interative) VI, not directly in the RobotMain VI.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2010, 11:11
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Re: Labview Questions!!

Our team is also trying to change the example program from arcade to tank drive. The tank example is written in the Basic framework. I don't think the Basic Framework is available in this year. This is causing our team some confusion.

We have replaced the Arcade drive.VIs with Tank.VIs in the Teleop.vi-execute case-true case, Teleop.vi-stop case. We have also added another joystick reference in the open and close VIs.

Anything else we need to change? When we deploy the robot is still driving in tank.

PS- Will changing from arcade to tank affect our ability to camera track with the default camera tracking code?
Reply With Quote
  #5   Spotlight this post!  
Unread 23-01-2010, 12:11
millerbot1 millerbot1 is offline
Registered User
FRC #2549 (Millerbots)
Team Role: Coach
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Minneapolis
Posts: 10
millerbot1 is an unknown quantity at this point
Re: Labview Questions!!

We also need to know how to do this. The basic robot main.vi is quite different from last years. Also if anybody knows how to wire the gyro the information is to technical for us.
__________________
The Millerbots
Team 2549
Washburn High School
Minneapolis, MN
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2010, 21:16
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,112
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: Labview Questions!!

Quote:
Originally Posted by grosh View Post
Our team is also trying to change the example program from arcade to tank drive...

We have replaced the Arcade drive.VIs with Tank.VIs in the Teleop.vi-execute case-true case, Teleop.vi-stop case. We have also added another joystick reference in the open and close VIs.

Anything else we need to change? When we deploy the robot is still driving in tank.
I assume you mean it's still driving in Arcade mode. Otherwise, you'd be celebrating your success rather than asking for help.

You also need to change from reading the x and y axes of a single joystick to reading the y axes of two different joysticks.

But if you didn't do that properly, you'd find the robot driving oddly, sort of like a diagonal arcade but not quite. If it is still acting like the original arcade mode software, you might not be running the new code successfully. How are you deploying it?

Quote:
PS- Will changing from arcade to tank affect our ability to camera track with the default camera tracking code?
The "button 3 to track" code will still work exactly as it used to. It ignores the joystick control and instead uses a PID system to compute a steering value.
Reply With Quote
  #7   Spotlight this post!  
Unread 23-01-2010, 22:05
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,557
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Labview Questions!!

Quote:
Originally Posted by Alan Anderson View Post
The "button 3 to track" code will still work exactly as it used to. It ignores the joystick control and instead uses a PID system to compute a steering value.
As long as you changed the code from arcade to tank in the false case only.
Reply With Quote
  #8   Spotlight this post!  
Unread 24-01-2010, 10:10
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Re: Labview Questions!!

We added a second joystick reference in the begin and close VIs. (see attached) Joystick 1, motors, and gyro error outs are connected to an array function. Do all devices have to be connected to the array? We have been using the videos at LVMastery to learn LabView and the begin VI from the LVMastery videos do not have this array that is built in to the 2010 Game Robot Project.

We changed all arcade drive VIs with tank, in the true and false case. Do we need to change back to arcade in the true case? Can you explain the purpose of this case structure? The videos from LVMastery do not have this case structure.

Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	begin vi.jpg
Views:	54
Size:	20.2 KB
ID:	8372  
Reply With Quote
  #9   Spotlight this post!  
Unread 24-01-2010, 10:28
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview Questions!!

The error I/O in begin isn't really that important. Unwired errors will still show up in the diagnostics tab. Wiring the errors give you the ability to filter, respond, and retry, but simply building an array to pass out really doesn't accomplish anything.

You begin looks fine. How about the Teleop?

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 24-01-2010, 10:45
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Re: Labview Questions!!

I've attached the Teleop False case. I changed the True case back to match the default code.
Attached Thumbnails
Click image for larger version

Name:	TeleOp False.jpg
Views:	48
Size:	23.4 KB
ID:	8374  
Reply With Quote
  #11   Spotlight this post!  
Unread 24-01-2010, 11:18
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,112
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: Labview Questions!!

You're reading Joystick 1 instead of Joystick 2 for your right side control. Unless you've changed the joystick read sub-vi, I think your robot will travel straight based on Joystick 1, it will never turn, and it will ignore Joystick 2.
Reply With Quote
  #12   Spotlight this post!  
Unread 24-01-2010, 11:34
chsrobotics3283's Avatar
chsrobotics3283 chsrobotics3283 is offline
Registered User
FRC #3283 (Clarksburg Robotics)
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Clarksburg, Maryland
Posts: 41
chsrobotics3283 is an unknown quantity at this point
Re: Labview Questions!!

grosh,

can you email me that code, I want to take a closer look at it because it is different from the one that I made.
Reply With Quote
  #13   Spotlight this post!  
Unread 24-01-2010, 11:34
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Lightbulb Re: Labview Questions!!

Oops. I will make the change and test on Monday. Thanks all!

One last question though...Is Arcade mode(default) needed in the True case as Joe stated earlier... or does it matter..or what?
Reply With Quote
  #14   Spotlight this post!  
Unread 24-01-2010, 12:00
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,112
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: Labview Questions!!

Quote:
Originally Posted by grosh View Post
Is Arcade mode(default) needed in the True case as Joe stated earlier... or does it matter..or what?
The True case is what executes while you press the joystick button. It uses the gyro and vision tracking to rotate the robot to face the target. It does that by controlling the "turn" input to the Arcade Drive vi.

If you want to change the target-seeking code to give commands to a Tank Drive vi instead, you can.
Reply With Quote
  #15   Spotlight this post!  
Unread 24-01-2010, 13:16
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,713
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: Labview Questions!!

Quote:
Originally Posted by Alan Anderson View Post
If you want to change the target-seeking code to give commands to a Tank Drive vi instead, you can.
However, there is no particular reason to do so. The use of Arcade Drive there doesn't affect your driving controls at all, since with the push of the button you've relinquished joystick control of the robot until you release the button.
Your joysticks will not revert to Arcade drive. They will only operate in Tank drive.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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
Labview 8.6: Xbox 360 wired controller Questions Lucario231 NI LabVIEW 3 20-01-2010 18:03
LabView: Questions of a Rookie assaf2b NI LabVIEW 1 17-01-2009 12:14
Autonomous questions (Labview) and some general issues Daniel_H NI LabVIEW 15 08-01-2009 21:07
Basic Labview Programming Questions comphappy NI LabVIEW 20 13-10-2008 18:29
A few Labview questions Japper NI LabVIEW 14 09-09-2008 20:41


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

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