İnstall glade

More
2 years 2 months ago #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'

Please Log in to join the conversation.

More
2 years 2 months ago #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

Please Log in to join the conversation.

More
2 years 2 months ago #308672 by Aciera
Replied by Aciera on topic İnstall glade
Not sure what you are doing:

 

Attachment not found



 

Attachment not found



 

Attachment not found

Please Log in to join the conversation.

More
2 years 2 months ago #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 to join the conversation.

More
2 years 2 months ago #308683 by Moutomation
Replied by Moutomation on topic İnstall glade
 I tried many things but I can't change cia402.0.pos-scale

 

Attachment not found

 

Please Log in to join the conversation.

More
2 years 2 months ago #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?

Please Log in to join the conversation.

More
2 years 2 months ago #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

Please Log in to join the conversation.

More
2 years 2 months ago #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.
 

Attachment not found


 

Attachment not found

Please Log in to join the conversation.

More
2 years 2 months ago #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 to join the conversation.

More
2 years 2 months ago #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 to join the conversation.

Time to create page: 0.134 seconds
Powered by Kunena Forum