İnstall glade

More
25 Aug 2024 18:44 - 25 Aug 2024 18:47 #308622 by Aciera
Replied by Aciera on topic İnstall glade
Shouldn't be much different from a hal_button,
open panel in glade add 'HAL_ToggleButton' and assign some ID (eg 'hal_togglebutton1') to it, save
Start config, open 'Halshow' and the pin should be visible as 'testpanel.hal_togglebutton1'
Last edit: 25 Aug 2024 18:47 by Aciera.

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

More
26 Aug 2024 07:13 - 26 Aug 2024 07:42 #308670 by Moutomation
Replied by Moutomation on topic İnstall glade
Normal buttons were created, but I copied these buttons from the 6 button examples. That's probably why it works. I think the reason why the toggle buttons are not visible is that I cannot add it to the configuration line you mentioned.
Secondly, I can change the ramps and limits from the gui, but no matter what I did, I could not change the calibration value.
There's probably something wrong somewhere
example:
testpanel3.hal:
net xvl ini.xmax_accelaration <=  testpanel3.hal_xacc-f it's work
net xmul cia402.0.pos-scale <= testpanel3.hal_xmul-f it's doesn't work
net cia402.0.pos-scale <= testpanel3.hal_xmul-f it's doesn't work
setp cia402.0.pos-scale testpanel3.hal_xmul-f it's doesn't work
sets cia402.0.pos-scale testpanel3.hal_xmul-f it's doesn't work
Last edit: 26 Aug 2024 07:42 by Moutomation.

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

More
26 Aug 2024 07:20 - 26 Aug 2024 07:21 #308672 by Aciera
Replied by Aciera on topic İnstall glade
Not sure what you are doing:

 

 

 
Attachments:
Last edit: 26 Aug 2024 07:21 by Aciera.

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

More
26 Aug 2024 07:44 #308673 by Moutomation
Replied by Moutomation on topic İnstall glade
I made a mistake by adding gtktooglebutton instead of hal_toogle, thank you very much.

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

More
26 Aug 2024 09:17 - 26 Aug 2024 09:27 #308683 by Moutomation
Replied by Moutomation on topic İnstall glade
 I tried many things but I can't change cia402.0.pos-scale

   
Attachments:
Last edit: 26 Aug 2024 09:27 by Moutomation.

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

More
26 Aug 2024 10:58 - 26 Aug 2024 13:06 #308690 by Moutomation
Replied by Moutomation on topic İnstall glade
It changes when I press the Set key, but I cannot connect it to a variable in the gui.

I think it is not possible to change this without going into the hal file. I tried every way I could think of but it didn't work.

I bound all other settings to variables. However, since this value is brown, I think the status file cannot be intervened. Does this color mean that this pin cannot be intervened?
Last edit: 26 Aug 2024 13:06 by Moutomation.

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

More
26 Aug 2024 14:35 #308708 by Aciera
Replied by Aciera on topic İnstall glade
Brown means that it is a hal parameter.
linuxcnc.org/docs/devel/html/hal/halshow.html
The following user(s) said Thank You: Moutomation

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

More
26 Aug 2024 17:13 #308719 by Moutomation
Replied by Moutomation on topic İnstall glade
I'm trying to do what the manual says, but I'm getting errors. I can't connect ddt to the testpanel, nor can I connect it to ci402.0.pos-scale. It seems difficult to do this for someone at my level.
 
 
Attachments:

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

More
26 Aug 2024 17:52 #308722 by Moutomation
Replied by Moutomation on topic İnstall glade
Once I get this done, my project will be completely finished. This is the last issue I'm stuck on.

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

More
26 Aug 2024 17:57 #308724 by Aciera
Replied by Aciera on topic İnstall glade
Since 'ci402.0.pos-scale' is a hal_parameter and not a hal_pin you cannot connect it to other hal_pins. You can only set them in using 'setp'.

As for 'ddt.0.out' that is an OUT hal_pin so it can only be connected to an IN hal_pin, so in your panel you can only connect it to something like a HAL_label to display the value.

linuxcnc.org/docs/devel/html/hal/intro.html

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

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