ROBOTC.net forums
http://robotc.net/forums/

Defragment possible?
http://robotc.net/forums/viewtopic.php?f=1&t=10766
Page 1 of 1

Author:  Korndog [ Tue Mar 24, 2015 2:48 pm ]
Post subject:  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?

Thanks!

Author:  MHTS [ Tue Mar 24, 2015 10:34 pm ]
Post subject:  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".

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/