ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

camparing encoder count

hi
I am reading an encoder and counting the pulses, with a display value which updates every 100ms.
 After a certain interval, the encoder count stops incrementing.
How can I save the encoder count at one  instant and compare with the count after an interval passes(e.g. 1 second )  to determine when the count stops increasing?
0 Kudos
Message 1 of 3
(3,193 Views)
make a ringbuffer with
 
a) a subvi see example somewhere in XY-Graph
b) a queue
c) if you have LV-RT using the RT-FIFO
 
 
 
another way is attached
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 2 of 3
(3,184 Views)
hi thank you for your help. that is good solution.
0 Kudos
Message 3 of 3
(3,163 Views)