I am trying to set the value of a parameter that stays inside of a simscape block, using a web app aplication that was deployed on the server using MATLAB web app server.
The documentation says that the following Simulink functions and classes are deployable:
- Simulink.SimulationInput and its method setVariable
I am using setVariable which allow me to set variables for a simulation through SimulationInput object.
SimInp = SimInp.setVariable('Tetha',app.tethaSpinner.Value);
In this way, I can modify certain parameters of the model but when the parameter is inside a Simscape block (elecrical , multibody, etc…) I am not able to modify the parameter anymore.
This problem only happens when I have to configure the application for deployment on the server using:
So, I was wondering if the problem is that the method SetVariable does not works with Simscape's blocks but only with Simulink Classic blocks.
Any suggestion would be great