Go to Post Like fishing, some may get away as you are reeling them in, but never letting out enough line to get the big ones at the bottom is just disappointing. - Eric O [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2009, 14:57
dnrobotics11 dnrobotics11 is offline
Registered User
FRC #2589
 
Join Date: Mar 2008
Location: Massachusetts
Posts: 55
dnrobotics11 is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2009, 16:16
Maxpower57's Avatar
Maxpower57 Maxpower57 is offline
Fabuloso
AKA: Maxwell V.
FRC #2574 (RoboHuskie)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: St. Anthony, MN
Posts: 53
Maxpower57 will become famous soon enoughMaxpower57 will become famous soon enough
Send a message via AIM to Maxpower57
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;
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2009, 17:22
wt200999's Avatar
wt200999 wt200999 is online now
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
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.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2009, 18:33
dnrobotics11 dnrobotics11 is offline
Registered User
FRC #2589
 
Join Date: Mar 2008
Location: Massachusetts
Posts: 55
dnrobotics11 is an unknown quantity at this point
Re: Undeploying code. NEED HELP

Thank you both very much.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with code CaseyKasem_1251 Programming 3 18-02-2006 09:39
Need help with code. hawk_11 Programming 6 06-02-2005 13:56
Need help with my code jaywion Programming 9 20-03-2004 11:32
code violation...need help Vince lau Programming 4 20-02-2004 16:31
hey need some help with writing a code please help me here magical hands Programming 9 01-01-2004 21:46


All times are GMT -5. The time now is 13:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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