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
(6,151 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
(6,132 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
(6,128 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

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 5 of 5
(6,114 Views)