Is it possible to "turn off" parts of a model?

조회 수: 3 (최근 30일)
Raphael Stöckner
Raphael Stöckner 2021년 1월 19일
답변: Fangjun Jiang 2021년 1월 20일
I am programming a TI C2000 (Delfino F2833) with Embedded Coder (TI support package). The task is to control a robot and the program I wrote overhelms the processor.
But the robot does not need to execute every task at the same time. If I could tell Matlab that it has to execute in the first period of time just some subsystems and in a subsequent period other ones, I could save a lot of computational power.
Is something like this possible in Matlab? I already thought about funcion-call subsystems, but I am not sure if this is the optimal solution.

채택된 답변

Fangjun Jiang
Fangjun Jiang 2021년 1월 20일
Try to utilize the "Initialize Function" block from Simulink/User-defined functions library

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Embedded Coder에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by