Why can't I set the value for the model parameter "InvalidFcnCallConnMsg" in Simulink R2022b?

I have a model in Simulink R2019b migrated to R2022b, and I noticed that the command below no longer does anything. Consequently, the simulation ends with an error.
set_param(model, InvalidFcnCallConnMsg, warning)
How can I fix this issue?

 Accepted Answer

Since R2020a, it is not possible to change the value for the parameter "InvalidFcnCallConnMsg." Its value is permanently set to 'error'. Therefore, Simulink will always issue an error diagnostic if the model presents invalid function call connections. That way, connections are ensured to be correctly set, preventing the model simulations from inaccurate results. This behavior change is documented in the release note as follows:
Please follow the directions in the error message and resolve the invalid function call connection. For instance, you can select the option for latching the input port for feedback signals. The following link below points to the documentation page to implement this suggestion.

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!