is it possible to generate multithread code from simulink model?

13 ビュー (過去 30 日間)
Puran
Puran 2013 年 1 月 19 日
my intention behind this question is that i have to create simulink model which performs multitasking simulation & generate multithreaded code using real time workshop & then building,compiling & deploy on actual target.Thanks in advance.

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 19 日
In simulink you can run several blocks in parallel, that means you can do what you are asking. In real time, that will depend on the number of tasks and the speed of your procesor.
  5 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 21 日
You have just to connect those blocks. For code generation, you have just to do it for one model (your model)
Puran
Puran 2013 年 1 月 22 日
thanks...,i want to know that the code generated by multitasking model is it multithreading or it stays single thread.

サインインしてコメントする。


TAB
TAB 2013 年 1 月 21 日
Find the below page on your simulink coder documentation
Simulink Coder >> User's Guide >> Model Architecture and Design >> Modelling >> Scheduling
It describes how to use different tasks in the same model and configure the model in multitasking mode.
  1 件のコメント
Puran
Puran 2013 年 1 月 21 日
thanks...,i want to know that the code generated by multitasking model is it multithreading or it stays single thread.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMulticore Processor Targets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by