How to deploy a GUIDE designed application with simulink linmod function
Show older comments
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",
URL: https://ww2.mathworks.cn/help/slcompiler/ug/deploy-mass-springr-app-with-simulink-compiler.html
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
Answers (1)
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!