解决Simulink输入输出出现variable-size mode 和fixed size model的问题
2017-01-04 12:18
246 查看
使用simulink封装了好多个子系统,这时候可能出现如下报错:“Simulink cannot propagate the variable-size mode from the input "。。。" to the input port 1 of ‘。。。’. This input port expects a fixed-size mode. The variable-size mode originates from ‘。。。 '.
笔者有出现这个问题,上网搜了后找到些貌似靠谱的答案,但是还未能解决问题。这些答案或许能解决你的问题,网址贴在这里:http://cn.mathworks.com/matlabcentral/answers/73682-simulink-cannot-propagate-the-variable-size-mode-from-the-input
最后我是如何解决问题的呢?
非常简单,有一个子系统出现了两个积分环节,不要使用Library Browser选择两次,直接复制上一个,粘贴下一个。这是输出。输入同样不选择两次In1,复制粘贴上一次的。问题得到解决。
不清楚原理是什么,但是的确是这样解决的。
还想谈一下上述网址中第二个回答,其中提到“You can right-click the matlab function block, choose explore, and set its output to a "variable size" with upper and lower bounds on its dimension.”笔者认为这有造假嫌疑,万一是发散的,这就是非得限幅使他不发散。而且对于我的问题也没有解决。
另外,如果出现报错是不能有Inf输入,原因一般是分母出现了零,设置一个初值即可解决。
笔者有出现这个问题,上网搜了后找到些貌似靠谱的答案,但是还未能解决问题。这些答案或许能解决你的问题,网址贴在这里:http://cn.mathworks.com/matlabcentral/answers/73682-simulink-cannot-propagate-the-variable-size-mode-from-the-input
最后我是如何解决问题的呢?
非常简单,有一个子系统出现了两个积分环节,不要使用Library Browser选择两次,直接复制上一个,粘贴下一个。这是输出。输入同样不选择两次In1,复制粘贴上一次的。问题得到解决。
不清楚原理是什么,但是的确是这样解决的。
还想谈一下上述网址中第二个回答,其中提到“You can right-click the matlab function block, choose explore, and set its output to a "variable size" with upper and lower bounds on its dimension.”笔者认为这有造假嫌疑,万一是发散的,这就是非得限幅使他不发散。而且对于我的问题也没有解决。
另外,如果出现报错是不能有Inf输入,原因一般是分母出现了零,设置一个初值即可解决。
相关文章推荐
- 编译时出现set but not used [-Werror=unused-but-set-variable]问题的解决办法
- 解决asp.net mvc UpdateModel更新对象后出现null问题的方法
- android开发出现R cannot be resolved to a variable 问题解决办法之一
- 安装或更新到IE8后, VS2008 向导出现的Add Variable等等问题的 解决办法
- ads出现村田电容电感无法仿真的问题解决(`BJT1' is an instance of an undefined model `BJTM1')
- java 中JFinal getModel方法和数据库使用出现问题解决办法
- java 中JFinal getModel方法和数据库使用出现问题解决办法
- Linux下运行Java项目时,出现No X11 DISPLAY variable was set, but this program performed an operation which requires it.的问题解决
- 安装或更新到IE8后, VS2008 向导出现的Add Variable等等问题的 解决办法
- 解决myeclipse保存总是出现:cteating aop reference model markers的问题
- XZ_Swift之YYModel 实现嵌套的字典转模型出现的问题的解决
- Eclipse运行Maven命令时出现:-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.问题解决
- 使用git出现的“'receive.denyCurrentBranch' Configuration variable to 'refuse'”问题及解决
- 嵌入式 编译gdb源码时出现“set but not used [-Werror=unused-but-set-variable]”问题的解决办
- 编译时出现set but not used [-Werror=unused-but-set-variable]问题的解决办法
- 解决asp.net mvc UpdateModel更新对象后出现null问题的方法
- 关于使用VS.Net2003调试器出现的问题及相关解决方法
- 用Visual.Assist.X.v10.1.1418之后出现这问题?请大家给解决。谢谢
- 出现neighbour table overflow的情况,问题还未解决。
- C#的WinForm程序应用了XP主题样式之后,ShowDialog方法出现问题的解决