İnstall glade

More
2 years 2 months ago #308026 by Moutomation
İnstall glade was created by Moutomation
I may become a Linuxcnc expert or even a developer in the future. Becoming a developer can be very difficult, but it is not impossible. I especially appreciate the Aciera. It takes a lot of effort and time. I want to be a useful person like him. I think I will work hard and make serious contributions to this forum in the future, I am currently in the learning phase. As a first step, I started making changes to gmoccapy. But there is a problem.
I installed Glade using the sudo apt-get glade command but I think this is a version issue, for example I can't see the jog keys as I should. Can you guide me on this issue? (Don't laugh at me, maybe I can succeed one day on how to become a developer with this inexperience)

Please Log in to join the conversation.

More
2 years 2 months ago #308029 by Aciera
Replied by Aciera on topic İnstall glade
On a locally built (RIP) installation open a terminal and navigate to your linuxcnc installation folder:
Code:
source scripts/rip-environment

then to start glade:
Code:
glade

once glade has started, check if the linuxcnc glade widgets have been imported (ie widgets named 'HAL_....')

Please Log in to join the conversation.

More
2 years 2 months ago #308117 by Moutomation
Replied by Moutomation on topic İnstall glade
 There are not all pages, there is only 1 page and it looks like the following. Do you think this is normal?  
 

Attachment not found

 
 

Attachment not found

Please Log in to join the conversation.

More
2 years 2 months ago #308118 by Aciera
Replied by Aciera on topic İnstall glade
Ah, yes that is normal. Those spaces get filled dynamically during run time.
You have to keep in mind that a complex GUI like Gmoccapy has a lot of python code in the background that  interacts with the glade panels.
[edit]
Which also means that quick changes to the glade panels can easily lead to errors from the python code because it may be missing glade objects.

Please Log in to join the conversation.

More
2 years 2 months ago #308120 by Moutomation
Replied by Moutomation on topic İnstall glade
Thank you very much. I understand very well. For example, can I place a box on this page where I can enter a decimal number? and a button
For example, the value I will write in this box will be saved in #100 in the g code file. Is this possible?

Please Log in to join the conversation.

More
2 years 2 months ago #308129 by Aciera
Replied by Aciera on topic İnstall glade
I would suggest creating a user panel which allows adding elements to various predefined areas of gmoccapy without actually modifying the gui code:
linuxcnc.org/docs/html/gui/gmoccapy.html...tabs-and-side-panels

Here is an example:
1. Unzip the attached folder and save the folder 'gladevcp' containing the files 'testpanel.hal' and 'testpanel.ui' into your machine config folder

2. Add this to the [DISPLAY] section of your ini file:
Code:
EMBED_TAB_NAME= Your_Tab_name EMBED_TAB_COMMAND= halcmd loadusr -Wn testpanel gladevcp -c testpanel -H ./gladevcp/testpanel.hal -x {XID} ./gladevcp/testpanel.ui EMBED_TAB_LOCATION = box_cooling

You should now see a custom panel and its halpins in Gmoccapy:
 

Attachment not found

Please Log in to join the conversation.

More
2 years 2 months ago #308131 by Aciera
Replied by Aciera on topic İnstall glade
Forgot:
to access the values in Gcode (eg the value 9.2 above) you can use:
Code:
#<_hal[testpanel.hal_spinbutton1-f]>

Important notice:
I strongly recommend to use a quebuster command like 'M66 E0 L0' right before reading a hal pin in Gcode otherwise the readahead may read the pin much before code execution gets to that line.

Please Log in to join the conversation.

More
2 years 2 months ago #308151 by Moutomation
Replied by Moutomation on topic İnstall glade
Thank you very much

Please Log in to join the conversation.

More
2 years 2 months ago #308263 by pawel77
Replied by pawel77 on topic İnstall glade
With 2.9 I have problem to open glade files done in 2.8.4 version, they request 3.8 while 3.4 glade is available. 
In synaptic manager gladevcp is not available. 

thanks for any help

Please Log in to join the conversation.

More
2 years 2 months ago #308269 by Aciera
Replied by Aciera on topic İnstall glade
Usually you can simply click 'OK' and save the file.

Please Log in to join the conversation.

Time to create page: 0.409 seconds
Powered by Kunena Forum