Input not working with newest code
-
- Posts: 3
- Joined: Mon Jan 04, 2016 12:23 am
Input not working with newest code
The circuit is working properly it gives 5V to processor and 0V when grounded.
When I switch to older code (4.146) everything works as it should.
Anybody has an idea for this?
Stefan
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Input not working with newest code
I will have a look on my bench. Could you post a datalog and your MSQ settings file of the problem in the meantime? It is possible that this could be a configuration issue, and a datalog always help eliminate possibilities more quickly.
Lance.
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Input not working with newest code
Input 2 isn't working on my bench either (though the input 2 voltage swings from 0 to 5V on the gauge appropriately). Thanks for spotting this and bringing it up. I will fix it and post new code here as soon as I have a fix (it's likely a typo somewhere in the code, but that doesn't necessarily mean it will be easy to find...).
Lance.
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Input not working with newest code
This 5.105ti test code and INI should work better for you:
Input 2 now works as it should in limited testing on my bench.
The problem was in the way the code distinguishes between the GPIO hardware and the MicroTCU hardware.
The logic was obviously wrong, but I am not quite sure why it was written that way originally. So I need to figure that out at some point.
Let us know if this doesn't work for you.
Lance.
-
- Posts: 3
- Joined: Mon Jan 04, 2016 12:23 am
Re: Input not working with newest code
I just tested the new code and everything seems to be working so far.
Thank you for quick response, now I can go on with my project.
Stefan
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Input not working with newest code
Thanks for letting us know. If there's anything else that doesn't seem right, please post about it and we will get it sorted.
Lance.
Re: Input not working with newest code
![Sad :(](./images/smilies/icon_e_sad.gif)
Re: Input not working with newest code
Re: Input not working with newest code
![Sad :(](./images/smilies/icon_e_sad.gif)