Matlab Simulink Simulation very slow

1 reply · 7K views · last reply
I_am_learning
Messages
681
Reaction score
16
I tried to solve a simple transmision line circuit using MATLAB simpower system
Simulink model of a transmission line: AC Voltage Source feeds a Series RLC Branch and a Pi Section Line to a Parallel RLC Load, with a Voltage Measurement block feeding an RMS block and a Display showing 0.006074.

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.
 
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