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 comentarios

Fangjun Jiang
Fangjun Jiang el 20 de Sept. de 2011
"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
Mohd Hazny Aziz el 21 de Sept. de 2011
I want to used Simulink For iteration block in real-time process. Is it possible??..meaning to obtain or display real-time data

Iniciar sesión para comentar.

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 21 de Sept. de 2011

0 votos

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 comentarios

Mohd Hazny Aziz
Mohd Hazny Aziz el 22 de Sept. de 2011
I actually run on WinCon server that provide the RTOS. In my understanding, when it run on RTOS it provided certain sampling time for any model in Simulink.
I want know how we want to observe which block in our model will be process first.Because i afraid that the For iteration block is run first before it perform other operation first
Fangjun Jiang
Fangjun Jiang el 22 de Sept. de 2011
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
Mohd Hazny Aziz el 22 de Sept. de 2011
try to see this link http://www.quanser.com/net/industrial/systems_and_products/Prod_Wincon.aspx.

Iniciar sesión para comentar.

Categorías

Más información sobre Multicore Processor Targets en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 20 de Sept. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by