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

基于LabVIEW串口通信的研究
引用本文:吕向锋,高洪林,马亮,王新华.基于LabVIEW串口通信的研究[J].国外电子测量技术,2009,28(12):27-30,42.
作者姓名:吕向锋  高洪林  马亮  王新华
作者单位:1. 海军潜艇学院学员二队,青岛,266071
2. 海军潜艇学院水中兵器教研室,青岛,266071
摘    要:LabVIEW是NI公司开发的图形化编程开发平台,具备强大的实时数据处理功能与显示功能。通常情况下,在Lab—VIEW开发环境中进行串口通信使用VISA和ActiveX控件两种方式均可以进行,通过结合实例比较,发现VISA方式只能提供查询缓冲区方式接收数据,这需要占用大量的CPU时间,且实时性不佳。相对而言,使用微软提供的MSCOMM32控件的中断函数处理功能,可以实现中断方式的接收数据。同时,MSCOMM32控件可以单独设置串口的每一个引脚,便于实现高级的用户自定义功能。

关 键 词:LabVIEW  串口  通信  VISA  ActiveX

Serial communication based on LabVIEW
Lv Xiangfeng,Gao Honglin,Ma Liang,Wang Xinhua.Serial communication based on LabVIEW[J].Foreign Electronic Measurement Technology,2009,28(12):27-30,42.
Authors:Lv Xiangfeng  Gao Honglin  Ma Liang  Wang Xinhua
Affiliation:Lv Xiangfeng1 Gao Honglin2 Ma Liang2 Wang Xinhua2(1.Post-Graduate Team 2 of Navy Submarine Academy,QinDao 266071,China,2.Underwater Ordnance section of Navy Submarine Academy,China)
Abstract:LabVIEW is the NI company's graphic programming language that is able to fulfill ability on handling real-time data and showing.Generally,either VISA or ActiveX control could realize the communication with serial ports under LabVIEW language environment,but the ways that they received data are different.The way based on VISA receive data only through query buffer of serial ports,so it impropriate a lot of time of CPU and not have good real time capability.In relative terms,the MSCOMM32 control could offer q...
Keywords:LabVIEW  VISA  ActiveX
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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