Spindle Load feedback in Gmoccapy

More
4 years 2 months ago #250855 by zz912
I see it:
 
I tested it, and it works.

Could you send your config?

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

More
4 years 2 months ago #250864 by CNC_Tux
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

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

More
3 years 10 months ago #258701 by piflixe
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!

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

More
3 years 10 months ago #258702 by zz912
I have same problem.

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

More
3 years 10 months ago #258716 by HansU
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 or Create an account to join the conversation.

More
3 years 10 months ago - 3 years 10 months ago #258741 by HansU
Apparently I was wrong, sorry. The Glade file needs a change. The line 
Code:
<requires lib="gtk+" version="3.0"/>
has to be changed to
Code:
<requires lib="gtk+" version="2.0"/>
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:
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.
Last edit: 3 years 10 months ago by HansU.

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

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