On 23 October 2012 18:16, David Raila <[email protected]> wrote: > It seems that my > alternatives would be to either > load a program and step it, doing my sensor magic inbetween steps
No, you can simply put your sensor code into M100 to M199 codes, and LinuxCNC will pause motion, call the Python code, measure the position, log the result, return to LinuxCNC, move t the next point, and carry on. You have tried to make things too difficult, what you want to do is actually very easy. Just create an executable Python file called M101, and when LinuxCNC finds an M101 command, it will execute your Python, synchronous with motion. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
