期刊文献+

基于LabVIEW被动接收型串口通信数据采集系统 被引量:9

Data Acquisition System Based on LabVIEW Passive Receiving Serial Port Communication
在线阅读 下载PDF
导出
摘要 被动接收型串口通信的特点是下位机不断地向上位机发送数据,而上位机在不知道下位机何时发送的情况下被动接收。研究LabVIEW被动接收型串口通信的应用问题,并根据被动接收型串口通信的特点,设计2种应用于串口数据的采集系统。其中,轮询串口通信系统采用循环结构不断查询缓冲区来读取数据,为解决串口数据有时接收不全的问题,该系统先将所有的串口数据全部接收到临时文件,然后再读取临时文件,获得数据;触发串口通信系统则是通过共享变量与外界通信,改变共享变量的值来分别触发串口来获得数据,可避免因使用循环结构不断查询所有串口数据缓冲区而占用大量系统资源的问题。两系统只需设置相应串口参数即可显示、回放和实时存储由硬件采集的数据,方便以后对采集数据进行研究。实验结果表明,系统的稳定性和可靠性较高。 The characteristics of passive receiving serial communication are the lower machine is always sending data to upper computer, but the upper computer receives data passively in the case of not knowing when the machine sending data. This paper studies the application of passive receiving serial communication based on LabVIEW, and designs two serial collection systems for data acquisition on the basis of the characteristics of passive receiving serial communication. Polling serial ports communication can obtain data by using the loop structure querying buffer continuously. Because of the incomplete received date at times, the system saves all the data received from upper computer to temporary files, and we can obtain data by reading the temporary files. To prevent using the loop structure querying buffers of all the serial ports continuously, which result in the waste of the system re- sources, triggering serial ports communication can obtain data by communicating with outside through shared variables, and trigger serial ports separately by the change value of shared variables. Only need to set some serial port parameters, the two systems can display, playback and real-time storage the data collected by hardware, and can provide convenience for the future research of the collected data. The actual experiment verifies the system is stability and reliability.
出处 《计算机与现代化》 2013年第11期100-103,共4页 Computer and Modernization
关键词 LABVIEW 被动接收型 轮询串口通信 触发串口通信 共享变量 LabVIEW passive receiving polling serial ports communication triggering serial ports communication shared variables
  • 相关文献

参考文献12

二级参考文献29

共引文献314

同被引文献59

  • 1曹益平,李路明,霍雪亮.三维微型弱磁测量系统的研制[J].仪表技术与传感器,2005(12):52-54. 被引量:4
  • 2文生平,杨昊.基于VB的电子天平串行通信设计与实现[J].计算机工程与应用,2006,42(22):86-87. 被引量:2
  • 3JJG99-2006砝码[s].国家质量监督检验检疫总局,2006.
  • 4Mettler- Toledo. MT-SICS [DB/OL]. Switzerland: http: // www. rot. com, 2005.
  • 5俞梦孙.浙江省医学会健康管理学分会第七次学术年会论文汇编[C]∥浙江省医学会健康管理学分会会议录,杭州:2014:2.
  • 6李玉珍.简易呼吸商测定法及其应用(附30例慢性肺心病患者的测定结果)[J].河南医学报,1980(2):27-32.
  • 7Jose E G,Maria L M,Andrea M,et al.Relationship between whole-body macronutrient oxidative partitioning and pancreatic insulin secretion/β-cell function in non-diabetic humans[J].Metabolism Clinical and Experimental,2014,63:1426-1431.
  • 8Mclean J A,Tobin G.Animal and human calorimetry[M].Cambridge:Cambridge University Press,1987:108-111.
  • 9陈金平,王生泽,吴文英.基于LabVIEW的串口通信数据校验和的实现方法[J].自动化仪表,2008,29(3):32-34. 被引量:20
  • 10潘玉成.可调式精密稳压集成电路TL431及应用[J].宁德师专学报(自然科学版),2008,20(1):51-55. 被引量:16

引证文献9

二级引证文献37

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部