检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《计算机与现代化》2013年第11期100-103,共4页Computer and Modernization
摘 要:被动接收型串口通信的特点是下位机不断地向上位机发送数据,而上位机在不知道下位机何时发送的情况下被动接收。研究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.
关 键 词:LABVIEW 被动接收型 轮询串口通信 触发串口通信 共享变量
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.114