Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

analogic input external clock

Hy,

is it possible to acquire an anlog input at every pulse of an encoder (NI 6221)?

thank you Smiley Happy

0 Kudos
Message 1 of 5
(5,641 Views)

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

0 Kudos
Message 3 of 5
(5,622 Views)

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.

0 Kudos
Message 4 of 5
(5,618 Views)

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

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 5 of 5
(5,604 Views)