[Home]GladeVcp

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Difference (from prior author revision) (major diff, minor diff)

Changed: 1c1
(The related GladeVcpSetup page has more current information).
Gladevcp is a GUI component for EMC2.

Changed: 3,54c3,26
Gladevcp is now in the developer version of EMC 'master'

To use it One must manually add the system links to the glade folders.

see the READ ME in <EMC master folder name>lib/python/gladevcp.

To edit Gladevcp file one must use Glade version 3.6.7 (eg Ubuntu 10.04)

Gladevcp files that have been made with Glade 3.6.7 can be displayed on systems with older versions of Glade (eg Ubuntu 8.04)

But you can't edit and won't see the HAL objects using Glade.

If anyone wishes to donate more or needs help building new HAL widgets lets us know on the EMC Maillist



some test screens showing gladevcp

here is the glade editor:

upload:gladevcp8.png
a modified Touchy with a vcp widget added. You actually don't need to recompile to add widgets:

upload:gladvcp7.png
touchy and two stand alone panels note one is insensitive which can be controlled by HAL pin if wanted:

upload:gladevcp6.png


Pavel Shramov submitted a patch to be able to add gladevcp panels to Axis gui.
Here is how to do it:

You need python-xlib installed

Add a file (shown below-rename it) named '.axisrc' to your home folder. It will be a hidden file. AXIS actually has a couple there already.
Add two variables in DISPLAY section of ini file:

EMBED_TAB_NAME = GladeVCP?

EMBED_TAB_COMMAND = gladevcp -c COMPNAME -w {XID} [path-to-glade-file]


GladeVCP? will be the tab name (change it if you like)

COMPNAME will be the prefix to your gladevcp widgets. (change it if you like)

[path-to-glade-file] is self explanatory.

you can also use gladevcp's -g option to change the geometry in AXIS's tab.

upload:axisrc2.txt


Notes on running gladevcp under Axis:


* make sure your have the development version of emc2 installed in which case you dont need the above axisrc file
* if you get python errors on the console window, check wether there's still a /usr/lib/python2.6/dist-packages/hal.so file lying around besides the newer /usr/lib/python2.6/dist-packages/_hal.so (note underscore); if yes, remove the hal.so file
** if you're using run-in-place, do a 'make clean' to remove any accidentially left over hal.so file.
* currently it isnt possible without a patch to gladevcp to issue hal commands and link pins to other parts of emc. The below patch adds a -h command to gladevcp. Apply this patch, prepare a file with HAL commands and change the ini DISPLAY section as follows:

EMBED_TAB_NAME = GladeVCP?

EMBED_TAB_COMMAND = gladevcp -c COMPNAME -w {XID} -h [path-to-halcommand-file] [path-to-glade-file]


If you're starting with the gladevcp-test.hal file in emc2-dev/lib/python/gladevcp.hal remember to comment out the loadusr statement near the top. This doesnt make sense because the file is read by a already running gladevcp instance.

upload:0001-add-h-halfile-option-to-gladevcp-for-post-init-hal-c.patch


This is a sample that has gladevcp embedded in a tab and pyvcp included on the right side:

upload:gladevcp_in_axis.png


EMC2 version dependencies:




*It is available in the v2.5_branch and master branches of EMC2.

*It is not available in the v2.4 series of EMC2.

Platform dependencies:




*to edit gladevcp panels, you must have the minium Glade version 3.6.7 installed which is default on a 10.04 -based platform, but which is not available on 8.04.
*to install glade, run 'sudo apt-get install glade' .
*hence, to both edit and run gladevcp panels, you must be running on a 10.04 -based platform.
*you can run gladevcp panels on an 8.04 platform, but you will not be able to edit them. You need to edit them on 10.04, and save the files in libglade format, and with gtk catalog version 2.12 (see glade preferences tab). Then transfer them to the 8.04 platform.
*Not all gladevcp widgets are available on 8.04.

To edit gladevcp panels, the minimum required Glade version 3.6.7.

If you are building from source / git



the package dependenices will not be automatically installed. To do so:

$ apt-get install python-gnome2 python-glade2 python-numpy python-imaging python-imaging-tk python-xlib python-gtkglext1 python-configobj python-gtksourceview2 glade

All up-to-date documentation is now in http://www.linuxcnc.org/docs/2.5/html/gui/gladevcp.html




The original wiki pages have been deleted since they caused too much confusion.

Gladevcp is a GUI component for EMC2.

EMC2 version dependencies:

Platform dependencies:

To edit gladevcp panels, the minimum required Glade version 3.6.7.

If you are building from source / git

the package dependenices will not be automatically installed. To do so:

 $ apt-get install python-gnome2 python-glade2 python-numpy python-imaging  python-imaging-tk python-xlib python-gtkglext1 python-configobj python-gtksourceview2 glade

All up-to-date documentation is now in http://www.linuxcnc.org/docs/2.5/html/gui/gladevcp.html

The original wiki pages have been deleted since they caused too much confusion.


LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited December 3, 2011 1:25 pm by MichaelHaberler (diff)
Search:
Published under a Creative Commons License