Quote:
Originally Posted by Alan Anderson
.....you wouldn't have needed to do any special programming. The FPGA lets you define a digital input pin as an encoder reset signal.
|
Quote:
Originally Posted by Hugh Meyer
Would you provide more information about how to do this? Links to docs would be great. C++
|
It's obvious and straightforward in LabVIEW. The External Reset input terminal, and its associated polarity select, are at the top of the Encoder Open function icon.
In Java, some of the Encoder constructors accept a third Digital Input to specify the index signal.
In C++, it looks like the reset/index feature is not exposed in the Encoder class. That's unfortunate. I don't know enough about the low-level resource interface to the FPGA to be comfortable trying to suggest adding a new constructor that includes it.