Setting Hal parameters

More
16 Oct 2021 04:43 #223277 by slammers
I would like to change a Hal components parameter through a Python script in my Glade VCP. Is this possible?

I would like to change one of my Mesa stepgen scale parameters and since you can not connect a signal to a parameter (as far as I know) I have been struggling on how to do this. My workaround has been to add a scale component to the stepgen velocity input and connect a signal to its gain pin. But I would rather change the stepgen scale parameter directly.  

 

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

More
16 Oct 2021 07:19 #223281 by cmorley
Replied by cmorley on topic Setting Hal parameters
Yes, using the HAL python module's function set_p you should be able to do that.
linuxcnc.org/docs/2.8/html/hal/halmodule.html#_set_p

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

Moderators: HansU
Time to create page: 0.061 seconds
Powered by Kunena Forum