|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Undeploying code. NEED HELP
I have been able to download the Simple Template code on to the cRIO and was able to make a motor run and everything, but when I went to take that code off and put on gyroscope code it would not allow me to undeploy it and WindRiver said "unable to delete UserProgram from the robot". Any new code that I try to download to the cRIO is ignored. What do I do?
Also, how do you print a variable value to the terminal window (for testing purposes) in the C++? Is it with the "PrintF" function? Thank you very much. |
|
#2
|
||||
|
||||
|
Re: Undeploying code. NEED HELP
Not sure how to help with the first program.
make sure your connected to the cRIO in the "remote Systems" panel. as for the variables. there are a few ways to do it i think i use printf(" Int: %d Float: %f ",myIntVariable, myFloatVariable); which replaces the %d and %f with an int and a float varriable. i think you might be able to use the cout<< stream too. which would look like cout <<"int: "<<myIntVariavle<<"Float: "<<myFloatVariable; |
|
#3
|
||||
|
||||
|
Re: Undeploying code. NEED HELP
Make sure you change the file that you are uploading to the cRIO through the settings. If you don't manually change it then every time you download code onto it it will look like it hasn't changed.
|
|
#4
|
|||
|
|||
|
Re: Undeploying code. NEED HELP
Thank you both very much.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with code | CaseyKasem_1251 | Programming | 3 | 02-18-2006 09:39 AM |
| Need help with code. | hawk_11 | Programming | 6 | 02-06-2005 01:56 PM |
| Need help with my code | jaywion | Programming | 9 | 03-20-2004 11:32 AM |
| code violation...need help | Vince lau | Programming | 4 | 02-20-2004 04:31 PM |
| hey need some help with writing a code please help me here | magical hands | Programming | 9 | 01-01-2004 09:46 PM |