xinyancode 发表于 2008-5-8 23:40

微分模块如何进行离散化

微分模块如何进行离散化

各位高人:

在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

请问du/dt微分模块,在模型离散化时该如何处理?
请大家指教,非常感谢!

我的文件如下:

yf2002043227 发表于 2008-5-9 07:26

在我这里运行没有错误啊,只有一个警告:
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.
运行曲线:

xinyancode 发表于 2008-5-9 09:35

非常感谢2楼的朋友!

不过您应该是在连续时间状态下进行的仿真吧,可以大得到您的结果。

我现在是要把这个模型转化到离散时间模型,然后再进行仿真。方法是在模型窗口的主菜单上选tools->Control Design->Model Discretizer. 请各位继续帮助!


谢谢!

readeraz 发表于 2008-5-9 17:55

command
c2d
aaaaaaaaaa

[ 本帖最后由 readeraz 于 2008-5-9 18:29 编辑 ]

xinyancode 发表于 2008-5-9 18:20

4楼是什么意思?
4楼是什么意思?
4楼是什么意思?

readeraz 发表于 2008-5-9 18:26

sorry sorry
打错落。
应当是
c2d
函数名
sysd=c2d( sysc, Ts) %TS 采样周期。

[ 本帖最后由 readeraz 于 2008-5-9 18:28 编辑 ]

readeraz 发表于 2008-5-13 10:41

回复 4楼 的帖子

怎么成恶意灌水了?
不是开玩笑的吧?

[ 本帖最后由 eight 于 2008-5-13 12:05 编辑 ]

eight 发表于 2008-5-13 12:04

原帖由 readeraz 于 2008-5-13 10:41 发表 http://www.chinavib.com/forum/images/common/back.gif
怎么成恶意官水了?
不是开玩笑的吧? aaaaa 是什么意思?

yf2002043227 发表于 2008-5-13 12:20

离散情况下有个专门的微分模块,你可以找一下,不是du/dt

readeraz 发表于 2008-5-14 09:54

请注意用词



[ 本帖最后由 yf2002043227 于 2008-5-14 10:12 编辑 ]
页: [1]
查看完整版本: 微分模块如何进行离散化