Go to Post Not winning is different than being a loser. - seanwitte [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 04-05-2008, 00:53
RyanJK's Avatar
RyanJK RyanJK is offline
Does it come in chrome?
AKA: Ryan Kamphuis
FTC #3758 (Juarez Aztec Eagles)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Chicago, IL
Posts: 65
RyanJK is on a distinguished road
Learn C++ or Labview in a Summer?

So, I was wondering if I can get some help in decided a programming method. Here's the story:

In this our rookie year, our team had 2 competent programmers, but both of them have now graduated out of the school and are going to colleges out of the state. Add on top of that the fact that they were the only ones in the team who knew how to program, and the fact that we have not been able to find any mentors who could program, I think you can all realize that we're in pickle for next year.

I was the only kid on the team that expressed any fraction of interest in learning how to program the robot next year, so now I've got a new problem. I have got to learn how to program this summer beofre the season starts up. The hard choice will be deciding to learn C++ or Labview.

I was wondering what your thoughts are on what method I should learn. Through research, I can tell that both methods should give me decent control over the robot. My question is which do you guys think I can learn in a summer. Also, once I have decided on a method to program with, how should I learn it? Would buying a book off Amazon be enough to learn how to code? Help PLEASE!
__________________
Ryan Kamphuis
Head Mentor, FTC 3758
FRC Game Announcer
Member of the Midwest Regional Planning Committee
2012 - 2015 Chicago, IL Kickoff Coordinator
Alum of FRC Team 2526! Go Crimson Robotics!
Reply With Quote
  #2   Spotlight this post!  
Unread 04-05-2008, 01:16
Tottanka's Avatar
Tottanka Tottanka is offline
It isnt about bots,its about humans
AKA: Liron Gurvitz
FRC #3211 (The Y Team)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Hadera, Israel
Posts: 1,418
Tottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond repute
Re: Learn C++ or Labview in a Summer?

The following is just my own opinion:

i woulds suggest you learn both. One summer is more than enough to master those 2 languages in a level required to program in FRC.
The LabView might be a bit easier for you to learn, as it is a graphical programming language.
C++ is much more useful in the world and in finding a job. I suggest you learn it never mind what you are planning to do in FRC, taking this chance to learn C++ would be great for you.
I also would strongly suggest you convince at least 1 more member from your team learn programming too, as you will have a hard time alone in this.

- Liron
__________________
My FRC record: 10 Years,FTA (2008-9), 3 Teams(1947,2669,3211).3 RCA, 1 Championship EI(2016), 1 Divisional finalist (2016), 1 Regional winner.
Israeli 2016 Volunteer of the year.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-05-2008, 01:23
Akash Rastogi Akash Rastogi is offline
Jim Zondag is my Spirit Animal
FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Manchester, Connecticut
Posts: 7,003
Akash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond reputeAkash Rastogi has a reputation beyond repute
Re: Learn C++ or Labview in a Summer?

I agree with Liron, you could easily learn both over the summer if you're committed to it, as you said. I know people who have learned languages like Python in a couple of days. And plus, you have people here on CD to help.
Check around in the white papers on here for programming advice, they really do help.

Plus, I've been told by a friend that next year's control system will be very easy to program. So easy that he'll let me try my hand at programming after only a few short lessons.
__________________
My posts and opinions do not necessarily reflect those of my affiliated team.
['16-'xx]: Mentor FRC 2170 | ['11-'13]: Co-Founder/Mentor FRC 3929 | ['06-'10]: Student FRC 11 - MORT | ['08-'12]: Founder - EWCP (OG)

Last edited by Akash Rastogi : 04-05-2008 at 01:28.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-05-2008, 07:32
David Doerr's Avatar
David Doerr David Doerr is offline
Registered User
FRC #4478 (Materia Oscura)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Milford, Michigan, USA
Posts: 75
David Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud of
Re: Learn C++ or Labview in a Summer?

This summer is a great opportunity to learn both.

For C++, try the tutorial at http://www.learncpp.com/. As a companion to the tutorial, download Visual C++ Express 2008 at http://www.microsoft.com/express/. When you are finished and comfortable with those, download and get familar with the eclipse CDT at http://www.eclipse.org/cdt/.

For LabVIEW, load the copy of that came in the 2008 KOP. Begin with the "Getting Started with LabVIEW" under "Resources" in the right pane when you first start LabVIEW.

Learning the languages is only the first step in programming robots with the languages. You can get started with robot programming if you have access to a LEGO Mindstorms NXT robot.

For LabVIEW programming, download the NI LabVIEW Toolkit for LEGO Mindstorms at http://digital.ni.com/worldwide/bwco...25723D006A9E7A.

Robolab -- based on LabVIEW -- is another excellent way to get used to programming NXT robots in LabVIEW. You will have to buy a copy, however, for about $70. Buy version 2.5.4 at http://www.legoeducation.com/store/d...71&c=1&t=0&l=0, and then download the latest patch at http://www.legoengineering.com/content/view/87/140/.

You can also program NXT robots in C (not C++) with RobotC. You can download a trial version -- I think it's good for 30 days -- at www.robotc.net.

RobotC and Robolab are excellent companion programs because they have all of the same functionality implemented as LabVIEW SubVIs in Robolab and as procedures in RobotC. On the FLL teams I've coached for the last few years, the students have done all of their program development in RobotC, because it is very fast to do so, and then have ported their programs to Robolab to stay legal for FLL competition. (against the rules to use C in FLL) It is very easy to port back and forth due to the almost one-to-one correspondence in functions, and it's a great way to learn both text and graphical based programming side-by-side.

You can also program NXT robots using C++ if you go here: http://lejos-osek.sourceforge.net/ -- with the added bonus of being able to learn the eclipse CDT. I have not tried this yet, but it looks like it's worth checking out.

-Dave

Last edited by David Doerr : 04-05-2008 at 07:37.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-05-2008, 12:17
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: Learn C++ or Labview in a Summer?

Quote:
Originally Posted by Tottanka View Post
The following is just my own opinion:

i woulds suggest you learn both. One summer is more than enough to master those 2 languages in a level required to program in FRC.
I wouldn't necessarily be too sure about that. Sure learning C++ is easy but the problem is that there are other areas that maybe useful to learn. You can easily write some pretty convoluted code without learning about design patterns.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill
Reply With Quote
  #6   Spotlight this post!  
Unread 07-05-2008, 00:02
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Learn C++ or Labview in a Summer?

I would say learn both. www.learncpp.com really helped get used to C++ and really taught me a lot.
__________________
Reply With Quote
  #7   Spotlight this post!  
Unread 07-05-2008, 18:02
gunsanbob gunsanbob is offline
spartanrobots
no team
 
Join Date: Apr 2008
Rookie Year: 2005
Location: Lansing
Posts: 18
gunsanbob is an unknown quantity at this point
Re: Learn C++ or Labview in a Summer?

Like http://www.learncpp.com/ (for C++) is their any good website like this for labview

I took programming class for Visual basics and Pascal
,but i never programmed in C or C++. will it be easy to learn C++ because I took Visual Basics and Pascal. I also have another question is there any website that specially for FRC robots.
Reply With Quote
  #8   Spotlight this post!  
Unread 07-05-2008, 18:06
ComradeNikolai ComradeNikolai is offline
Registered User
AKA: Nicholas
FRC #2603 (Team Hornet)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Medina, Ohio
Posts: 203
ComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to behold
Re: Learn C++ or Labview in a Summer?

If you are familiar with both VB and Pascal, learning C++ should be a piece of cake, since you should already have the programming logic down, understanding of types, etc. The hardest thing will just be learning the new syntax, which will probably seem a bit odd at first, especially having to terminate a line with a semicolon (VB just uses the line break).
There aren't any specific FRC programming websites which I'm aware of, but there is LOTS of material on CD, and the default code itself gives you enough of an intro that you can learn lots from it. However, please keep in mind that next year's controller will be programmed differently, as the control system is being switched.
__________________
I cut myself shaving with Occam's razor.

Reply With Quote
  #9   Spotlight this post!  
Unread 08-05-2008, 10:45
willson.thomas willson.thomas is offline
Registered User
FRC #1595
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 50
willson.thomas is just really nicewillson.thomas is just really nicewillson.thomas is just really nicewillson.thomas is just really nicewillson.thomas is just really nice
Re: Learn C++ or Labview in a Summer?

I would suggest learning both as most have said. I think that mastering the current control system would also be a good idea as it gives you programming experience and a platform for prototyping. Also, I believe most code would be able to be ported without too much trouble. You could figure out how to do autonomous modes, which could definitely be useful in the future.

I am in a similar boat to you. Our only programmer is graduating this year. Over the past couple months, I have become familiar with the control system, mecanum programming, and teleoperated code. Now I just have to figure out how to use encoders and sonars to guide the robot.
Reply With Quote
  #10   Spotlight this post!  
Unread 08-05-2008, 21:07
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Learn C++ or Labview in a Summer?

Especially if you're starting coding now, I would take a look at WPILib. WPILib is a library for the current controller that simplifies many tasks, such as using encoders and ultrasonic sensors and outputting to motors, and is used as an alternate to Kevin Watson's default code. Also, from what I understand, next year's system will incorporate WPILib.

Our entire robot was coded with WPILib this year, and I would be more than happy to provide samples and help if you want. Feel free to contact me in any way.

I am extremely excited for next year due to the fact that we will finally be able to use floating-point numbers, opening up an entire avenue of possibilities.
__________________
Reply With Quote
  #11   Spotlight this post!  
Unread 10-05-2008, 00:57
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Learn C++ or Labview in a Summer?

I would encourage you to rather learn general programming concepts (i.e design patterns, data structures, algorithms) rather than focusing on getting the specifics of a certain language down... C might even be enough for that. You might want to check out "The Art and Science of Computer Programming" by Donald Knuth. I haven't read it myself but I hear it's the best for learning everything there is to programming.
__________________
Team 701
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
Where to Learn Electrical Online Andy L Electrical 19 07-04-2008 20:27
need to learn css mynameisbob Website Design/Showcase 6 25-01-2008 00:44
Learn PIC assembly bronxbomber92 Programming 13 06-01-2008 12:23
To Learn Inventor telkanuru Inventor 8 01-01-2005 02:08
Should I learn NURBS? Suneet 3D Animation and Competition 2 29-12-2001 16:59


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

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