Data in controller widget out-of-synch with system
Description
In SysExplorer
, data in controller widgets are initialized with the values contained in the JSON template file, if any.
These values may differ from actual values of system variables. However, all other widgets (geometry, data, structure, etc.) use current system values.
Moreover, if a data controller contains more than one variable, changing one variable and re-running the model will not synch the other variables, which is very misleading.
For example, if the controller contains x
and y
, and x
is changed, the value of system.x
will be updated, but system.y
will keep its current value, which may differ from the value shown in the controller.
Possible solutions
-
Force controller values to actual system values at
SysExplorer
start. -
Force system values to template values. In case of differences, call
system.run_drivers()
atSysExplorer
start.
Solution 1 is probably a bit better, as it is understood the dashboard shows the system in its current state. In this case, recording values in the template file appears to be unnecessary.