On 07/19/2014 08:28 PM, Kirk Wallace wrote: > I have been using the scales on my manual mill with a pyVCP app here: > http://www.wallacecompany.com/machine_shop/EMC2/dro_vfd/ > > It has worked well, but I have been using Glade and wanted to get a > Glade version of this working. What I have so far is here: > http://www.wallacecompany.com/machine_shop/LinuxCNC/gDRO/ > > So far so good, but when the Glade window closes the focus returns to > the halrun prompt and I have to type quit to exit halrun. I tried using > waitusr in the .hal file but this requires me to use control-Z to exit > and halrun doesn't close, so I need "halrun -U" to clean things up. I > suspect that the ui.py file closes the app window okay > (gtk.main_quit()), but there is no close app signal connection to the > file that calls the ui.py file, which is the halrun command. Am I close > or do I need to to look at something else? >
Well Michael H got me off my but to learn more about GladeVCP proper. This is what I got done so far: http://www.wallacecompany.com/machine_shop/LinuxCNC/gvcpDRO/ On a computer with LinuxCNC installed, just copy the above directory (two files) to your home directory. Start a terminal session, change to the new directory and invoke "halrun -f gvcpDRO.hal". The DRO window should appear, but at this point the only thing you can do is close it. The .hal file needs to be edited to match the parallel port that you have your encoders connected to. An icon and launcher would be a nice addition. There are other features that would be nice to have, but I will probably be using it as is for now. Thanks goes to Michael and Jeff for your help. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/ ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
