06-02-2011 01:22 PM
Hy,
is it possible to acquire an anlog input at every pulse of an encoder (NI 6221)?
thank you
06-03-2011 03:35 AM
Hi
You can read these forums:
Have a great day
Claudio
06-03-2011 04:19 AM
Hy Claudio,
as far as I understood the forums explain the normal way to synchronise the encoder to a analog input that is sharing the same clock and so on. My problem is that doing like this when I have low rpm I have some values of the angle repeated because (i think) the sample clok is too much fast and send in the buffer more than 1 one value of the same angle. Is there a way to connect the encoder so that I can use it as an external clock?or better, is ther another way to solve the problem doing the normal synchronization?
Thank you again
06-03-2011 05:05 AM
If I understood your problem, you can reduce the velocity of the loop that provides Encoder Value, or you can programmatically delete wrong equal values.
06-06-2011 11:53 AM
Depending on what you truly need:
1. To avoid duplicate position values, you can do as Claudio suggested and delete them after the fact with some software processing of the measurement array(s). This will avoid duplicates, but won't directly guarantee an analog measurement at each position change. You'd pretty much always need to sample at a higher-than-necessary rate and then trim away duplicates.
2. With an M-series board, you can accomplish one sample per quadrature state change directly by using a digital change detection task. Here's a link to one example, and you can find more by searching variations of the terms "change detection" and "quadrature".
-Kevin P