在simulink里,我用连续时间模块建立了一个简单的PID控制.mdl模型,含有du/dt的微分模块,将他转化为离散时间系统后总是不能仿真,错误报告如下:
Error in 'test_test/Derivative': Initialization commands cannot be evaluated. MATLAB error message: Error using ==> tf.ss
Improper system. Conversion to state space is not possible
在我这里运行没有错误啊,只有一个警告:
Warning: Using a default value of 0.2 for maximum step size. The simulation step size
will be equal to or less than this value. You can disable this diagnostic by setting
'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics page of
the configuration parameters dialog.
运行曲线: