|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
FRC Java or Labview?
Hello all teams,
My team is getting ready for next year and we are thinking on working with Labview and not with Java as it was until now. I know that many ask this before but every case is a bit different. So the team that I am in is exist since 2006 and they always used Java, now, some graduated members are trying to make as use Labview, cause they are not satisfied from the results since the beginning as they say. We never won the local competition, we lost in some of the finals, but most of the times we can't get to the finals stage. I am the programming team leader next year, this is my call if we switch to Labview completely or only the electronics team will use Labview in order to test all the sensors (which is new too). As I see it, Labview is for teams that are new or not really good at this part and want to focus on the robot. So for me it's like going backwards, but I realy want to hear other opinions. Thanks in advance ,Nimrod #2231. |
|
#2
|
||||
|
||||
|
Re: FRC Java or Labview?
I can't comment really on the specific pros and cons of Labview and Java, but I will say from general experience, I almost always prefer the beast I know to the beast I don't. This is especially true for FRC because you have so little time to work through the transition. If you start learning Labview, now it will definitely be better, but I can almost guarantee you will have some transition related difficulties during build season. However, the benefits of switching may outweigh this for you. Just something to keep in mind when deciding.
|
|
#3
|
|||
|
|||
|
Re: FRC Java or Labview?
Personally, I like that Java deploys much faster than LabVIEW (at least, how long it took back around 2011). This makes it much less stressful to make changes between matches.
|
|
#4
|
||||
|
||||
|
Re: FRC Java or Labview?
Quote:
|
|
#5
|
|||||
|
|||||
|
Re: FRC Java or Labview?
Hello,
I can almost guarantee the reason why you are not winning has nothing to do with your programming language. More advanced controls can be done in either and I know for sure world championships have been won with robots running on both Java and Labview. The real question should be what do you and your fellow programmers know better. If they know Java better use java. If you know Labview better use Labview. I watched a match of yours from this year. To start out I noticed you lacked on autonomous mode. That is probably something the programmers on your team should focus on. From there vision processing would be a good thing to learn. It looked like your team had a mechanically solid robot with a nice shooter but without vision processing, cross heirs, or a flashlight aiming was next to impossible. Also are you a school based team? If so what language does your school teach. If it is Java I recommend staying with Java for sustainability purposes. Hope this helps |
|
#6
|
||||
|
||||
|
Re: FRC Java or Labview?
Stick with what you know. Simplify your goals. A robot that can do one thing really well is better than a robot that can do many things fairly well.
Changing your programming language, unless your team knows how to program in LabView better than Java, will only hinder you. Code is one of the last things to affect how a team performs on the field. |
|
#7
|
||||
|
||||
|
Re: FRC Java or Labview?
I would keep with Java, especially if your school offers a programming course. Many students who already know programming, at least on my team, were turned off by the visual LabView interface.
If you're not able to accomplish robot goals in Java, switching to LabView may not help. Are your problems with your language or with lack of practice/timing? |
|
#8
|
|||
|
|||
|
Re: FRC Java or Labview?
Quote:
Also... Curious how does the electronic team use Java/Labview to test sensors? Can that not be done with a multimeter and an arduino? |
|
#9
|
|||
|
|||
|
Re: FRC Java or Labview?
Quote:
The electronic team will test the accuracy of the sensors... Quote:
We have been focusing on the vision part after the competition and made the robot able to aim and shoot automatically, which is not working 100% good but I am sure that we can get better at it. At school I am learning Java, but after my grade they started teaching c# which is quite the same, but they are not all in the same level (we have two kinds of classes, one is 2 years learning and one is 3 years learning) And there are also pupils that did not chose to learn C# at school and you need to teach them from the start. And to make me more clear to all, I am the only one on my team (except from the capten who was on the programming team with me last year and we learned from our team leader) so I need to teach all of the new members java, wpilib and git, which takes alot from me too. Thanks to all who are commenting I am really trying to use your tips. Thanks! |
|
#10
|
||||
|
||||
|
Re: FRC Java or Labview?
Quote:
C# is similar to Java in that both are object-oriented text-based languages, and the sytax and logic flow is very similar. If you find that a significant number of incoming members have taken C#, then maybe sticking with Java is for you. If not, Labview is a bit easier to deal with. How are you testing the accuracy of sensors? What sensors do you use right now? |
|
#11
|
|||
|
|||
|
Re: FRC Java or Labview?
Quote:
And one thing I forgot to say is that they are not investing enough in the trainings and everyone it is a bit different in their understanding. |
|
#12
|
||||
|
||||
|
Re: FRC Java or Labview?
Generally I'd say that going with Java is optimal if your team feels they have a basic understanding of programming in general. The main pros for me is:
1) it makes it a lot easier to exploit version control since it's text based (you can see what was added/removed on a commit-by-commit basis) 2) WPILib encourages a clean design pattern with its command callback structure. But that's subjective. Some people will likely disagree. Honestly our team had many students who struggled with learning LabVIEW. This was especially true for those who had already had some exposure to other C-like languages. LabVIEW's wiring and VIs can become a bit difficult to decipher when the code becomes complex. LabVIEW does make UI design pretty easy, though, and it integrates very well with the Driver Station. Of course, you can use LabVIEW for the driver UI and Java for the robot. Regarding improving performance, I don't believe moving from Java to LabVIEW is likely to accomplish this unless your Java code is designed in a very inefficient way or your programmers are having enormous difficulty grasping how to use it. Programming is sometimes (often?) asked to make up the difference for shortcomings from design and/or implementation. Changing languages won't fix that. Good game strategy, well thought out robot design, proper fabrication and assembly, appropriate use of sensors, and a good UX can mean huge strides forward for robot performance. Only the appropriate use of sensors and good UX is within the realm of programming. It is not language dependent at all. Last edited by jweston : 01-07-2016 at 16:34. |
|
#13
|
|||
|
|||
|
Re: FRC Java or Labview?
Disclaimer- my experiences with LabVIEW are not exactly up to date, as we switched to using C++ a few years ago.
There is, in my opinion, one truly great thing about LabVIEW, and that is the level of support it is given not only by FIRST but also by National Instruments, where no similar support is offered for Java, C++, and the like. It is true that it is very easy to get started with LabVIEW, meaning that yes, initially, you will find it more streamlined. However, it is significantly more difficult to use for custom functions or more complex/ advanced functions than the other languages are. As well, your team will often find the increase in deployment/ compile times to waste time when it is possibly needed most (robot testing at competition/ bag and tag week), which could possibly have the reverse effect of what is intended. No offense meant, and I will not pretend to know the situation or personalities of you or any members of your team, but to me it sounds like your mentor is making a push for LabVIEW because that is the language he has more experience with and prefers more. This means that yes, for him, it must be a faster solution than Java, so of course he wants to pass that onto the team. However, you should remember that he isn't the one writing the code; you guys are, and should use what you think works best and fastest, not anything else. In addition, Java will prepare more people for likely situations in the workforce, especially because Java is so prolific, and using it can give students very valuable life/ career experience. Those are just my $0.02 (or $2.00, really, i wrote a lot. Sorry) |
|
#14
|
||||
|
||||
|
Re: FRC Java or Labview?
Quote:
|
|
#15
|
|||
|
|||
|
Re: FRC Java or Labview?
Quote:
The alumnus knows Labview , he is using it for the last 3 years or so and I have no problem learning programming language from the internet. Done it in c# and java. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|