Mark Lewis' BLOG

导航

【博客搬家】【转】Error evaluating...--MATLAB版本问题

此为【博客搬家】文章,原发文地址:http://hi.baidu.com/lanseiboy/blog/item/61e1053009efe54ead4b5fb5.html
 
Error evaluating...--MATLAB版本问题
2010-06-18 14:10

我在PUDN上下载了一个异步电机矢量控制的代码,可是Simulink仿真时总是报错:“Error evaluating... powergui...”,类似于下面这位仁兄的情况,得益于这位仁兄的启发,我卸载了原来的MATLAB 7.0版本,在迅雷上下载了MATLAB R2008a,经过漫长的下载与安装,万幸的是:果然很好用,是版本问题!

参考:http://hi.baidu.com/dingxiongyong/blog/item/f751b58140cdf8d2bd3e1ea5.html

转载原文如下:

【交流】simulink仿真报错:Error evaluating 'InitFcn' callback of ~~~

最近使用matlab仿真单相电流跟踪型逆变器,使用 'Multimeter'检测负载电压和电流时出现如下报错:

Error evaluating 'InitFcn' callback of MultimeterPSB block (mask) 'Multimeter'. Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.

matlab网站给出的说明是:

This is a bug with the transformer blocks, but it is not a bug with the multimeter block. This problem has been fixed in SimPowerSystems 2.3 (R13).

If you are still using a previous version, please read the following:

The multimeter block is highlighted during the error only because Power System Blockset is processing the circuit via the 'initifcn' of this block.

To solve the problem, and make the circuit run correctly, you need to specify the following for the Winding 3 parameter of the transformer blocks.

0  ( not [0] ) 注:这句没看明白啥意思。

The Power System Blockset did not totally understand that [0] means no third winding.

另一种错误是在使用电压测量时报的错误:

Error evaluating 'InitFcn' callback of Voltage Measurement block (mask) 'Voltage Measurement'. Error using ==> get_param
block_diagram does not have a parameter named 'PortConnectivity'

给出的解决方法:

This problem has been fixed in SimPowerSystems 3.0 (R13.0.1+).

If you are using a previous version, read the following:

This is a bug in SimPowerSystems 2.3 (R13.0.1) in the way that the SimPowerSystems handles inputs from Simulink blocks in other libraries.

Currently, to work around this issue, try inserting a unity Gain block before the input port of the Voltage Measurement block.

这两种错误都只在matlab6.5上出现。这和版本是有关系的。有谁在这个版本上解决了这个问题的,交流下,谢谢了。

我换了个版本为7.0的,还是不能用。等我更新到7.1版本,也就是R14 sp3版本,可以通过,但大家仿真的时候注意,更好高版本可能需要更换模块,跟新*.mdl文件,可以参考这条命令:“psbupdate *.mdl”。

posted on 2011-03-20 09:43  Mark Lewis  阅读(6668)  评论(0编辑  收藏  举报