Matlab Simulink Simulation very slow

Click For Summary
SUMMARY

The discussion centers on the slow simulation performance of a transmission line circuit in MATLAB Simulink, specifically when trying to read the RMS value at the load with an AC source of 132 kV. Users recommend utilizing the MATLAB command-line profiler to diagnose performance issues. The profiler can be activated with the commands "profile on" and "profile off," followed by "profile viewer" to analyze the results. This method may help identify bottlenecks in the simulation process.

PREREQUISITES
  • Familiarity with MATLAB Simulink environment
  • Understanding of transmission line circuit simulations
  • Knowledge of RMS value calculations in electrical engineering
  • Basic command-line operations in MATLAB
NEXT STEPS
  • Learn how to optimize Simulink models for performance
  • Explore MATLAB Profiler features and best practices
  • Investigate techniques for reducing simulation time in MATLAB Simulink
  • Study the impact of AC source parameters on simulation speed
USEFUL FOR

Electrical engineers, MATLAB users, and simulation specialists looking to enhance the performance of their Simulink models.

I_am_learning
Messages
681
Reaction score
16
I tried to solve a simple transmision line circuit using MATLAB simpower system
too_slow.JPG

In this image, Ac source is 132 kv. I want to read rms value at the load.
But unfortunately, the simulation is running very slow, and it is taking forever to even comple the one ac cycle.

Any help please.
 
Physics news on Phys.org
in command-line MATLAB, you can use profiler. Not sure if it works for simulink but you may give it at try. At command line:

>> profile on

(now run your program for a couple minutes, then cancel it and:)

>> profile off
>> profiel viewer
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
13K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K