Hi Michael, hi Chris!

On 12/30/2013 07:33 PM, Michael Haberler wrote:
> Hi Philipp,
> 
> a bit of guts first:
> 
> Configs with a UI which sports preview actually have two interpreters
> 
> there's one in the milltask process - this is the 'real one' which drives the 
> machine, and which you've been talking to with your sample program
> then there's a 'preview interpreter' in the UI process, which doesnt generate 
> canon commands to drive the machine, but rather lines to be displayed in the 
> UI.
> 
> in principle those two are unrelated ; of course they should work on the same 
> ngc program. UI's deal with that by telling the preview interpreter to 
> generate preview, and tell milltask to actually execute the program driving 
> the machine.
> 

I knew that there are two interpreters, but I didn't imagine that they
are completely unrelated.

> what happened with your program: you talked to the milltask interpreter, 
> which bypassed the UI - it cant possibly know of the new file
> 
> you might want to study axis-remote and the code in UI's to achieve the 
> desired effect: http://linuxcnc.org/docs/html/man/man1/axis-remote.1.html
> 

Hey, that's great! I've copied those few lines from axis-remote and it
just works :)
Thanks a lot, I didn't imagine it to be so easy.


On 12/30/2013 07:48 PM, Chris Morley wrote:
> If you use master and  Gmoccapy or Gscreen then you could tap into
> Gstat's Gobject signal (in your program) and that can emit a 'reload file' 
> signal.
> 

I'm using the most recent buildbot version, but no Gmoccapy or Gscreen.
Basically, I'm fine with AXIS, all the new fancy functionality is now in
a side panel (gladevcp). Maybe I'll eventually switch to a completely
customized GUI, but this has no priority right now.

> another possible way is to use your program as an AXIS filter (master or 
> 2.5.3)
> AXIS can load a python program that when finished emits gcode and then you 
> can run that.
> http://www.linuxcnc.org/docs/2.5/html/gui/axis.html#_program_filters
> 
> Not sure if you can make that work...

That would not quite work for me. This application requires very direct
interaction with the user. E.g. align the machine head to a fiducial,
hit a button to store the current position, move to the next fiducial
and so on.

Thanks for the inputs!

Best regards,
Philipp

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to