pganssle/Magnetometer-Controller — Issue #17: Channel specification issues
Author: pganssle
Created: 2012-01-28 02:05:07+00:00
State: open
Labels: Medium, UI

The toggle-pulldown menu for which channels to turn on seems to be able to be fucked up somehow. Once I edit the .xml file to reset it to a normal setup, things work fine, but at some point it's possible to add things like ai4 multiple times, toggles not working, etc. I think that it *may* happen if the xml gets confused, and you end up with a situation where you have:

```xml

Dev1
10891384
0;1;2
ai0;ai4;ai5
10.0;10;10
ai0
ctr0
PFI0
8

```

In that situation ChansOn refers to channels 0, 1, and 2, but the channels on are ai0, ai4 and ai5. I think the behavior should be that the *names* take precedence over the order, so once that's loaded, if it detects that ai4 and ai5 are available, those numbers will be changed to the actual indices. Hopefully this will fix all issues related to this.