Simlink Switch问题

来源:百度知道 编辑:UC知道 时间:2024/06/30 21:15:24
在做一个简单的FUZZY-PID控制,要求控制量在FUZZY和PID之间切换,我想实现两个区间的切换,即大于某个阈值用fuzzy,小于该阈值用PID控制
仿真中遇到:
??? Error using ==> sim
--> Invalid setting for fixed-step size (0.1) in model 'f_sim'. All sample times in your model must be an integer multiple of the fixed-step size.
--> The sample time period (5e-005) specified for 'f_sim/Discrete PID Controller/Derivative ' is not an integer multiple of the fixed step size (0.1) specified for model.
--> The sample time period (5e-005) specified for 'f_sim/Discrete PID Controller/Discrete-Time Integrator' is not an integer multiple of the fixed step size (0.1) specified for model.
这是什么错误?请高手帮忙,我很急,在此先跪谢过!

我的也遇见相似问题,"xxxis not an integer multiple of the fixed step size (0.001) specified for model"。发现原因为Simulink的解法器仿真步长和powergui的解法器步长不一致,解决方法都设置为50e-6就可以跑。

我也遇到同类问题,人间有没有标准答案?