This document describes the steps to prepare the cRIO for competition season (Frc2010)
Installing WindRiver WorkBench for C/C++
In the Kit of Parts, you should find a cardboard envelop containing 2 DVDs. This contains all the necessary software tools to build the robot code in three different environments: LabView, WindRiver WorkBench C/C++ and NetBeans Java IDE. Although WindRiver is mainly on the 2nd DVDs, do install both because it depends on some of the LabView components on DVD 1 such as the imaging tool. The full software installation instructions can be found in section 2.3 of the document http://www.usfirst.org/uploadedFiles/Community/FRC/Game_and_Season__Info/2010_Assets/2-2010FRCControl%20System-Getting%20Started-Rev-0.7.pdf. Here are the summary steps:
Put DVD 1 into your DVD drive. AutoPlay should pop up asking if you want to run autorun.exe, accept it. If AutoPlay does not pop up, open the DVD drive folder and double click autorun.exe.
Follow the instructions of the installation wizard and accept all defaults. When asked about the serial number, type in M73X71571.
- If you want to register the software, use "International School" as the organization and the school address: 445 128th Ave SE, Bellevue, WA 98005.
- It takes a long time to install the software, so let it run and occassionally check on it to answer any qeustions it pops up.
- Eventually, it will ask you to insert DVD 2. Do it.
During WindRiver installation, it will ask you for a licensing key. Choose "permanent activation" and point it to the licensing file located on the DVD at the following location:
- Finish the installation and answer all the questions.
- After the 2nd DVD finished installing, you must download and apply a few updates. This is very important because the WPI library included on the DVD is old and will not match the cRIO run-time environment for 2010. It is also important to apply the updates in the correct order as listed below.
Download the Workbench software update from http://first.wpi.edu/Images/CMS/First/WorkbenchUpdate20100107.exe and run it.
Download the update from http://ftp.ni.com/support/labview/FIRST/FRCLabVIEWUpdate2.0for2010.zip, unzip and install it.
Although optional, it is highly recommended to download and install the Driver Station software on your development laptop as well. This allows you to run the Driver Station software without using the Classmate PC. Download the software from http://ftp.ni.com/support/labview/FIRST/DSUpdate1.0for2010.zip, unzip and install it. The software consists of two components, the Driver Station and the Dashboard. Refer to the Control System document (link included above) for details.
Another useful tool to download is the NetConsole client. This gives you a console window that captures the console input and output sent over the network instead of requiring a null modem serial cable. The download can be found here http://first.wpi.edu/Images/CMS/First/NetConsoleClient_184.108.40.206.zip
From time to time, check back at http://first.wpi.edu/FRC/frccupdates.html for future updates. This is very important because FIRST could release another required update right up to the competition date.
Configuring the wireless components
The robot is communicating with the other components via wireless network. Therefore, it is important to properly configure every components on the network. Detail instructions can be found in the document at http://www.usfirst.org/uploadedFiles/Community/FRC/Game_and_Season__Info/2010_Assets/2-2010FRCControl%20System-Getting%20Started-Rev-0.7.pdf step 10. For a quick summary, a list of the IP addresses is provided here. The addresses are set up for team number 492.
Wireless gaming adapter on the robot: 10.4.92.1
cRIO network port 1: 10.4.92.2
Wireless router: 10.4.92.4
Driver Station or Classmate PC: 10.4.92.5
Development laptop: 10.4.92.6
cRIO network port 2: 192.168.0.3
Note: The cRIO network ports do not have auto-sensing. Therefore, they need cross-over cables if they are directly connected to components other than the gaming adapter or wireless access point (i.e. you need cross-over cable to directly connect cRIO nework port 1 to your laptop or to connect cRIO network port 2 to the camera).
Updating the cRIO Image
If you have properly installed the software and applied the updates, you should see the cRIO imaging tool icon on your desktop. If not, you can find it on the Start->All Programs menu under National Instruments->LabVIEW 8.6.
- Power up the cRIO. Run the cRIO imaging tool. The tool will start scanning for the cRIO over the network. If all the network components are configured properly, the tools should find it within seconds.
- Choose the Wind River Workbench (C++) development environment and the latest image (v19). Also check the "Format Controller" box to make sure the environment is clean after imaging. Click "Apply" to start updating the cRIO image.