Viesturs -

you refer to a counter.py file which you dont show

but if I put the below file into test.hal, execute 'touch counter.py' to create 
an empty Python module, and execute

halcmd -f test.hal

this runs fine - assuming counter.glade is in the same directory

- Michael


Am 14.03.2013 um 22:02 schrieb Viesturs Lācis:
> 
> Michael, thank You! Loading the panel with sample config works.
> Now I tried to load the panel in the HAL+glade style.
> 
> In terminal I executed:
> halrun -f /home/vie/linuxcnc/configs/counter/counter.hal
> 
> 
> In counter.hal I have:
> 
> # load the counter.glade GUI and name it counter
> loadusr -Wn counter gladevcp -c counter -u counter.py counter.glade
> 
> # load realtime components
> loadrt threads name1=counter period1=1000000
> loadrt hal_parport cfg="0x378 in"
> 
> # add functions to threads
> addf parport.0.read counter
> addf parport.0.write counter
> 
> # start the threads
> start
> 
> # comment out the following lines while testing and use the interactive
> # option halrun -I -f start.hal to be able to show pins etc.
> 
> # wait until the gladevcp GUI named winder terminates
> waitusr counter
> 
> # stop HAL threads
> stop
> 
> # unload HAL all components before exiting
> unloadrt all
> 
> 
> But I receive this error message in terminal window:
> 
> vie@ubuntu:~$ halrun -f /home/vie/linuxcnc/configs/counter/counter.hal
> 
> (gladevcp:3528): libglade-WARNING **: could not find glade file 
> 'counter.glade'
> **** GLADE VCP INFO:    Not a libglade project, trying to load as a
> GTK builder project
> **** GLADE VCP ERROR:    With xml file: counter.glade
> /home/vie/linuxcnc/configs/counter/counter.hal:2: gladevcp exited
> without becoming ready
> 
> 
> I would appreciate any hints :)) There _is_ counter.glade file in the
> same folder, where counter.hal is located.
> 
> -- 
> Viesturs
> 
> If you can't fix it, you don't own it.
> http://www.ifixit.com/Manifesto
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to