pganssle/Magnetometer-Controller — Issue #11: Take skips into account when loading/updating data
Author: pganssle
Created: 2012-01-25 02:32:08+00:00
State: open
Labels: File IO, High Priority, UI

I have not as yet taken skips (skipped instructions in an multidimensional experiment for in case you want a custom sampling strategy) into account in the navigation. Thus if you sample something using skips, you'll be presented with options that the program cannot possibly load.

This can be easily fixed by adding a few lines to the DataLib.c>update_experiment_nav() and update_transients() functions. You do *not* have to search all possible outcomes to do this. Imagine I have an experiment of dimensionality 8x10x5, and I have skips at positions (3, 4, 3), (2, 4, 1) and (5, 9, 3).

Since you can only navigate by changing the value of one dimension at a time, you can just update the navigation controls at each change, and black out or remove (I think blacking out may not be possible with LabViews standard controls) the items that have been skipped that you can get to by changing exactly one dimension. So, in the example above, imagine I'm at (1, 1, 1) - none of the controls have skips, because you can't get to one of the skip positions by changing just one number. But if I'm at 2, 4, 3), in the third control, you'd only have (2:5) rather than (1:5). Hopefully this is straightforward.