- Posts: 596
- Thank you received: 0
Spindle Load feedback in Gmoccapy
4 years 1 month ago #250851
by zz912
Replied by zz912 on topic Spindle Load feedback in Gmoccapy
Pins are here:
linuxcnc.org/docs/html/gui/gmoccapy.html#_spindle_feedback_pins
Do you use postgui.hal ?
linuxcnc.org/docs/html/gui/gmoccapy.html#_spindle_feedback_pins
Do you use postgui.hal ?
Please Log in to join the conversation.
4 years 1 month ago #250853
by CNC_Tux
Replied by CNC_Tux on topic Spindle Load feedback in Gmoccapy
i can see the pins in the hal show, if i make a link,
i get a fault message " pin or Signal doesnt exist"
I took a look into the sim examples ... noting in the hal, but the pins are linked.
Postgui.hal, i think is an idea to take a look inside
i get a fault message " pin or Signal doesnt exist"
I took a look into the sim examples ... noting in the hal, but the pins are linked.
Postgui.hal, i think is an idea to take a look inside
Please Log in to join the conversation.
4 years 1 month ago #250855
by zz912
Replied by zz912 on topic Spindle Load feedback in Gmoccapy
I see it:
I tested it, and it works.
Could you send your config?
Attachment not found
I tested it, and it works.
Could you send your config?
Please Log in to join the conversation.
4 years 1 month ago #250864
by CNC_Tux
Replied by CNC_Tux on topic Spindle Load feedback in Gmoccapy
Dear ZZ,
thank you so much, with the postgui.hal was the right idea!
It is working!!
Now i understand why this message "pin or signal doesnt exist"
Gmoccapy is not loaded and the pins exist after loading the GUI.
Cheers
Reinhard
thank you so much, with the postgui.hal was the right idea!
It is working!!
Now i understand why this message "pin or signal doesnt exist"
Gmoccapy is not loaded and the pins exist after loading the GUI.
Cheers
Reinhard
Please Log in to join the conversation.
3 years 10 months ago #258701
by piflixe
Replied by piflixe on topic Spindle Load feedback in Gmoccapy
Hello! Could you maybe point out what changes neet to be made to run the spindle_load within LinuxCNC 2.8? on my simulation computer uname puts out the following: 4.19.0-21-rt-amd64 #1 SMP PREEMPT RT Debian 4.19.249-2
I also tried to install glade using apt-get install glade glade-gtk2. But when trying to open spindle_load.glade within the glade GUI I get en error message that the gladevcp catalog is missing.
Thanks for your help!
I also tried to install glade using apt-get install glade glade-gtk2. But when trying to open spindle_load.glade within the glade GUI I get en error message that the gladevcp catalog is missing.
Thanks for your help!
Please Log in to join the conversation.
3 years 10 months ago #258702
by zz912
Replied by zz912 on topic Spindle Load feedback in Gmoccapy
I have same problem.
Please Log in to join the conversation.
3 years 10 months ago #258716
by HansU
Replied by HansU on topic Spindle Load feedback in Gmoccapy
For making it Python2 compatible the glade file doesn't need to be changed afaik. Only the Python script needs adaption. I can post a Python2 version tomorrow.
Please Log in to join the conversation.
3 years 10 months ago #258741
by HansU
Replied by HansU on topic Spindle Load feedback in Gmoccapy
Apparently I was wrong, sorry. The Glade file needs a change. The line
has to be changed to
to work with Gtk2.
Moreover, there is no Python file needed at all for that simple use case. Sorry again for that complication.
So the attached Glade file should work for both LinuxCNC 2.8 and 2.9 with this configuration:
You will see a float pin named spindle_load.bar_spindle_load.
The scale is 1, so setting this pin to 100 will display 100.
Code:
<requires lib="gtk+" version="3.0"/>
Code:
<requires lib="gtk+" version="2.0"/>
Moreover, there is no Python file needed at all for that simple use case. Sorry again for that complication.
So the attached Glade file should work for both LinuxCNC 2.8 and 2.9 with this configuration:
Code:
EMBED_TAB_NAME = Spindle_load
EMBED_TAB_LOCATION = box_custom_4
EMBED_TAB_COMMAND = gladevcp -x {XID} spindle_load.glade
You will see a float pin named spindle_load.bar_spindle_load.
The scale is 1, so setting this pin to 100 will display 100.
Please Log in to join the conversation.
3 years 10 months ago #258756
by HansU
Replied by HansU on topic Spindle Load feedback in Gmoccapy
For getting the Glade catalog for Gtk2 (LinuxCNC 2.
working, following needs to be done:
First check with
the directory of the glade catalog.
For me it was
Then get the "lib/python/gladevcp" directory from the source code repository ( github.com/LinuxCNC/linuxcnc/tree/2.8/lib/python/gladevcp )
and copy all files from that directory to the above mentioned directory.
For example
This worked at least for me for glade-gtk2.
First check with
Code:
pkg-config --variable=catalogdir gladeui-1.0
For me it was
Code:
/usr/local/share/glade3/catalogs
Then get the "lib/python/gladevcp" directory from the source code repository ( github.com/LinuxCNC/linuxcnc/tree/2.8/lib/python/gladevcp )
and copy all files from that directory to the above mentioned directory.
For example
Code:
git clone -b 2.8 https://github.com/LinuxCNC/linuxcnc.git --depth 1
cd linuxcnc/lib/python/gladevcp
sudo cp -r * /usr/local/share/glade3/catalogs
This worked at least for me for glade-gtk2.
Please Log in to join the conversation.
Time to create page: 0.396 seconds
