필터 지우기
필터 지우기

Matlab Compiler And Simulink

조회 수: 9 (최근 30일)
Jinhuai Lin
Jinhuai Lin 2011년 6월 24일
댓글: shalaka sitre 2021년 3월 27일
Hi, I am trying to use matlab compiler to create a standalone application out of my GUI. Unfortunately in the GUI I must use 'sim' and 'simset' to call some simulink model. Does anyone have an idea how to work this out?
Thanks a lot! Jerry

답변 (6개)

Guy Rouleau
Guy Rouleau 2020년 4월 22일
In R2020a, a new product Simulink Compiler has been released to address this exact use case. See an example here.

Seth Popinchalk
Seth Popinchalk 2011년 6월 24일
편집: John Kelly 2015년 2월 26일
The SIM and SIMSET command can not be called from the MATLAB Compiler (This is documented here). To build a standalone GUI that runs your simulation, you need to make the simulation standalone, then build the GUI to run that.
This can be accomplished by using Simulink Coder (or Real-Time Workshop in earlier released) to build a standalone executable. This executable can be called by the GUI to run. The outputs of the simulation executable can be loaded by the GUI and analyzed.
A similar question was asked to Technical Support, and they published a solution: How can I create a standalone executable of a MATLAB GUI which calls a Simulink model?
  댓글 수: 5
Kaixiang Wang
Kaixiang Wang 2018년 7월 7일
Maybe this is the link people are talking about:
shalaka sitre
shalaka sitre 2021년 3월 27일
my simulink model onl completes 60% compilation and shows done.
how shopuld i complete it 100%?

댓글을 달려면 로그인하십시오.


Chirag Gupta
Chirag Gupta 2011년 6월 24일
The sim command is an unsupported command for the MATLAB Compiler and cannot be compiled.
The general strategy in such cases is to you use Simulink Coder to generated an executable out of the Simulink model which you can then control from the GUI.

Jinhuai Lin
Jinhuai Lin 2011년 6월 24일
Thank you, Chirag Gupta and Seth Popinchalk! But how can I change the simulation parameters such as solver and step size etc?
  댓글 수: 1
giovanni mazzuto
giovanni mazzuto 2015년 1월 29일
please, could you help me?

댓글을 달려면 로그인하십시오.


giovanni mazzuto
giovanni mazzuto 2015년 1월 29일
Hi. In this day, I'm having the same problem. I found this thread perfectly relevant to my problem. Obviously, there is another problem. All of the proposed links are not available. :( Could you help me, please.
warmest regards GM
  댓글 수: 1
Mark Tom
Mark Tom 2015년 5월 9일
HI,i have a same problem ,are you solve it ? if you've solved it ,would you like to help me ???my email :aiguozheland@163.com,thank you very much

댓글을 달려면 로그인하십시오.


igdbak
igdbak 2018년 2월 12일
Is it possible to call Simulink.saveVars function? In case it is not, how could I call this function from a standalone application?

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by