views:

33

answers:

2

When I tried to run a Simulink program under my R2009a Matlab, it showed an error message as follows: Failed to find library 'powerlib' referenced by 'dcmotor_openloop/Armature Current '. This library must be on your MATLAB path.

I'm wondering where I can find this powerlib.

+1  A: 

powerlib is a Simulink library shipped as part of SimPowerSystems, see the product page here: http://www.mathworks.com/products/simpower/.

Edric
A: 

As @Edric mentioned, powerlib is built into SimPowerSystems. The error you see can thus have two causes

(1) There is no installation of SimPowerSystems in your copy of Matlab. Type ver at the command prompt to check for what toolboxes you have installed. If SimPowerSystems doesn't show up in the list, you will have to get the toolbox, otherwise you won't be able to run the model.

(2) Your installation of SimPowerSystems is somehow corrupt. This has never happened to me in Matlab so far, but with modern technology, anything is possible. A fresh install should solve this.

Jonas
Thank you Jonas! I dont have the toolbox. It seems that I have to go to the lab for simulation.
appi