After finally installing all the updates to the new netbook and reconfiguring the cRIO, I attempted to send an example VI form Labview to our bench top robot. However after sending the VI I could not get the robot to respond. I know that I changed the IP address in the VI so that the code would be sent to the cRIO. I’m not exactly sure how to operate all aspects of the new netbook. I may have overlooked an important step somewhere. Can anyone help?
Assuming you’ve set the proper static IP etc, and that you’ve formatted the cRIO using the latest v19 using the updated utility that came with the Classmate, can you give us a little more information about what’s happening? Are you getting an error, does it appear to download, etc?
One important note is that you actually reformat the cRIO after applying the LabVIEW v19 update.
Jacob
…
and what is the static ip?
we haven’t seen it in the documentation.
On the Classmate, you need to go to the Network Adapter’s properties, select TCP/IP and instead of getting an IP using DHCP, you need to set a static IP.
It should be in this format
10.XX.YY.5
255.0.0.0
Where XX.YY is your team number
(examples)
FRC190 = 10.1.90.5
FRC3183 = 10.31.83.5
You would be
10.8.36.5
The .5 is the Driver Station. If you have a separate programming laptop, that will be .6
Your network adapter on the robot should be .1, your cRIO .2 and your router .4
All of these should be static IPs. Assuming at this point you aren’t using your router (just a cable straight from the Classmate to the cRIO), your Classmate has no IP (it might have given itself one in the form of 169.254.zz.kk, which is just a self-assigned and doesnt mean anything), and therefore no way to communicate with the cRIO.
You can always PM me if you need faster help.
Jacob
the ip addresses all seem to be correct. there is not a dialog box that appears describing an errror. could it be that i do not have the IO module attatched? if so, how do you set up the IO module, I am having trouble finding information about it.
Are you referring to the IO module on the Driver Station? This is not required to get your bot running.
I’m assuming that the IO module on the robot is hooked up to motors etc?
At this point, are you sure that the robot is enabled? From the driverstation, the robot is automatically disabled. To enable it, you simple need to click the teleop enable button on the driverstation.
the IO module on the robot is in working order, i was questioning the need for the IO module on the driver’s station. when you say i need to click enable on the driver’s station, does that mean i have to send the VI as a start up to the cRIO, then switch from the developer to the driver on the netbook so that i can test out my program? if so, is there any way that i can test my programming while still in labview so that i do not have to switch back and forth between the developer and driver user accounts on the netbook?
To answer your first question, the IO module does not have to be hooked up to the driver station.
To answer your second question, at this point I’m assuming that you’re also using your Classmate to program your robot in addition to using it as a driver station. While is this is possible, it’s best to use a second laptop to do your development on.
That being said, it is possible to execute your code, and with LabVIEW still running, switch users and use the Driver account to enable the robot. I have run into issues with this, as when you try to switch back to the Developer account, the machine crashes. Switching users is not reccommended by FIRST.
You can also Deploy the code to the bot so that after the bot reboots, it retains the code. If you did this, then you could log out of the developer account, log in to the driver account, reboot the bot, and your code would still be loaded. Unfortunately I don’t know how to deploy code from LabVIEW, so someone more versed in that should speak up. On that note, if anyone knows how to deploy code from the new java environment, I’m eager to find out. I’ve only done it using Windriver.
Hope this helps!
Jacob
To comment on using the Classmate for both development and the DS, I find it easiest to stay in Developer mode and launch the DS there from the Start menu. You will find that the screen is pretty cluttered, but other than that it works well. Note that this also works when the DS is installed on another laptop along with the dev tools.
Greg McKaskle