I have a reference model that uses global Simulink parameters declared in the base workspace and after creating a protected model from it, I get the following error when trying to simulate the model from a function with different values for the Simulink parameters:
"One or more global variables used by protected model are incompatible with the variables that existed when the model was created."
Why do I get this error?
Best Answer