1 解决的问题
- Simulink仿真模块搭建被控对象比较麻烦;
- 使用封装模块即时搭建控制系统模型;
- 节省时间,将重点集中在被控对象的控制器设计;
2 必要描述
(1)选项卡描述
The discription of N-Order system, the equation is:
y^(n)=k1*y+k2*dy+...+kn*y^(n-1)+f(y)+b*u;
K=[k1,k2,...,kn];
f(y) is a nonlinear function of y and it's derivatives;
u(1)=y,u(2)=dy,...,u(N)=y^(n-1);
Example: f(u)=sin(u(1)*exp(2.3*(-u(2))))
Made by Chenglin Li, 2020.01.10.
(2)参数描述
N Order Control System
The coefficient of input u
The initial values y0 of (y,dy,...,y^(n-1)) (N dims)
The coefficient K=[k1,k2,...,kn]
Use f(u(1),u(2),...,u(N)) means f(y,dy,...,y^(n-1))
(3)封装模块外观
port_label('input', 1, 'u');
port_label('output', 1, 'y');
fprintf('%.0f-Order System', N) ;
3 封装成果
- 按钮触发打开fy模块的事件
4 控制实验
- 仿真图可以看出集成化的System模块可以达到和Simulink组合模块相同的效果
- 对比两种控制系统的搭建模型
评论(0)
您还未登录,请登录后发表或查看评论