İnstall glade

More
26 Aug 2024 18:43 - 26 Aug 2024 18:48 #308728 by Moutomation
Replied by Moutomation on topic İnstall glade
It is not possible to change a parameter in the hal file from the gui. Is it true?
Last edit: 26 Aug 2024 18:48 by Moutomation.

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

More
27 Aug 2024 06:05 #308766 by Aciera
Replied by Aciera on topic İnstall glade
To set a parameter through the gui you can simply add a function to your handler.

1. add the function 'on_value_changed' to your panel handler script like this (you will need to change the parameter name form 'near_speed.difference' to whatever parameter you want to change):


 

2. Open your panel in glade and add 'on_value_changed' as handler for the 'value_changed'  signal to your widget:

 

The parameter value should now change with the value of the panel widget:
 
 
Attachments:
The following user(s) said Thank You: Moutomation

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

More
27 Aug 2024 17:19 - 27 Aug 2024 17:22 #308831 by Moutomation
Replied by Moutomation on topic İnstall glade
Thank you very much for your answer. I will try, but all day today I tried to change a value in the gladevcp panel from the g code content. I researched a lot, tried a lot, but I was not successful.
example
test.ngc:
#<_hal[testpanel.hal_label]> = 1.0 it's doesn't work
#<testpanel.hal_label> = 1.0 it's doesn't work
#<_hal[testpanel.hal_label]> = #100 it's doesn't work
#100 = #<_hal[testpanel.hal_spinburon-fl]> I think its work

There is no problem reading the variable, but I could not manage to change the value of the variable.
Last edit: 27 Aug 2024 17:22 by Moutomation.

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

More
27 Aug 2024 18:23 #308840 by Moutomation
Replied by Moutomation on topic İnstall glade
When I add this code gladevcp is not displayed in gmoccapy.

 
Attachments:

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

More
27 Aug 2024 18:35 #308843 by Aciera
Replied by Aciera on topic İnstall glade
This is from the documentation:

#<_hal[HAL item]> Allows G-code programs to read the values of HAL pins Variable access is read-only, the only way to set HAL pins from G-code remains M62-M65, M67, M68 and custom M100-M199 codes. Note that the value read will not update in real-time, typically the value that was on the pin when the G-code program was started will be returned. It is possible to work round this by forcing a state synch. One way to do this is with a dummy M66 command: M66E0L0

www.linuxcnc.org/docs/html/gcode/overvie...gcode:ini-hal-params

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

More
27 Aug 2024 18:38 #308844 by Aciera
Replied by Aciera on topic İnstall glade

When I add this code gladevcp is not displayed in gmoccapy.

Start your config from a terminal and check the output for errors.
The following user(s) said Thank You: Moutomation

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

More
27 Aug 2024 18:44 #308845 by Moutomation
Replied by Moutomation on topic İnstall glade
I read it many times, but I did not understand how to send the value inside #100 to testpanel.label with m6x codes. I made the digital inputs and outputs with motion pins and I was able to understand it.

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

More
28 Aug 2024 04:40 - 28 Aug 2024 04:43 #308863 by Moutomation
Replied by Moutomation on topic İnstall glade
Hello,

 
 

sorry this is not this there are 2 configurations
 
Attachments:
Last edit: 28 Aug 2024 04:43 by Moutomation.

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

More
28 Aug 2024 04:48 #308864 by Moutomation
Replied by Moutomation on topic İnstall glade
I created the above configuration just to see the embedded pages, but now I have deleted it and when I run the linuxcnc -l command, it says that it cannot find my actual configuration.

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

More
28 Aug 2024 04:51 - 28 Aug 2024 04:55 #308865 by Moutomation
Replied by Moutomation on topic İnstall glade
Since I deleted the configuration I do not use, it cannot find that configuration. How can I run the configuration I actually use with linuxcnc -l?

It's looking for sim.gmoccapy, my configuration name is bluecad
Last edit: 28 Aug 2024 04:55 by Moutomation.

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

Moderators: newbynobiHansU
Time to create page: 0.183 seconds
Powered by Kunena Forum