Among the settings for the ambient block the source for weather data can be selected from a drop-down menue. Default option is "from file". All weather data channels can easily be changed to "from input" except for "relative humidity".
I figured the problem is, that the connect statement for the option "from input" is not valid for phi, because phi is not a port within the system (like all other weather channels). It is rather used to compute the value for x, which is then feed to a port. The fix seems obvious at first: Use an assignment for phi if data is feed through the input rather than read from file. Unfortunately this doesnt work if data is read from file. The conditional removal of an input (as is conducted if "from file" is selected for phi), leads to an error if this input is part of assignment (even if that assignment is conditionally not executed as well). It doesnt lead to an error if the input is part of the connect statement.
Among the settings for the ambient block the source for weather data can be selected from a drop-down menue. Default option is "from file". All weather data channels can easily be changed to "from input" except for "relative humidity".
I figured the problem is, that the connect statement for the option "from input" is not valid for phi, because phi is not a port within the system (like all other weather channels). It is rather used to compute the value for x, which is then feed to a port. The fix seems obvious at first: Use an assignment for phi if data is feed through the input rather than read from file. Unfortunately this doesnt work if data is read from file. The conditional removal of an input (as is conducted if "from file" is selected for phi), leads to an error if this input is part of assignment (even if that assignment is conditionally not executed as well). It doesnt lead to an error if the input is part of the connect statement.