Go to Post Don't take things too seriously; It's supposed to be fun. :) - ScoutingNerd175 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-10-2010, 20:46
kakycootie12 kakycootie12 is offline
Registered User
AKA: Kirsi
FRC #2512 (Duluth East Daredevils)
Team Role: Leadership
 
Join Date: Oct 2010
Rookie Year: 2009
Location: Minnesota
Posts: 3
kakycootie12 is an unknown quantity at this point
Question Transfering Programing From Robot to Computer?

Recently my team's computer with all of our robot's programming was stolen. Thankfully, the robot remembered all of it's programing, and can be run from a temporary computer. Is there a way to load/copy the programing from the robot on to a computer, so the program can be edited? But also not erased from the robot?
  #2   Spotlight this post!  
Unread 05-10-2010, 21:09
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Transfering Programing From Robot to Computer?

No. You can't do it. The code has been compiled, and can no longer be decompiled easily.



Lesson: ALWAYS keep code in multiple places. Like, your laptop, and someone else's flashdrive, or your laptop, and a mentors laptop, and your flashdrive. Keep one copy as always up to date, and work off that, but periodically back up your data to the alternate sources just in case. It won't be the latest revision, but it will at least be no more than a day or so old. (If it's the "off-season" (The season is never really over), the last event would be fine)
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #3   Spotlight this post!  
Unread 05-10-2010, 21:37
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Transfering Programing From Robot to Computer?

Why not just recode it? Yea, it is a good idea to have an external server to back everything up.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #4   Spotlight this post!  
Unread 06-10-2010, 18:52
feverittm's Avatar
feverittm feverittm is offline
Registered User
FRC #0997 (Spartans)
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Corvallis, OR
Posts: 122
feverittm will become famous soon enoughfeverittm will become famous soon enough
Re: Transfering Programing From Robot to Computer?

I would suggest that you use an online backup solution for your code. I am not sure which language your bot was programmed in, but our team used Java with subversion (a version control system) to store our code. This allowed use to make changes and get back to a working copy really fast is we messed something up.
__________________
Floyd Moore
Mentor Electrical and Pneumatics
Team 997 - Spartan Robotics
Corvallis High School, Corvallis Oregon
  #5   Spotlight this post!  
Unread 06-10-2010, 19:59
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Transfering Programing From Robot to Computer?

http://code.google.com/
http://sourceforge.net/
http://www.assembla.com/catalog/tag/free
http://beanstalkapp.com/
http://unfuddle.com/
http://www.xp-dev.com/


There are tons more if you look for them
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #6   Spotlight this post!  
Unread 08-10-2010, 20:57
synth3tk's Avatar
synth3tk synth3tk is offline
Volunteer / The Blue Alliance
AKA: David Thomas
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ohio
Posts: 2,005
synth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond repute
Re: Transfering Programing From Robot to Computer?

We used Sourceforge.net last season, but I think I'll probably setup a Google Code project this season.

As for your original question, no, there's no way to easily retrieve the code from the robot. Sorry.
  #7   Spotlight this post!  
Unread 08-10-2010, 21:10
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Transfering Programing From Robot to Computer?

Quote:
Originally Posted by synth3tk View Post
there's no way to easily retrieve the code from the robot.
Allow me to ask a related question if I may:

When uploading freshly-built code to the robot using, say, LabVIEW, is there a single large file that is being uploaded, or is it a series of several files, possibly gathered from different folders?

Is it possible to identify and archive this file(s), in a form that would permit it (them) to be uploaded at a future date without having to re-build them from the source code?

This is not an idle question. It has real practical significance.



  #8   Spotlight this post!  
Unread 08-10-2010, 22:21
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Transfering Programing From Robot to Computer?

In the case of LabVIEW it's a whole slew of files.
These are all located under a build folder (set in properties of your Build Specification) where they are downloaded from whenever you use Deploy or "Run as Startup"
Usually under My Documents\LabVIEW Data\your project\Builds\c\ni-rt\startup

You don't need to Build unless a change to the source has been made.
Each file is then downloaded only if the PC version is different than the current cRIO version.

For Java and C++ it's a single .out file.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 08-10-2010 at 22:28.
  #9   Spotlight this post!  
Unread 08-10-2010, 23:20
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Transfering Programing From Robot to Computer?

Quote:
Originally Posted by Mark McLeod View Post
In the case of LabVIEW it's a whole slew of files.
Is there any way to upload these to the cRIO after the LabVIEW license expires?



  #10   Spotlight this post!  
Unread 09-10-2010, 09:08
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Transfering Programing From Robot to Computer?

If you want to preserve everything to use after your LabVIEW license expires, to be safe I'd probably just ftp the whole directory tree on the cRIO back to a PC and store that.
The advantage there is that it could be captured and stored anytime after you discovered your license was no longer valid. Most teams would have forgotten by then exactly which program had been left last on the cRIO.

It would be valid with that particular cRIO image, but without a license you probably wouldn't be able to re-image the cRIO with the corresponding FPGA code if need arose.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 09-10-2010 at 09:13.
  #11   Spotlight this post!  
Unread 09-10-2010, 17:59
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Transfering Programing From Robot to Computer?

As Mark mentioned, a simple ftp command would do it. The fpga image is in there too, though without having a cRIO on me on the weekend -- hate it when that happens -- I can't be precise about where it is stored.

Greg McKaskle
Closed Thread


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
Programing Robot Feedback Scottman General Forum 1 16-02-2008 01:45
Probem transfering program from easyC to bot SidneySalvo Programming 7 06-01-2008 16:49
Download from RC back to computer? geeknerd99 Programming 10 02-04-2007 18:37
Major problems transfering code to RC agrahimi Programming 7 19-01-2007 23:08
Computer Graphics and Visual Basic Programing Gope General Forum 0 26-10-2002 13:44


All times are GMT -5. The time now is 23:22.

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