#emc-devel | Logs for 2006-10-19

Back
[14:13:37] <skunkworks> jmkasunich2: does it look like your getting out?
[14:13:53] <jmkasunich2> yeah
[14:14:09] <skunkworks> oops - didn't notice the convorsation on #emc
[14:14:38] <skunkworks> the pwmgen issue was me - working now - used max-dc also - very nice.
[14:15:24] <jmkasunich2> cool
[14:19:54] <jepler> jmkasunich2: do you have time to answer a HAL/RTAPI question?
[14:20:09] <jepler> I wrote this test to make sure that two threads were getting their iterations interleaved in the right way
[14:20:21] <jepler> but in retrospect I'm surprised it works
[14:20:39] <jepler> in the fast thread, a counter is incremented and then sampled. in a slow thread, the counter is reset to 0
[14:20:49] <jepler> the ratio is 1:10, so it counts from 1 to 10 over and over again
[14:22:11] <jepler> what surprises me is that even on the first iteration after 'halcmd start' it counts up to 10. I don't see what part of the code would ensure that 'halcmd start' happens when it's at the beginning of one of these repeating cycles, instead of in the middle
[14:22:33] <jepler> so the first time it might count 1 2 3 4 5 <SLOW THREAD EXECUTES> 1 2 3 4 5 6 7 8 9 10 <SLOW THREAD EXECUTES>
[14:29:13] <jmkasunich2> sorry, I wandered
[14:29:15] <jmkasunich2> reading now
[14:30:06] <jmkasunich2> are you talking about the sim, or RT?