Re: [Emc-users] encoder component in counter mode velocity stability issues

2012-07-01 Thread Scott Hasse
John is correct. My logging could be more clear. The "time between" is the since the last rising edge of the input pulse as detected by the update function of the encoder running in the base thread. The "counts between" is the number of base thread runs since the last rising edge input pulse. Th

Re: [Emc-users] encoder component in counter mode velocity stability issues

2012-07-01 Thread John Kasunich
On Sun, Jul 1, 2012, at 04:59 PM, Jon Elson wrote: > Scott Hasse wrote: > > Are you perhaps associating the wrong run count and run times log entries? > > In the four-line log snippet you show I believe the middle two entries > > would be associated with each other. I see the times between di

Re: [Emc-users] encoder component in counter mode velocity stability issues

2012-07-01 Thread Jon Elson
Scott Hasse wrote: > Are you perhaps associating the wrong run count and run times log entries? > In the four-line log snippet you show I believe the middle two entries would > be associated with each other. I see the times between divided by runs > between to be quite stable. I have run the

Re: [Emc-users] encoder component in counter mode velocity stability issues

2012-07-01 Thread Scott Hasse
Are you perhaps associating the wrong run count and run times log entries? In the four-line log snippet you show I believe the middle two entries would be associated with each other. I see the times between divided by runs between to be quite stable. I have run the latency tests and get about

Re: [Emc-users] encoder component in counter mode velocity stability issues

2012-07-01 Thread Jon Elson
Scott Hasse wrote: > Jun 30 17:48:41 scott-desktop kernel: [ 4078.255547] ENCODER runs between: > 60 > Jun 30 17:48:41 scott-desktop kernel: [ 4078.256330] ENCODER time between: > 796760 > Jun 30 17:48:41 scott-desktop kernel: [ 4078.256344] ENCODER runs between: > 40 > Jun 30 17:48:41 scott-deskto

Re: [Emc-users] encoder component in counter mode velocity stability issues

2012-07-01 Thread Scott Hasse
I in essence made the sort of simplified counter you suggest from the encoder.c with the addition of some logging in the update thread and the addition of some fields to the cntr struct to keep track of runs between counts and time between counts: static void update(void *arg, long period) { c