Simulink For block in Real time
이전 댓글 표시
Assalamualaikum & Hi all,
I just want to know, is it possible to use Simulink For block in real time process?
댓글 수: 2
Fangjun Jiang
2011년 9월 20일
"use Simulink For block in real time process" or "use Simulink block for real time process"? What do you mean "in real time process"?
Mohd Hazny Aziz
2011년 9월 21일
답변 (1개)
Fangjun Jiang
2011년 9월 21일
0 개 추천
When you run simulation of a Simulink model, it is not in real time. The simulation could be faster or slower than the real time, depending on the size of the model and the power of the computer. Remember, MATLAB/Simulink is running in a Windows OS or Unix OS, which is not RTOS.
If you want to run it in real time, you need to generate C code from the Simulink model using Simulink Coder Toolbox, then compile it for a specific target and run it in that target, which has RTOS.
The For Iteration block is supported for code generation.
댓글 수: 3
Mohd Hazny Aziz
2011년 9월 22일
Fangjun Jiang
2011년 9월 22일
What is WinCon toolbox? Can you provide a link? I can only see Real-Time Windows Target from the Mathworks website.
To see the block execution order, in the Simulink model, click menu Format ->Block Displays ->, check Sorted Order and Execution Context Indicator. All I am saying is that Simulink can show you the execution order. You might need to read the documentation about the "sorted order" if you are not familiar with it before.
Mohd Hazny Aziz
2011년 9월 22일
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!