How to deploy a GUIDE designed application with simulink linmod function

Dear all:
I used GUIDE to design several GUI interfaces for a vibration simulation program in MATLAB 2007b.
In this application, a relative complex simulink is applied to get the state model/function (A B C D) by using the linmod function.
The program run smoothly before depolyment.
After finishing the code, my company buy the MATLAB 2020b(Simulink coder and Simulink compiler) to help me deploy this software to other users.
By studing the toutial "Deploying A Simulation App with Simulink Compiler",
I found that, the key command to deploy a simulink is simulink.compiler.configureForDeployment(simInp).
After setting the neccessary variables by either simInp.setvariable(var,value), or asignin('base', var), it should be ready to run the linmod command.
sim_Inp_passive=Simulink.SimulationInput('PassiveModelSIngle_sim');
sim_Inp_passive=simulink.compiler.configureForDeployment('PassiveModelSIngle_sim');
[A,B,C,D]=linmod('PassiveModelSIngle_sim');
It won't work. The building process give error for this part.
Could you please give me some suggestion on thsi topic?
Thanks a lot.
CHEN

Respuestas (1)

ハオ チン
ハオ チン el 19 de Nov. de 2020
Editada: ハオ チン el 19 de Nov. de 2020
Dear all:
I would like to add another question about getting mathmatical formula from simulink model.
In the last question, I append a simulink model. Some of the blocks'value are variables needed to be defined. However, If I could get the state equation ABCD represented by these variables, then it will save me from deploying problems caused by linmod.
Any suggestion to get analytical mathmatical expression from simulink model?
Thanks in advance.
Sincere,
Chen

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Preguntada:

el 19 de Nov. de 2020

Editada:

el 19 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by