首页 | 本学科首页   官方微博 | 高级检索  
     

LabVIEW对串口采样测量数据的处理
引用本文:王显军.LabVIEW对串口采样测量数据的处理[J].电子测量技术,2014(3):107-111.
作者姓名:王显军
作者单位:中国科学院长春光学精密机械与物理研究所,长春130033
摘    要:LabVIEW处理串口通常采用VISA或ActiveX控件,采用VISA的解决方案简单易行,详细介绍基于VISA对串口数据的处理方法。当数据量比较大,帧频比较高时,串口采样数据处理比较麻烦。为避免接收数据窜字符的问题,设计了自动帧头对准程序,保证数据接收完整可靠。为避免数据分析显示程序与串口数据接收处理的冲突,设计串口接收打包处理程序,对接收数据进行缓存。说明了这2种方法的原理、实现和实际应用程序。并应用于编制伺服运动控制效果测量监控程序。设计分析对比结果表明,方案简单易行、经过处理的数据流结构清晰、明确,易于后续程序处理。为基于LabVIEW的串口数据处理提供一种简单有效的方法。

关 键 词:LabVIEW  自动帧头对准  数据缓存  串口采样数据处理

Serial port sampling data processing using LabVIEW
Wang Xianjun.Serial port sampling data processing using LabVIEW[J].Electronic Measurement Technology,2014(3):107-111.
Authors:Wang Xianjun
Affiliation:Wang Xianjun(Changchun Institute of Optics,Fine Mechanics and Physics,Chinese Academy of Sciences,Changchun130033,China)
Abstract:LabVIEW usually use VISA or ActiveX controls for serial processing and the VISA solution is simple and easily implemented.This paper will give a detailed introduction to the serial data processing method using VISA.When the frame rate is higher,the data amount will be larger,this will make the serial data processing more complicated.In order to avoid receiving data channeling character problem,an automatic frame head alignment procedure is designed,which will ensure the data integrity and reliability.To avoid the conflicts between the data analysis procedure and the serial data receiving procedures,a serial package processing procedure is designed which can cache the data received.The principles,implementation and practical applications are demonstrated for the two methods which can be applied to the servo control monitoring program.The analyzed results show that the method is easily implemented and the structure for the data processing program is clear and easy for the following procedure.The paper provides a simple and effective way for serial data processing based on LabVIEW.
Keywords:LabVIEW  automatic frame head alignment  data caching  serial data sampling and processing
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号