lauch simulink simulation from windows command prompt
    조회 수: 18 (최근 30일)
  
       이전 댓글 표시
    
Hi guys, 
My goal is to run a simulink model from the windows command prompt. I have the 2019b version of matlab. I have  a script where I use the sim('model_name')  command, When I try running the script from the command prompt, with the following command line :  matlab -nosplash -noFigureWindows -r "try; run('C:\Path_To_Script\ScriptName.m'); catch; end; quit"
It seems that matlab tries to launch simulink and gets stuck in "initializing" state. 
I tried to run the script directly from matlab and it works properly. 
Do you have any idea why idea why it does not work ? Should the be a command line to open/launch simulink prior to the command line to run the script ?
Thanks a lot for your time !
댓글 수: 0
답변 (1개)
  Priyanshu Mishra
    
 2020년 4월 29일
        Hi Matthieu,
Please refer to the following link. This might help you
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!