Unable to load block diagram 'powerlib2'

I have downloaded a simulink program from net and tried to run,but i get the error Unable to load block diagram 'powerlib2' ,please tell how to rectify it

4 Comments

TAB
TAB on 14 Sep 2012
Edited: TAB on 14 Sep 2012
I seems that model is using some block from the library or toolbox (may be SimPowerSystem or SimElectronics toolbox) which is not installed in your simulink.
I have uploaded my file here
please tell which block is not installed am using r2010a
TAB
TAB on 14 Sep 2012
Edited: TAB on 14 Sep 2012
My PC's web filter is not allowing to access the site. Sorry !

Sign in to comment.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 14 Sep 2012
Edited: Azzi Abdelmalek on 14 Sep 2012
it seems that powerlib2 is obsolete after matlab 2007a.

6 Comments

Azzi i hae uploaded my .mdl file can u tell how that error can be rectified please
I dont have any command there plz check the link
You can see that the block "ad lin" (vol1,vol2,...), (foreground - - in red ) which means this block is not available, because the lib model where it can be found does'nt exist in your folder, ask who did this model, to add it.
it seems that powerlib2 is obsolete after matlab 2007a.
To clarify further, as per Arnaud's comment on that page: you need to open the model in R2006b or earlier, convert it to powerlib3 with psbupdate, save it. You should then be able to open it up in R2008a or later versions.
% 打开新的Simulink模型
model = 'three_node_system';
new_system(model);
open_system(model);
% 添加同步发电机
generator = 'Simscape/Electrical/Specialized Power Systems/Electrical Machines/DC Machine';
add_block(generator, 'three_node_system/Generator');

Sign in to comment.

Categories

Find more on Simscape Electrical in Help Center and File Exchange

Tags

Asked:

on 14 Sep 2012

Commented:

on 28 Jan 2024

Community Treasure Hunt

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

Start Hunting!