필터 지우기
필터 지우기

How to create a non-blocking "slave" task?

조회 수: 2 (최근 30일)
Danylo Malyuta
Danylo Malyuta 2016년 7월 8일
I am using Simulink R2016a and I have a main model that is running at 200 Hz. I also have a function (call it function X) which takes variable time to execute, but in the range of 1-2 seconds. I would like to have the main model issue a call to function X, which will run function X in parallel. Once function X is finished, I want it to issue a call back to my main model to tell it that it is finished, at which point my model can use its results. All the while, I want to guarantee that my main model continues running at 200 Hz, regardless of how long function X takes to run.
How can this be achieved? An example Simulink model would be greatly appreciated. Thank you!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by