petet4
19-01-2009, 10:26
Hi all, I have a quick question and if it is documented somewhere I have not been able to find it.
The question is can any of the digital inputs be used for reading the encoder? I have a USdigital encoder connected to digital inputs 10 & 11 in slot 4 and use the GetEncoder() function and it would read 0 or 1 while turning the encoder. The direction would work if I recall bit no increment or decrement of counts. Both encoder outputs were verified with a scope. After a bit of pondering I changed the wiring to use digital inputs 8 & 9 and then all works.
We are using Wind River with the C function call.
In summary are there specific inputs that are required to be used for various sensors, i.e. encoders?
Thanks,
-pete
The question is can any of the digital inputs be used for reading the encoder? I have a USdigital encoder connected to digital inputs 10 & 11 in slot 4 and use the GetEncoder() function and it would read 0 or 1 while turning the encoder. The direction would work if I recall bit no increment or decrement of counts. Both encoder outputs were verified with a scope. After a bit of pondering I changed the wiring to use digital inputs 8 & 9 and then all works.
We are using Wind River with the C function call.
In summary are there specific inputs that are required to be used for various sensors, i.e. encoders?
Thanks,
-pete