simulation too slow....experts' view needed

1 view (last 30 days)
Harry_108
Harry_108 on 6 Jul 2015
Commented: Steven Lord on 6 Jul 2015
Hi Experts,
Although I have tried all the tricks and tips to improve the simulink simulation speed, all my efforts went in vain.
Well the problem is as follows:
I have a simulink model of a microsensor. Which runs fairly fast with its fairly simple test bench with variable step continuous solver.
I have a simulink model of a Digital signal processing (DSP) ASIC model which involves ADCS, CIC filters, PID controllers, HP, BP, LP filters, which works with 32MHz. It runs fairly fast with its own test bench (singals from the microsensor replaced with a sine wave generator block) with fixed step solver.
At the end of respective simulations, both the models produced expected results.
But when I connect the microsensor simulink model with the DSP ASIC model, the simulation is enormously slow --> to run 1 microsecond, simulation takes 5 real time seconds. That means in order to run simulation only for 1 secs, it would take approx 2 real time months. which is impractical.
I have tried replacing microsensor simulink model with corresponding S-mex function and putting rate transition blocks at the output of the microsensor or at the input of the DSP ASIC block.
nothing helped me.
do you have any expert comments ?
thanks in advance.
Harry
  1 Comment
Steven Lord
Steven Lord on 6 Jul 2015
Apply some of the techniques described in the Performance section of the documentation for Simulink® to identify particular bottlenecks, then attempt to optimize those bottlenecks? If that doesn't provide you with sufficient performance improvement, contact Technical Support and ask for assistance in optimizing your model.

Sign in to comment.

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!