|
Re: Which LabVIEW example code?
The problem with using example code like that is that if your motors and other things aren't plugged in to the same port in the cRIO modules as the example code specifies, then nothing will work.
To deploy code, you can do one of two things. First turn on the robot, then, get some kind of connection between the computer you have the code on and the robot's radio. You can do this by plugging an Ethernet cable to into the radio and the computer, or by using wi-fi from the computer to the radio. Either way, you'll need to set the computer's IP address to your team number. (Like 10.37.53.29 could be an IP address you set your computer to. You just have to make sure the last 2 digits aren't already used elsewhere such as the driver station, c-RIO or the default gateway on the radio.)
Then once you get a connection, you can go to your Robot Main vi and click on the run arrow in the top left corner. This should start deploying the code to the c-RIO. Once it's deployed, turn on your driver station, and the robot should run off the code that you just deployed as long as you keep your computer running the code. (I say turn on the driver station last because we've had trouble connecting to the c-RIO while the driver station is on)
Hope this helps you out.
|