> Am 23.06.2016 um 16:39 schrieb Jakob Flierl <jakob.fli...@gmail.com>:
> 
>> my recommendation would be to start with the Python linuxcnc module: 
>> http://www.machinekit.io/docs/common/python-interface/ - I am a bit fuzzy 
>> what grid-print actually provides (node = terra incognita)  and where the 
>> queuing function is
> 
> Thank's for the pointer, Michael. I just wrote ngc-submit.py that is
> supposed to submit an ngc file to a running Machinekit instance:
> https://gist.github.com/6faf5592e3dfe01d05af8a2763b7a891
> 
> I can confirm, that the file gets loaded inside the interpreter:
> https://gist.github.com/koppi/6faf5592e3dfe01d05af8a2763b7a891#file-ngc-submit-py-L36
> but inside MachinekitClient the newly loaded ngc file does not show
> up. Quick Video of the issue:
> https://www.youtube.com/watch?v=29rAY7wHuu4
> 
> – Does MachinekitClient receive an event, when a new ngc file gets
> loaded by an external program?

that is kind of a grey zone - the NML stack does permit several clients to 
connect to a 'server' (task in this case), but the semantics are fuzzy and the 
feature is a rich source of bugs, see 
https://github.com/machinekit/machinekit/issues/114

so to nail this I suggest tracking the command/reply serials and make sure the 
clients use different ranges so collisions are avoided 

that excluded, it could also be just a missing change detection and 
notification in mkwrapper (which is just the zeromq/protobuf adapter ontop of 
the linuxcnc Python module)



looking at 
https://github.com/machinekit/machinekit/blob/master/src/emc/usr_intf/axis/extensions/emcmodule.cc
 it seems all linuxcnc module clients start at the same serial (see 
next_serial()) and that is bound to create confusion; it might help to add a 
method to set the initial serial number 

but then this is just a kludge around a NML design defect - this stuff has to go


-m

> 
> -- 
> website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
> https://github.com/machinekit
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to machinekit+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to