I have a script (thanks peng_liu) that puts the parameter estimates Max and k from nonlinear fit into table variables with the same names, which I planned to use in further calculation. It seems creating the table variables makes the nonlinear fit plot stall.
- the first time the script is run, the table variables Max and k are created from the parameters Max and k from nonlinear fit. If already existing they are just set to new values.
- the nonlinear fit plot is so far working as excepted, with the line of fit moving when I manually adjust the parameters Max or k in the nonlinear window
- when the script is run after the table variables have been created, the nonlinear fit plot gets stuck/static, and there is no reaction when manually adjusting the parameters Max or k
- when I remove the table variables Max and k, a new run of the script creates a functioning nonlinear fit again.
What to do?
Update/solved?: it seems if I rename the table variables Max and k to e.g. Max2 and k2 after they have been created by the script, nonlinear fit works as expected/does not lock up, and are still being set to estimated parameter values by the script. I have no idea why.
Update2: when I save, close and open up the data table again, the script once again creates Max and k (disregarding the renamed Max2 and k2), and the problem with the locked up nonlinear fit is back.