本文主要是介绍‘XXX‘has sample time [0, 1]. Only constant (inf) or inherited (-1) sample times are allowed in‘XXX‘,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
学习matlab/simulink时使用Memory模块和Trigger模块
报错:'XXX'has sample time [0, 1]. Only constant (inf) or inherited (-1) sample times are allowed in 'XXX'
说明memory模块设置不对
双击memory模块
解决办法:勾选Inherit sample time即可
不报错了
解决一个小问题!
这篇关于‘XXX‘has sample time [0, 1]. Only constant (inf) or inherited (-1) sample times are allowed in‘XXX‘的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!