Siumlink functionality (load_system) not supported by Compiler

조회 수: 4 (최근 30일)
Mehdi
Mehdi 2018년 5월 31일
편집: TAB 2018년 5월 31일
Hello,
I have made an executable using MATLAB compiler but it doesn't run properly. A part of my code runs a SIMULINK model programmatically using load_system and sim as shown here:
load_system('MySimModel')
set_param ('MySimModel', 'StartTime', num2str(ti), 'StopTime', num2str(tf))
options = simset('SrcWorkspace', 'current');
sim ('MySimModel', [], options)
Apparently load_system and sim are not supported by MATLAB Compiler. What's the workaround to resolve this issue? I have to use an executable file of my code on machines on which MATLAB is not installed. Thank you for your help.

답변 (1개)

TAB
TAB 2018년 5월 31일
편집: TAB 2018년 5월 31일
Simulink models works only with Simulink engine which runs under Matlab.
Simulink is not provided with Matlab Runtime Environment. So simulink related functions won't work with your compiled Matlab code.

카테고리

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

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by