MATLAB Matlab Simulink Simulation very slow

Click For Summary
The user is experiencing slow simulation times in MATLAB Simulink while trying to analyze a transmission line circuit with a 132 kV AC source. The simulation is taking an excessive amount of time to complete even one AC cycle, prompting a request for assistance. A suggestion was made to utilize the MATLAB command-line profiler to diagnose performance issues, although its effectiveness in Simulink is uncertain. The profiler can be activated with specific commands to gather performance data during the simulation. Addressing the simulation speed is crucial for obtaining accurate RMS values at the load.
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
1K
  • · 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