View unanswered posts | View active topics It is currently Sat Sep 19, 2020 11:50 am

Reply to topic  [ 2 posts ] 
Defragment possible? 
Author Message

Joined: Fri Apr 26, 2013 11:05 am
Posts: 39
Post Defragment possible?
Is it possible that a student's program, which has been adjusted multiple times and downloaded to the physical robot, can become defragmented like the hard drive on a computer?

While using a while loop in combination with the sonar sensor, students are being asked to navigate a maze. One particular student wrote a piece of code that had no errors when downloaded, yet the robot would only run the first piece of code. It wouldn't go on to the second piece of code. I copied the second and third pieces of code; cut it from the software; saved it and then pasted the previously cut pieces of code. The robot successfully ran the first and second pieces of code this time, but not the third. This is what makes me believe that the code can become fragmented.

If this can happen, is there a simple solution? Other than doing what I have just explained?


Tue Mar 24, 2015 2:48 pm
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1523
Post Re: Defragment possible?
It is possible for the NXT file system to be fragmented such that it doesn't have enough contiguous memory for the downloaded program. But when that happens, RobotC will give you an error during the download. I have never seen a case where a program is partially downloaded. In any case, you can "defrag" the file system from RobotC by clicking "Robot->NXT Brick->File Management Utility->Defragment File System".

Tue Mar 24, 2015 10:34 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.