设为首页 联系我们 加入收藏

当前位置: 网站首页 期刊分类目录 2015第2期 正文

基于LabVIEW的数据协议灵活配置

作者:时间:2015-04-20点击数:

闫伟1, 南金瑞2

(1.中北大学 机械与动力工程学院,山西 太原 030051;2.北京理工大学 机械与车辆学院,北京 100081)

摘要: 为了解决传统式固定协议配置的弊端,基于虚拟仪器平台,设计出解包处理数据对象功能。该设计大量使用LabVIEW函数结构、属性节点及变量,并且建立了不同模块的程序框图。用户可通过显示面板上加载、导入协议配置控件来完成灵活的协议配置,通过实验分析、公式回代验证该设计的可靠性;并对比传统式配置的编辑时间,验证该设计的时效性。应用结果表明,基于LabVIEW软件设计的数据协议灵活配置运行稳定可靠;在不同的通讯协议,该设计可方便快捷的实现相同数据的检测与采集,具有一定的实用性和推广价值。

关键词: LabVIEW; 协议配置; 解包处理; CAN总线

中图分类号: TP 274              文献标志码: A

 Flexible Configuration of Data Protocol Based on LabVIEW

YAN Wei1, NAN Jinrui2

(1.School of Mechanical Engineering and Power Engineering,North University of China,  Taiyuan 030051 China;2.School of Mechanical Engineering, Beijing Institute of Technology, Beijing 100081, China)

Abstract: In order to solve the drawbacks of the traditional fixedprotocol configuration, this paper designed the function of data unpacking process based on the virtual instrument platform. The LabVIEW function structure, attribute nodes and variables are largely used in this paper and the programming diagrams of different modules were established. User can complete the protocol configuration flexibly through uploading and operating the configuration controllers on the display. Through experimental analysis and the formula substitution, we could validate the reliability of the design. Besides, by comparing the traditional configuration editing time, we could verify the efficiency of the design. The application results show that the flexible data protocol configuration based on LabVIEW can operate stably and reliably. For different communication protocols, the design can achieve the same convention detection and data collection, so this design is practical and it is worthwhile to promote.

 Key words: LabVIEW; protocol configuration; unpacking processing; CAN bus

收稿日期: 20131022

作者简介: 闫伟(1988—),男,硕士研究生.

Copyright © 2011-2017 青岛科技大学学报 (自然科学版)