检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:侯军凯 聂建军[1] 牛继高[1] 席建普[1] 闫修鹏 HOU Junkai;NIE Jianjun;NIU Jigao;XI Jianpu;YAN Xiupeng(School of Mechanical and Electronic Engineering,Zhongyuan University of Technology,Zhengzhou 450007,China)
出 处:《中原工学院学报》2021年第5期57-62,共6页Journal of Zhongyuan University of Technology
基 金:国家自然科学基金项目(51705546);中原工学院教学改革研究与实践项目(2019ZGJGLX012)。
摘 要:为了在微控制器中实现模糊控制算法,在Matlab/Simulink环境中建立了自动洗衣机的模糊控制系统。基于该模糊控制系统,首先建立数据提取模型,并通过M文件编写算法,提取数据,得到了二维数组;然后建立RTW(Real-Time Workshop)自动代码生成模型,并将所得二维数组导入模型的2-D Lookup Table模块,利用Matlab软件的RTW功能生成自动代码,分析代码中的二维查表插值算法;最后,将该算法写入微控制器,并进行了试验验证。结果表明,微控制器的运行结果与模型的离线仿真结果基本一致,所设计模糊控制器能够满足控制的实时性和精度要求。In order to realize the fuzzy control algorithm in the microcontroller,a fuzzy control system of the automatic washing machine is established in the Matlab/Simulink environment.Based on the fuzzy control system,the data extraction model is established,and a two-dimensional array is obtained by M-file algorithm.Then,the RTW automatic code generation model is established,and the two-dimensional array is imported into the 2-D Lookup in the model.The table module uses the RTW function in Matlab to generate automatic code,analyzes the two-dimensional Look-up Table interpolation algorithm in the code,and finally writes the algorithm into the microcontroller for experimental verification.The results show that the operating results of the microcontroller are basically the same as the offline simulation results of the model,which can meet the real-time and accuracy requirements.
关 键 词:微控制器 MATLAB/SIMULINK 模糊控制 二维查表插值算法 RTW自动代码
分 类 号:TP273[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.33