摘要
为了充分利用组态王良好的可视化界面功能与MATLAB强大的数值分析和控制系统仿真功能的各自优势来实现更好的工业控制,本文利用了一种编写MATLAB的S函数来实现组态王与MATLAB的动态数据交换(DDE)的方法,运用组态软件生成复杂友好的交互式人机界面(HMI),MATLAB的模糊控制工具箱完成模糊PID控制算法的运算,这样充分发挥二者优势,使得用户能够方便快捷地开发出复杂算法的控制系统,并将Matlab所附带的工具箱Fuzzy Logic ToolBox和Simulink有机地结合起来进行系统仿真,结果证明该方法具有良好的控制效果,效率高,通用性强,更换仿真模型中的控制算法模块就可实现各种复杂的工业控制过程,这大大增强了组态王的实时监控功能。
To give full use good visualization interface of the KINGVIEW,formidable numerical analysis and the control system simulation of the MATLAB to realize better industrial control,this paper compiled the S function of MATLAB to realize the dynamic data exchange (DDE) between the KINGVIEW and the MATLAB.The KINGVIEW completed complex and friendly human machine interface (HMI).The fuzzy control toolbox of MATLAB accomplished the operation of fuzzy PID control algorithm.Then DDE realized communication betweem them. This method exerts both superiority and facilitates users to develop quickly control system with more complex algorithm.The MATLAB toolbox--Fuzzy Logic Toolbox and its simulation function were organically combined to realize system simulation.The result proved that this method has favorable control effect,high efficiency,strong currency.If replacing control algorithm module of simulation model control,the users can achieve a variety of complex industrial control.It can greatly enhance real-time monitoring function of the KINGVIEW.
出处
《现代科学仪器》
2008年第6期86-89,共4页
Modern Scientific Instruments