Chiller
07-02-2013, 22:21
I have created a Virtual cRIO so you can test your robot code without having to wait for the mechanical and electrical teams to finish their jobs.
This is the first release so do not expect it to work flawlessly!
Download: http://www.mediafire.com/?wpwkpreo6hwjc16
Instructions:
- Download the jar file and place onto desktop
- Open netbeans (or other IDE)
- If using netbeans either create a new robot project or use an existing project
- Once your robot project is created right click on the project you just made and click properties
- Click on Libraries, and remove the classes.jar library and add the Virtual cRIO.jar
- Once the library is added make sure there are no errors with the class imports
- Now you have to create a new file in the src folder by right clicking the src folder and New -> Other -> Other -> Empty file, name it main.txt
- Now in that file put <PackageName>.<MainClass> but replace PackageName with the actual package name and the MainClass with the main class that extends SimpleRobot and then save the file
- Now all you have to do is click the build icon (the one that looks like a hammer)
- Now open Virtual cRIO.jar and click the Choose Jar button
- Find your built robot project which is usually in your documents folder under netbeansprojects/<Project Name>/dist
- And now you should be able to enable the cRIO!
If you are having any trouble or having any problems please be sure to leave a comment below so I may assist you!
Screenshot:
http://i47.tinypic.com/1rriuq.png
This is the first release so do not expect it to work flawlessly!
Download: http://www.mediafire.com/?wpwkpreo6hwjc16
Instructions:
- Download the jar file and place onto desktop
- Open netbeans (or other IDE)
- If using netbeans either create a new robot project or use an existing project
- Once your robot project is created right click on the project you just made and click properties
- Click on Libraries, and remove the classes.jar library and add the Virtual cRIO.jar
- Once the library is added make sure there are no errors with the class imports
- Now you have to create a new file in the src folder by right clicking the src folder and New -> Other -> Other -> Empty file, name it main.txt
- Now in that file put <PackageName>.<MainClass> but replace PackageName with the actual package name and the MainClass with the main class that extends SimpleRobot and then save the file
- Now all you have to do is click the build icon (the one that looks like a hammer)
- Now open Virtual cRIO.jar and click the Choose Jar button
- Find your built robot project which is usually in your documents folder under netbeansprojects/<Project Name>/dist
- And now you should be able to enable the cRIO!
If you are having any trouble or having any problems please be sure to leave a comment below so I may assist you!
Screenshot:
http://i47.tinypic.com/1rriuq.png