On Tue, Feb 08, 2011 at 02:36:49PM -0200, Matheus Degiovani wrote: > > So, the question is: can esleep() be modified to use a high resolution > timer (nanosleep() or similar) or maybe the RCS_TIMER class use this > other method of sleeping (since apparentely it's used only for timing > the main emc task?
I think it's the wrong approach to try to make task respond in real time. It is not a real time process. It runs in userspace and therefore there are no guarantees. I think you need to reexamine your setup and find a way to do everything that needs to be fast in real time. You might investigate whether you can find a way to use motion's adaptive-feed or feed-hold inputs to hold the material in place while punching. These work in real time. If a motion is pending and you deassert them, the machine will start to move at the next servo cycle. ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers