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
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

Thanks...,please tell me how to generate multithreaded code, i searchd in matlab help file but there is i can't find anything regarding generation of multithreading code.
Azzi Abdelmalek
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
thanks...how to communicate between two task,means suppose i want to taransfer data from first task's block to another task's block.& how to generate code for two task in the same model.
You have just to connect those blocks. For code generation, you have just to do it for one model (your model)
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

thanks...,i want to know that the code generated by multitasking model is it multithreading or it stays single thread.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기

태그

질문:

2013년 1월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by