is it possible to generate multithread code from simulink model?
显示 更早的评论
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
2013-1-19
0 个投票
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 个评论
Puran
2013-1-19
Azzi Abdelmalek
2013-1-19
编辑:Azzi Abdelmalek
2013-1-19
I don't know what multi thread means, I tried to use a translator (english-french), but it don't give anything. From your question I 've understood that you want to do multiple tasks, I think you have just to make your different blocks in the same model. In the below model, there are two independent tasks

Puran
2013-1-21
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
2013-1-22
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Multicore Processor Targets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!