Run matlab command after Simulink code gen is complete?
조회 수: 7(최근 30일)
표시 이전 댓글
Andrew Poissant 2020년 3월 10일
댓글: Andrew Poissant 2020년 3월 16일
I have a Simulink file that I generate code for and build on an Odroid. I want to run another Simulink file on my laptop after the build and load process is complete. To do this, I am using the code below to start the Simulink file. However, I do not know where to put the code so it executes right after the other Simulink file's generated code is built.
댓글 수: 0
Fangjun Jiang 2020년 3월 11일
set_param(model, 'PostCodeGenCommand','pcgScriptName') but I would create a script to call rtwbuild() to generate code and then call sim() to run the simulation since these two tasks don't seem to be related.
댓글 수: 1
Find more on Simulink Coder 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!