表面粗糙度测量软件设计
2018-12-20
作者:张天微
单位:哈尔滨量具刃具集团有限责任公司
摘要:针对哈量集团LINKS2300AR型粗糙度测量仪设计了相应的粗糙度测量软件。介绍了表面轮廓是由原始轮廓、粗糙度轮廓、波纹度轮廓复合叠加而成,展示了软件总体设计思路和各子系统的功能和特点,包括测量系统的功能、精度补偿系统的原理、主界面的特点、表面轮廓分析系统和行业特定系统的组成等。为了简化代码,设计了图形交互控件;根据设计模式,设计了滤波器模块、文件读写模块、报表输出模块和运动控制模块,其中滤波器模块包括最小二乘、2RC、相位校正、高斯和稳健高斯滤波器,文件读写模块包括二进制、XML、TXT、MSG、XLS等格式的读写,报表输出模块提供预设模版和自定义模版,运动控制模块集成了所需的运动控制函数,供测量系统调用,从而形成了完整、可靠的粗糙度测量软件。
关键词:粗糙度;软件设计;图形交互;滤波器;文件读写;运动控制
中图分类号:TG84;TH741;TP319文献标志码:A
Design of Surface Roughness Measuring Software
Zhang Tianwei
Abstract:Designs asoftware for surface roughness measuring equipment.The paper introduces the components of surface profile.Briefly introduces the functions and characteristics of the child system and the overall design conception of the software.Including the functions of measuring system,the operating principle of compensating system,the characteristics of main interface,and the components of profile analyzing system and customized system.For make the code as simple as possible,graph interactive control is designed.The filter module,file reading and writing module,report writing module and motion control module are designed based on design mode.The filter module including Leastsquare,2RC,Phase Correction,Gauss and Robust Gaussfilter.The file reading and writing modulecan operate various file formats,such as Binary,XML,TXT,MSG and XLS.The report writing module have presupposed and customized templates.The motion control module integrates motion control functions which required by software,for measuring system calls.As a result,it becomes an integrated and reliable surface roughness measuring software.
Keywords:roughness; software design; graph interactive; filter; file reading and writing; motion control