摘要
数据采样圆弧插补算法已取得了较大的进展,但大多较为复杂,编程计算量大,在插补公式的统一性、特殊圆弧的插补等方面还不够完善。探讨了一种基于圆弧参数方程的、以步进角为中间变量的新型圆弧插补算法;结合计算机数值运算的特点,改进了距离终点判别方法,利用下一插补点与插补终点的距离作为终点判别依据;在LabVIEW环境下进行了与传统算法对比的插补仿真实验。结果表明,此算法不仅能正确地进行整圆插补终点的判别,实现整圆插补,而且可将计算误差减小为原来的1/104,计算速度提高33%。此算法简单可行,易于编程,适用于任意圆弧的插补,计算速度快且无误差累积效应,精度较高。
Great improvement in the data sampling with are interpolation algorithm has been achieved, however, most of them are complex with large amount of programming calculation and lack of formulary consistency. Problems are encountered when dealing with special circular interpolation. A new algorithm using step angle as the intermediate variable was presented in this paper based on the arc parameter equation. The interpolation simulations compared with the traditional algorithm were carried out under the LabVIEW environment. Integrating with the computer digital operation characteristic, an improved distance method using the distance between the next point and the end point as the distinguish basis was put forward to implement correct end point discrimination for special arcs. Experiments show that by using the above mentioned algorithm, full circle interpolation was obtained, and moreover, it was compact for programming and can be used for arbitrary arc interpolation without error accumulations. In this paper, the calculation errors can be reduced to 0.11%, and the interpolation speed increased by 33% of that made by using original algorithm.
出处
《机械设计与研究》
CSCD
北大核心
2009年第4期17-19,共3页
Machine Design And Research
基金
国家青年科学基金资助项目(50805077)
关键词
圆弧插补
参数方程
数据采样插补
arc interpolation
parametric equation
data sampling interpolation