Spindle Load feedback in Gmoccapy

More
3 years 10 months ago - 3 years 10 months ago #260326 by andypugh

Still no success in setting up glade unfortunately.


Which version of Glade have you installed? (And which version of LinuxCNC
If you are on LinuxCNC 2.8 then you need the Glade version here: www.linuxcnc.org/dists/buster/base/binar...k2_3.8.6-1_amd64.deb
But it is probably best to get it through the package manager. Make sure that you are getting a package called glade-gtk2.

Last edit: 3 years 10 months ago by andypugh.

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #265786 by zz912
I am trying run spindle_load.py for LCNC 2.9 by HansU, but it types:

Code:
  File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 110, in _builder_connect_callback     handler, args = _extract_handler_and_args(obj_or_map, handler_name)   File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 90, in _extract_handler_and_args     raise AttributeError('Handler %s not found' % handler_name) AttributeError: Handler on_hal_status_interp_run not found glade/spindle_load.py:3: unterminated quoted string 'halcmd -f glade/spindle_load.py' exited with 1

I  use RIP instalation.
 

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #265788 by HansU
The following user(s) said Thank You: zz912

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #265794 by zz912
I tried it now, and it works.

Thank you.

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #266048 by zz912
Hello,

once i added the "spindle_load bar" it sometimes happens that LCNC won't start and shows this error:
Code:
custom_postgui.hal:18: Pin 'spindle_load.bar_spindle_load' does not exist /usr/lib/python3/dist-packages/gi/overrides/GObject.py:560: Warning: ../../../gobject/gsignal.c:2642: instance '0x2a45f70' has no handler with id '44040220'   return func(*args, **kwargs) Traceback (most recent call last):   File "/home/jarda/linuxcnc/linuxcnc-2.9/bin/gladevcp", line 54, in <module>     import gladevcp.makepins   File "/home/jarda/linuxcnc/linuxcnc-2.9/lib/python/gladevcp/__init__.py", line 51, in <module>     ,stderr=subprocess.PIPE   File "/usr/lib/python3.7/subprocess.py", line 775, in __init__     restore_signals, start_new_session)   File "/usr/lib/python3.7/subprocess.py", line 1476, in _execute_child     part = os.read(errpipe_read, 50000) KeyboardInterrupt 2951 3008 Stopping realtime threads Unloading hal components Note: Using POSIX realtime

Just try to start LCNC again and then LCNC will start normally.

If I want to intentionally simulate this error, just close and immediately start LCNC a few times and the error is guaranteed to show up after a few tries.

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #266050 by HansU
Maybe you have to connect your pin 'spindle_load.bar_spindle_load' in a separate HAL file which you pass with -H to the gladevcp command.
Like this:
Code:
EMBED_TAB_COMMAND = gladevcp -x {XID} spindle_load.glade -H connect-pin.hal

The reason is that the VCP might be loaded after the GUI loading is done and so the pin is not yet available in the POSTGUI_HALFILE. But I am not 100% sure about this.

 

Please Log in or Create an account to join the conversation.

Moderators: newbynobi, HansU
Time to create page: 0.157 seconds
Powered by Kunena Forum