|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Crio Not taking code
So we download the code to our summer project robot and it downloads right. when we got to test it is doesn't do what we tell it to. We have tried to reimage it and reset it. We tried to use a different crio and still have the same problem./ Got any help?
Regards Team 3038 Last edited by tomy : 22-06-2011 at 14:58. |
|
#2
|
||||
|
||||
|
Re: Crio Not taking code
You will have to provide more details, your problem description is too vague.
What are you telling it to do? And what is it doing instead? |
|
#3
|
|||||
|
|||||
|
Re: Crio Not taking code
Your code is not working is all we can tell.
You can use netconsole to get a dump of the cRIO boot to see if your code is throwing an error and what the error is. Commonly, attempting to use an uninitialized variable will kill the program right away, so that's a possibility. That would show up on a netconsole dump. |
|
#4
|
||||
|
||||
|
Re: Crio Not taking code
I am the one who was dealing with it the most.
I wrote the code just to do tank drive with two motors and jaguars, i deployed the code and only one joystick is working and all the robot will do is move forward and backward. then I went back into the code and deleted all of the code related to movement so that regardless of what I do the robot should not move. I deployed the code and it did the same thing again. I have re-imaged the crio at least 8 times today and each time i get the same result regardless of the code that i deploy to the robot. |
|
#5
|
|||||
|
|||||
|
Re: Crio Not taking code
Your description suggests that you're not downloading the code you think you are. Make sure you're pointing the deployment process to the same place you're putting the compiled program.
|
|
#6
|
|||
|
|||
|
Re: Crio Not taking code
I am working with elliot and we have check our .out file. i have a theroy that one of the modules is hold to a program. Is that possible?
|
|
#7
|
||||
|
||||
|
Re: Crio Not taking code
Okay but how would we make sure that the code from windriver is deploying to the right ip address, because whenever i reimage it my laptop says that there is no code in the driver station, but then when i deploy the code and reboot it says that there is code there. But the robot is not taking the code?
|
|
#8
|
|||||
|
|||||
|
Re: Crio Not taking code
What Alan meant was that one easy mistake to make is thinking you're downloading your new .out file whenever you push the Deploy button.
There are different .out files from each project. That's only true if you remembered to select the newest one in: Window->Preferences FIRST Downloader Preferences and check to see that the .out file selected is the latest one AND the directory is the right one.I always double-check by looking at the .out file creation date in Windows Explorer to make sure it is the one being changed whenever you compile. Last edited by Mark McLeod : 23-06-2011 at 10:09. |
|
#9
|
||||
|
||||
|
Re: Crio Not taking code
It turned out that that was the problem but now we are having a different problem. It worked but then this happened. We deploy the code and it behaves like it transferred the file, but then when we go to the driver station and we reboot it it says that there is no code. we tried changing Crios and that didn't help. I also used ftp to browse the robot and I could not find the output file from windriver.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|