Exectuing simulink model that referres to workspace variables with the batch command
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello community,
I have created a simulink model with many parameters that are fed into the model from my Workspace. I simply created a variable in my Matlab base workspace and called it within a simulink block. Now I want to run this model as a batch Job:
j = batch('script');
with script being a simple script with one line:
sim('model', time);
but the exectuion always fails with errors evaluating Parameters. In my understanding the batch Job doesn't have the necessary variables from my workspace. Is there a way to solve this problem?
The reason why I do this is because I have the parpool tool box and a couple of different simulink models I want to run simultaneously (to save time and make all cores work).
thanks for your help already!
Sascha
댓글 수: 0
답변 (1개)
Rahul Kumar
2018년 9월 1일
batch supports a Workspace option which could be used to specify workspace variables. If you want to use parallel computing R2017a introduced the parsim command which makes it extremely easy to run parallel simulations and provides options to transfer variables
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!