Re: [Emc-users] Call a Python file from Axis

2015-02-22 Thread John Thornton
Well I guessed enough that I actually got the python interface to open the file finally... so I guess I can create a file then open it like ngcgui does. JT On 2/22/2015 7:22 AM, andy pugh wrote: > On 22 February 2015 at 13:12, John Thornton wrote: > >> Does the python interface work inside of

Re: [Emc-users] Call a Python file from Axis

2015-02-22 Thread John Thornton
Well I sorta got the python interface to work but I don't see where I can send output to Axis, the only related command is to load a file and I get an error from that "A file is already open can't open test.ngc" JT On 2/22/2015 7:22 AM, andy pugh wrote: > On 22 February 2015 at 13:12, John Thor

Re: [Emc-users] Call a Python file from Axis

2015-02-22 Thread andy pugh
On 22 February 2015 at 13:12, John Thornton wrote: > Does the python interface work inside of GladeVCP? > Yes. Or at least your handler file can use it. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ---

Re: [Emc-users] Call a Python file from Axis

2015-02-22 Thread John Thornton
Does the python interface work inside of GladeVCP? JT On 2/21/2015 4:19 PM, Kirk Wallace wrote: > On 02/21/2015 10:17 AM, John Thornton wrote: >> Just exploring the GladeVCP angle and I can not find a way yet to send >> output to Axis like I do with my G code Generators. > The UI I worked on has

Re: [Emc-users] Call a Python file from Axis

2015-02-21 Thread Kirk Wallace
On 02/21/2015 10:17 AM, John Thornton wrote: > Just exploring the GladeVCP angle and I can not find a way yet to send > output to Axis like I do with my G code Generators. The UI I worked on has the conversational g-code appended to a string variable. The conversational process concludes with a P

Re: [Emc-users] Call a Python file from Axis

2015-02-21 Thread John Thornton
Just exploring the GladeVCP angle and I can not find a way yet to send output to Axis like I do with my G code Generators. I tried: sys.stdout.write('this is a test') but the output goes to the terminal where as when I ran that from my G code Generator the output went to Axis http://wiki.linu

Re: [Emc-users] Call a Python file from Axis

2015-02-21 Thread Kirk Wallace
On 02/21/2015 05:38 AM, John Thornton wrote: > Is it possible to add a menu item to Axis with .axisrc to open a python > program? > > Or is it possible to call a python program via a PyVCP button? Sorry, I haven't a clue. > Or is it possible with GladeVCP? I suppose one could import the other Py

Re: [Emc-users] Call a Python file from Axis

2015-02-21 Thread andy pugh
On 21 February 2015 at 13:38, John Thornton wrote: > Is it possible to add a menu item to Axis with .axisrc to open a python > program? > I never figured out ,axisrc. > Or is it possible to call a python program via a PyVCP button? > Via MDI_COMMAND and an M-code you can, but it's a bit unwi

[Emc-users] Call a Python file from Axis

2015-02-21 Thread John Thornton
Is it possible to add a menu item to Axis with .axisrc to open a python program? Or is it possible to call a python program via a PyVCP button? Or is it possible with GladeVCP? Thanks JT -- Download BIRT iHub F-Type -