FlexGui - function load_file

More
12 Oct 2025 20:55 #336348 by MaHa
FlexGui - function load_file was created by MaHa
A push button with function load_file, works fine. In my case it is used from an input panel, where parameters can be altered. If the file did run already and is loaded, then alter some values and hit the button 'run file', it is not updating with new parameters. So i need to reload the file to update with new parameters. Is there a way to always reload the file, when the function load_file is used?

 
The following user(s) said Thank You: JT

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

More
14 Oct 2025 11:41 #336421 by JT
Replied by JT on topic FlexGui - function load_file
Are the parameters altered using set parameter?
gnipsel.com/linuxcnc/flexgui/parameters.html#setting-parameters

JT

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

More
14 Oct 2025 11:51 #336422 by JT
Replied by JT on topic FlexGui - function load_file
Can you explain a bit more, I've created a file with parameters and changed them and ran the file and the parameters are updated without loading the file or reloading the file.

JT

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

More
14 Oct 2025 22:07 #336456 by MaHa
Replied by MaHa on topic FlexGui - function load_file
At the moment i am testing with hal pins, because of the option 'start from current position' . To have the correct preview, it only worked with hal. The loaded file is just a translation file to call the subroutine. (The subroutine can be used standalone, in gcode or like here from the ui) It is working, i just have to rmember to reload, when parameter changed. Still pending, set a parameter eg  #<_RUNONCE> , which allows the routine to run only once, then have to start from  the panel with known parameter for further use. What i have done so far is mostly working as desired. The sidepanel is a stacked widget with 16 layers when completed

 
 
Attachments:

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

Time to create page: 0.275 seconds
Powered by Kunena Forum