pganssle/Magnetometer-Controller — Issue #26: Final point never taken
Author: pganssle
Created: 2012-02-03 02:43:41+00:00
State: open
Labels: High

For whatever reason, when you give a multi-dimensional experiment, the very last step is never taken (not sure about 1D experiments with multiple transients). So if you have an experiment that in dimension 1 has 5 steps and 2 transients, you'll sample as such:

0 1
0 2
1 1
1 2
2 1
2 2
3 1
3 2
4 1
4 2
5 1
--- Done

This is *clearly* an issue with the indexing. The indexing used is a bit confusing, because the dimensional stuff is a zero-based index (makes calculations easier for the person looking at it), and transients are a one-based-index (more intuitive this way). Something in there is getting jumbled up.

Likely what's happening is that the done-condition is mixed up in DataLib.c>prepare_next_step()