Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   code problem (http://www.chiefdelphi.com/forums/showthread.php?t=80874)

specs101kid 22-01-2010 17:36

code problem
 
after we have done all the configuration and stuff with the cRio, we tried to put our code on, and we go to configure it on the cRio, and it says that the code is complete and on the cRio. Then when we run the drivers station it states that there is no code. Does anyone know why this is?

Phoenix Spud 22-01-2010 17:41

Re: code problem
 
Did you try restarting you cRIO before testing it? If you don't restart it, the code does not get on the cRIO properly. Also, did you wait a couple of seconds? Sometimes the cRIO takes a while to reboot.

Hope that helps!

specs101kid 22-01-2010 17:43

Re: code problem
 
thanks for the help, but we did restart it, and waited several minutes while we built the code, and then tried to load the code onto the cRio.

Phoenix Spud 22-01-2010 17:47

Re: code problem
 
OK, a few questions...

What code are you using? C++, LabView, or Java? Have you flashed the latest image onto the cRIO? Are you using the WPIlib? Is there anything else that you are doing that might help us debug the problem?

specs101kid 22-01-2010 17:50

Re: code problem
 
we are programming in Labview, and yes to the rest of the questions. we have updated the new image and everything it just came time to put the code on and we ran it, the box came up and said it was complete, we turned everything off then back on and then there was no code.

Phoenix Spud 22-01-2010 17:54

Re: code problem
 
I'm really sorry, but I can't help you too much more. :mad: All the teams that I have been on used C++ in WindRiver, so I don't know anything about LabView. My only experience with it was via RoboLab for FLL. :ahh: I wish I could help more, and if there is anyway that you think I could help, please don't hesitate to send me a PM, or re-post in this thread. Once again, I am really sorry I could not help more.

specs101kid 22-01-2010 17:56

Re: code problem
 
okay, thank you for all of your help.

Phoenix Spud 22-01-2010 17:59

Re: code problem
 
Once again I am really sorry, I know how frustrating it can be having a problem, and no one to help you fix it. Just one thought--and you have probably already done this--have you gone through the Controls System Manual? What about the LabView Documentation?

Droid Rage 22-01-2010 18:07

Re: code problem
 
Did you review the help topic about loading the code to the robot on NI's website? See http://decibel.ni.com/content/docs/DOC-8973.

We had an issue were the code would appear to deploy when clicking the run option on robot main.vi and no communication would happen. This was a bug caused by not registering the NI software on the classmate.

rhoads2234 22-01-2010 18:08

Re: code problem
 
Are you downloading or deploying?

To run the code from the bot you need to build a "new real-time application" and run it as startup.

Joe Ross 22-01-2010 18:09

Re: code problem
 
Quote:

Originally Posted by specs101kid (Post 904846)
we are programming in Labview, and yes to the rest of the questions. we have updated the new image and everything it just came time to put the code on and we ran it, the box came up and said it was complete, we turned everything off then back on and then there was no code.

How are you running your code?

If you run your code with the run button in LabVIEW, it is running in RAM and will stop running if you press the finish or stop button, or if you close LabVIEW, or if you log out of windows.

a kenny03 22-01-2010 19:12

Re: code problem
 
if i do recall, i think there is something called EnhancedIO. it is a code in java, but i think labview has something similiar. i think it basically has nothing, but after that was put onto the robot, i was able to put my benchtop code back onto it, and it worked fine...

Alan Anderson 22-01-2010 23:24

Re: code problem
 
Quote:

Originally Posted by specs101kid (Post 904846)
we are programming in Labview, and yes to the rest of the questions. we have updated the new image and everything it just came time to put the code on and we ran it, the box came up and said it was complete, we turned everything off then back on and then there was no code.

Unless you specifically told LabVIEW to run your code at startup, turning the cRIO off and back on again will indeed result in there being no code running. If you want your program to run when you turn on the cRIO, you need to build the code then choose the Run at Startup option instead of just Deploy.

Kory 23-01-2010 11:51

Re: code problem
 
We are running Windriver and expierienced the same problem. We had put the new image on and the cRio was recieving our code. When we booted the driver software we recieved a no code error. We fixed the problem by taking this link http://first.wpi.edu/FRC/frccupdates.html and then running this update. "The mandatory LabVIEW update contains the new images and imaging tool to work with Java or C++." We reimaged the cRio once again and no longer had a problem.

Wiz 24-01-2010 00:00

Re: code problem
 
RTMS (a variation on KISS)

Not sure if this will solve the problems here, but, everyone remember there are two updates one for labview, and one for the driver station:

http://joule.ni.com/nidu/cds/view/p/lang/en/id/1534

http://joule.ni.com/nidu/cds/view/p/id/1535/lang/en


All times are GMT -5. The time now is 02:00.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi