How to Upload Robot Code to Roborio
The roboRIO is powerful, compact, rugged, and specifically designed with theGet-go contest in mind. Once you've imaged the roboRIO, connecting to the device will be essential to making progress towards a successful robot. This certificate provides you with a few essential troubleshooting steps to connect and deploy to your roboRIO.
Connecting
- Connect your roboRIO via Ethernet or USB and power information technology on.
- Open the roboRIO Imaging Tool. This tin can be found past opening LabVIEW and navigating to Utilities > roboRIO Imaging Tool 2019.
Allow the tool to scan and locate your device. The Current IP address will be displayed on the right-hand side of the tool. This is a great way to check the roboRIO'due south IP address if you are ever unsure. The IP address is a serial of numbers and dots that represents your roboRIOs digital address on the network. When connected via USB, it will always be 172.22.xi.ii. When connected via Ethernet, it will vary.
This White Paper provides a great walk-through on roboRIO communication and troubleshooting, while this link and this link provide much deeper dives into roboRIO networking.
- Open the FRC Driver Station, searchable by name in Windows Explorer or from the Windows Start Card. Select the Settings tab, which is the gear icon on the left-manus side. Enter your team number (or current IP) in the Team Number field. The Communications light in the driver station will exist greenish once y'all've connected successfully.
Deploying
- In the screen shot above, the Robot Code low-cal is cherry-red, pregnant there is no code on the roboRIO. Run your roboRIO lawmaking. In one case y'all've deployed successfully, the Robot Code light will change from red to green.<More than details coming presently on how to run your code and the difference between running and deploying! For now, check out this YouTube video by FRC Team 6377 The Howdy Bots!>
- If a USB joystick is connected to your calculator, the Joysticks light on the driver station will be light-green equally well.
- On the Operation tab, which is the steering bike icon on the left-manus side, select Enable. This will start upwards your code, then you can meet your robot come to life!
Troubleshooting the roboRIO Imaging Tool
- If connexion via USB doesn't work, try connecting over Ethernet (and vice versa).
- If connecting over USB, make sure y'all are using the USB-B port on your roboRIO. This is the larger, square port, non the "standard" rectangular port.
- If you are connecting over Ethernet, make sure you are plugged directly into the computer, non through an Ethernet Switch or other network device.
Troubleshooting the connexion (communications light = red)
- Double check the IP address in the Imaging Tool – enter this in the Squad Number field.
- Change the connection type (USB to Ethernet or vice versa) and attempt to reconnect. Brand sure to bank check the IP address and alter in the driver station if demand be!
- Power cycle your organisation: plow off and disconnect the roboRIO, and close out of whatever software that works with the device. Then, reconnect the roboRIO, ability on, and try to reconnect.
- Make sure your battery is charged – connections tin exist dropped or unattainable if your battery is non sufficiently charged.
Troubleshooting the deployment: (Robot Code = scarlet)
- Double cheque that you lot've enabled robot code in the commuter station – this can disable afterward idle periods if your code is not running.
- Brand certain you're connecting to the roboRIO – check the Communications light on the Functioning tab of the driver station. If this is not greenish, you'll need to troubleshoot your connection (see above).
- Endeavour running another piece of lawmaking. You tin can access examples in LabVIEW by navigating to Aid > Find Examples and opening the roboRIO folder plant inside the FRC Robotics folder.
As a reminder, this information (and more than!!) can be establish in the FRC LabVIEW Quick Start Guide 2015, located on the NI Starting time Robotics page:
https://forums.ni.com/t5/Kickoff-Robotics-Competition/2015-FRC-LabVIEW-Quick-Start-Guide/ta-p/3528790
NickelsAndDimes
Product Support Engineer - sbRIO
National Instruments
Source: https://forums.ni.com/t5/FIRST-Robotics-Competition/Connecting-and-Deploying-to-the-roboRIO/ta-p/3733799
0 Response to "How to Upload Robot Code to Roborio"
Post a Comment