Changing DC level causing changes in other inputs???
I'm not quite sure how to explain this, so here is a screen shot of the part of the firmware that is giving me problems.
What this is trying to do is look at Alias 2 and 9 (not sure why 2's title is changed) which is then fed into a comparator block. This is compared against a constant DC level, which is adjusted via the fader. Depending if Alias 2 or 9 level is higher or lower than the constant level, the output from each block is either 1 or 0. The problem I am running into is that when I move the fader to adjust the DC level, it is affecting the readback values from alias 2 and 9 aka if I move the fader up, when I readback the signals ReadBack1 goes up, and so does Readback2 and Readback3, and if I lower the DC value, the change is seen again through all 3 blocks. This DC level does not interact with the input signals anywhere else in the code, which is why I am so puzzled (its simply used for this single comparison).
Is this just something that is going to happen no matter what, or am I missing something?
Thanks in advance for any help!
Can you post the whole project? Where are your alias values being formed?
Sadly I cannot post the full project. Those values are coming from the "Running Average" RMS block which the signal is fed into.
Have you tried simplifying your code down? For example instead of using your current source for your alias values just hook up 2 more DC blocks to your aliases and remove the rest of your code. Perhaps your aliases are some how bugged? You mentioned some issues with naming, have you tried to reform these? If all else fails maybe make a new project with your minimum required code to see if the issue returns? Are you close to running out of resources on the device?
Well the good news is I fixed it and it works, the bad news is I don't know what I did to fix it... I started reconnecting things here and there, and checked it again and no longer had the problem I wish I at least knew what I did so I could share...
Thanks for your help though!
echoskope,
I haven't seen this kind of problem before, but if you are able to reproduce it in the future, please post the project so it can be used for debugging.
Thanks!
Please log in to reply.