2013/3/14 Michael Haberler <mai...@mah.priv.at>: > Hi Viesturs, > > the problem is with the 'text template' property in hal_label1,2,3 in your > glade file > > for instance, hal_label1 has text template 'Range 1' - note there is no > conversion specifier like %s, so it doesnt display a HAL pin value either > > which is why at runtime Python cant interpolate the HAL widget value into the > text template, this is what the error says > > add a '%s' to these 'text template' properties in glade to hal_label1,2,3 and > you're fine
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