- Posts: 541
- Thank you received: 0
FlexGui - function load_file
1 year 2 weeks ago #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?
Please Log in to join the conversation.
1 year 2 weeks ago #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
gnipsel.com/linuxcnc/flexgui/parameters.html#setting-parameters
JT
Please Log in to join the conversation.
1 year 2 weeks ago #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
JT
Please Log in to join the conversation.
1 year 2 weeks ago #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
Attachment not found
Please Log in to join the conversation.
Time to create page: 0.080 seconds
