Note put together by: Jim Wright Team 949 FRC season 2010 - 2011. Programming your cRIO. The Map. Installing things C++ Java LabView Deploying You Robot Sensors. Installing Things. Getting your development system built will be the hardest thing you do as a programmer.
Most important tool for the cRIO.
Free on the web as an update from usfirst.org, which will point you to NI
Creating a new FRC package. By the way I could get this working on my machine but could not get passed this screen.
You should get a window like the one on the left.
Basic Robot Main.vi
To test this code hit the run button on the basic robot main.vi.
It will start by putting your code down on the cRIO.
When your doing this, you have all the LabView tools at your disposal.
However your code is not 'deployed' on the cRIO. It's just in RAM.
You have to deploy the code.
Jim Wright again: I'm not going to even get close to telling you how to do this. There is a section in the document I'm going by that tells you. It's a lot of steps that I can't execute.
P.S. This is called 'punting' in presentation language. I'm punting at this point.
No matter what lanuage you used.
No matter how you programming team is set up.
You need to test the robot under two conditions:
You have to see if you robot boots up without anything attached to it.
You need to see how you will work on your robot in the pits without your programmer in the pits.
All of the code for all of these sensors were in the documentation. We were using C++ at the time, however the documentation for all three languages have these sensors in them.
Basically all of them were plug and play. The documentation was on the spot (very good).
Ultrasonic (DigitalOutput *pingChannel, DigitalInput *echoChannel)
Ultrasonic (unsigned pingChannel, unsigned echoChannel)
Ultrasonic (unsigned pingSlot, unsigned pingChannel, unsigned echoSlot, unsigned echoChannel)
void Ping (void)
bool IsRangeValid (void)
void SetAutomaticMode (bool enabling)
unsigned long GetRangeInches (void)
unsigned long GetRangeMM (void)
Every language will work for you robot.
Every language is used in industry! Don't let Jim Wright steer you into Java!
Every language has a powerful library that you as a programmer can learn BEFORE January.
Remember, the syntax of a language is the easy part, the hard part of programming is finding good to code steal.