Go to Post There's a fine line between idolizing someone and stalking! - Jay H 237 [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 07-01-2013, 20:11
lomogoto lomogoto is offline
Registered User
FRC #4682
 
Join Date: Jan 2013
Location: Seattle
Posts: 5
lomogoto is an unknown quantity at this point
How to avoid using LabView

I am on a rookie team and at kick-off we were introduced to LabView, after working with it for a bit we decided it would be much nicer to write in Java, or maybe C++. What would we need to program a FRC robot in Java? Also we would really appreciate being able to use a simulator like the one for LabView, I saw FRCJCSS (http://code.google.com/p/frcjcss/) but am not quite sure how to use it. Also any help with recognizing the rectangles would be very nice, LabView already had a recognition program setup. Any help at all would be much appreciated, how to make LabView easier to use, examples of Java code or tips for writing anything. Could someone also possible explain how the cRIO reads the Java or LabView? I noticed the templates in Netbeans had no Main class, does it need one? I know this is a lot of questions but really any help on anything at all is wonderful.
Reply With Quote
  #2   Spotlight this post!  
Unread 07-01-2013, 20:54
Storcky's Avatar
Storcky Storcky is offline
Registered User
FRC #3634 (Hard Botties)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Oakland, MD
Posts: 125
Storcky is on a distinguished road
Re: How to avoid using LabView

I found this site really useful for understanding the basics of how everything worked: http://wpilib.screenstepslive.com/s/3120

It has both Java and C++ references. I'm not sure about a simulator but hopefully that will get you started.
__________________
Alum of 1629 - GaCo [2005-2008]
Mentor for 3634 - Hard Botties [2013-2015]
Mentor for 230 - Gaelhawks [2013-2015]
Pittsburgh Regional Planning Committee [2016-?]
Reply With Quote
  #3   Spotlight this post!  
Unread 07-01-2013, 20:56
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: How to avoid using LabView

You have a lot of questions, and I'm not sure I understand quite what you are looking for. Specifically, I don't understand what "nicer" relates to.

I haven't personally used the other simulation tools, but I do not know of one with all the features in the NI one.

There are very good tutorials for using Java, just search for them. I feel compelled to comment on switching to C++. While a great language, it is the most unforgiving. It will expose you to uninitialized variables, stale and uninitialized pointers, memory corruptions, memory leaks, and more. If you don't have a mentor who is proficient in C++, this is a very gutsy move.

At one point you mention wanting to know how to make LV easier. I'm not sure what you have tried, but there are many help resources on the getting started page, on ni.com/frc, and on this forum, but you will need to ask specific questions. There is no EASY button in FIRST.

The cRIO reads LV and Java programs into memory using either the debugging tools or using the startup command. The java program is loaded into the interpreter and the LV code is native, so it is scheduled by one or more OS threads. I suspect this didn't answer your question, but if you can be more specific I'll try again.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 07-01-2013, 21:03
3132MentorMike 3132MentorMike is offline
Set the bar higher than you imagine
AKA: Mike Heimlich
FRC #3132 (Thunder Down Under)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2008
Location: Australia
Posts: 26
3132MentorMike is a jewel in the rough3132MentorMike is a jewel in the rough3132MentorMike is a jewel in the rough
Re: How to avoid using LabView

Just one more note on C++ that sometimes get overlooked with the cRIO: the WindRiver loader. Code will sometime compile just fine and when it gets loaded into the cRIO there are startup exceptions that can go unnoticed until you actually try to run Autonomous or Tele-Op from the driver station.

Depending on what your goals are as a rookie team and where your students are starting in terms of programming skills, you may want to reconsider LabView as it is a low entry point for a team with limited experience/resources.
Reply With Quote
  #5   Spotlight this post!  
Unread 07-01-2013, 21:14
robokiller robokiller is offline
Registered User
AKA: Jaxon Weis
FRC #2757 (B.A.D.)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Florida
Posts: 29
robokiller is an unknown quantity at this point
Re: How to avoid using LabView

Step 1: don't install labview
__________________
-- Jaxon Weis
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 13:57.

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