MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by muhammad akhtar
on 17 Jan 2012

hi I am facing a problem in simulink that the simulation runs very fast, however I want to run it in real time. Let me elaborate my point. Actually I want to run the simulation such that only one second passes in the simulation when one second passes in the real world but right now the simulation time is dependent upon my processor speed. Waiting for your replies. SALMAN

*No products are associated with this question.*

Answer by Walter Roberson
on 17 Jan 2012

Accepted answer

http://www.mathworks.com/matlabcentral/fileexchange/3175-real-time-blockset-7-1-for-simulink

http://www.mathworks.com/matlabcentral/fileexchange/29107-real-time-pacer-for-simulink

## 2 Comments

## HidayahHilman

Direct link to this comment:http://in.mathworks.com/matlabcentral/answers/26276#comment_64012

I am working with the same thing as you. I want to ask you why exactly you have to slow down your simulation? Do you recalculate something while the simulation slow down?

## muhammad akhtar

Direct link to this comment:http://in.mathworks.com/matlabcentral/answers/26276#comment_64729

First of all sorry to reply you so late.

Actually I am using simulink model to send output to some other program which forces me run my model in realtime

regards