view
view

Reputation: 555

Failed to find library 'powerlib' matlab. Simulink program executing

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.

Upvotes: 2

Views: 21204

Answers (3)

tjp
tjp

Reputation: 161

This should really be a comment on another answer, but I can't comment due to reputation.

From at least R2016b, perhaps earlier too, It's no longer called SimPowerSystems. It's now SimscapePowerSystems. You need that plus the bare Simscape package installed.

Upvotes: 1

Jonas
Jonas

Reputation: 74940

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.

Upvotes: 2

Edric
Edric

Reputation: 25160

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

Upvotes: 1

Related Questions