摘要
结合实际中的一种测试仪器的开发 ,在VB环境下利用PcommPRO所提供的函数库完成了微机与单片机之间的高速数据传输和数据曲线实时显示 ,解决了在WINDOWS环境下串行通讯不易编程以及由于通讯方式受速度制约而造成的数据严重丢失的现象。对于高速数据采集系统中上位机程序设计中所遇到的一些问题进行了探讨 ,重点就串行通讯中中断方式和回调函数的使用技巧进行了说明。从实践结果看 ,可以在 115 .2kbps波特率下进行数据全速收发 。
A method of transporting data in high speed between PC and single chip microprocessor (SCM),and real-time displaying data curve in VB environment using function library of Pcomm PRO is introduced in this paper with the development of a kind of measurement instrument,which resolves such questions in serial communication as uneasily programming and losing data caused by speed limit in WINDOWS environment.Some key problems in PC programming used in high-speed data collection system are discussed,especially the usages of interrupt mode and Callback Functions of serial communication are described.The practical results show that this system can reach the high transport speed 115.2kbps and real-time display data to fit the high collection rate.
出处
《仪表技术与传感器》
CSCD
北大核心
2003年第4期26-28,共3页
Instrument Technique and Sensor