On 2/12/14 09:49 , Christopher Purcell wrote:
> On 10 February, 2014 Sebastian Kuzminsky wrote:
>> As an alternate to your system design, try to make Mathematica write the 
>> gcode out to a file, and then use 'axis-remote newfile.ngc'.  That avoids 
>> the multi-gui problem, while still maintaining the "give axis new gcode from 
>> an external program" pattern.
>>
> Thank you for this suggestion. The "axis-remote" python script imports ngc 
> files in Axis and updates the display exactly as advertised when run on the 
> linuxcnc host, or a remote Ubuntu machine via ssh -X . Not sure why but when 
> run remotely from a Mac OS X machine I found that the DISPLAY environment 
> variable must be set, as you can see in the commands that follow. These 
> commands build a tool path with the latest Mathematica, secure copy the ngc 
> file to the linuxcnc host, start linuxcnc on the remote machine with an ini 
> file, then use axis-remote to load the file, after a pause to let linuxcnc 
> get installed. SSH has been set up with an empty password. Apologies for long 
> post - rest is only of interest to Mathematica users.

Try this change to axis-remote:

> -t = Tkinter.Tk(); t.wm_withdraw()
> +t = Tkinter.Tk(useTk=False)

I've not tested it.  Let me know if it removes the need for a valid 
DISPLAY variable, while still letting axis-remote do its job.


-- 
Sebastian Kuzminsky

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to