未能找到库“powerlib” MATLAB。 Simulink 程序执行
当我尝试在 R2009a Matlab 下运行 Simulink 程序时,显示错误消息如下:无法找到“dcmotor_openloop/Armature Current”引用的库“powerlib”。该库必须位于您的 MATLAB 路径上。
我想知道在哪里可以找到这个 powerlib。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如 @Edric 提到的,< code>powerlib 内置于 SimPowerSystems 中。因此,您看到的错误可能有两个原因
(1) 您的 Matlab 副本中没有安装 SimPowerSystems。在命令提示符处输入
ver
以检查您已安装的工具箱。如果 SimPowerSystems 没有出现在列表中,您将必须获取工具箱,否则您将无法运行模型。(2) 您安装的 SimPowerSystems 不知何故已损坏。到目前为止,我在 Matlab 中还从未发生过这种情况,但借助现代技术,一切皆有可能。全新安装应该可以解决这个问题。
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.
powerlib
是作为 SimPowerSystems 的一部分提供的 Simulink 库,请参阅此处的产品页面: http://www.mathworks.com/products/simpower/。powerlib
is a Simulink library shipped as part of SimPowerSystems, see the product page here: http://www.mathworks.com/products/simpower/.这确实应该是对另一个答案的评论,但由于声誉我无法发表评论。
至少从 R2016b 开始,也许更早,它不再称为 SimPowerSystems。现在是SimscapePowerSystems。您需要它加上安装的裸 Simscape 软件包。
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.