Thread Subject: Faster simulink calculations

Subject: Faster simulink calculations

From: Michal

Date: 2 Aug, 2007 19:25:41

Message: 1 of 3

I am modelling quuite big industrial process. How can I make
faster my simulations in simulink. Compilation etc.. any
suggestions will be usefull. Thanks a lot. Mike

Subject: Faster simulink calculations

From: Graham Fletcher

Date: 4 Aug, 2007 19:49:35

Message: 2 of 3

Hi Michal,

If you run your model in "Simulink Accelerator" mode (look
in the help), that should speed it up considerably (it runs
a compiled model, but in an interactive mode).

Alternatively, you could do a proper compilation using Real-
time workshop (RTW) - although you lose the benefit of
interactivity and it's probably not too much faster.

HTH,
Graham.

"Michal " <simulink.faster@mathworks.com> wrote in message
<f8tb3l$h86$1@fred.mathworks.com>...
> I am modelling quuite big industrial process. How can I
make
> faster my simulations in simulink. Compilation etc.. any
> suggestions will be usefull. Thanks a lot. Mike

Subject: Faster simulink calculations

From: Bart Roossien

Date: 5 Aug, 2007 10:45:36

Message: 3 of 3

And besides using the accelerator, you can also improve your
models (just like you can optimise programming code)

A few tips:

- Use Tools -> Profiler to look for bottlenecks in your model.

- Prefer basic blocks over more complex blocks (like Fcn)

- Try to avoid the usage of switches. Most of the time, it
can be replaced with a simple multiplication.

- Only output data to Scopes/workspace/file that you really
need.

- Check 'inline parameters' in the configuration dialog
(unless you have a good reason not to)

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
simulink B. Roossien 5 Aug, 2007 06:50:07
optimisation B. Roossien 5 Aug, 2007 06:50:07
speed Ned Gulley 4 Aug, 2007 17:48:09
simulink Graham Fletcher 4 Aug, 2007 15:50:20
simulink Ned Gulley 2 Aug, 2007 15:40:49
simulink faster Michal 2 Aug, 2007 15:30:23
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com