pganssle/Magnetometer-Controller — Issue #23: Problems with loading/saving programs
Author: pganssle
Created: 2012-02-01 02:53:02+00:00
State: open

Not sure if it's on the load side or the save side, but I've noticed serveral programs fucking up when I load them. Usually what happens is the varying instructions get moved around or are in the same place they were before the load or some nonsense like that.

If you are going to actively take up this, I would guess that a good debugging strategy would be to make several different multi-dimensional programs and start loading them all in a row until you get anomalous behavior. Then, read the program in matlab or something to check that it was saved correctly (likely it was), then start combing through the load code for where it's fucking up (setting a breakpoint on the first bit after the PPROGRAM is created will allow you to look at the PPROGRAM field-by-field and determine whether the program as-loaded is valid).