Page 1 of 1
COFE can't refresh parameter dialog
Posted: 19 August 2014, 03:21
by bcbooo
Jasper,I want to change the value of "pressureRatio" during the "Calculate" function, but I find COFE can't refresh the "Edit" dialog, as the following.

- Untitled.jpg (199.62 KiB) Viewed 11081 times
The pressureRatio's initial value is "2", and during the calculation I change it into "9.01", but the pressureRatio's value on Edit dialog is still "2" not "9.01". It's well done in Aspen Plus, so maybe it's a bug in COFE, COFE forgets to refresh the parameter dialog after calculation.
Thanks.
Re: COFE can't refresh parameter dialog
Posted: 19 August 2014, 06:21
by jasper
My guess is that you are solving in a background thread (edit, preferences, allow for solving in a background thread is checked) and that you have not yet implemented persistence to store the parameter values. So the new parameter value lives in the background thread, then the unit gets saved and reloaded in the foreground thread, and the parameters do not get restored. Correct?
You can simply test this hypothesis by not solving in a background thread. If indeed this solves your issue, check why Save/Load does not restore your parameter value...
Re: COFE can't refresh parameter dialog
Posted: 19 August 2014, 06:22
by jasper
Note that you will see quicker results if you add the parameter in a parameter report inside the flowsheet or in the Watch window. Then you do not have to actually go into the dialog every time.
Re: COFE can't refresh parameter dialog
Posted: 19 August 2014, 06:44
by bcbooo
Jasper, I have gotten it!
I don't implement the persistence.