基于VC++实现串口通信的方法  被引量:10

Implementation of Serial Communication Program Based on VC++

在线阅读下载全文

作  者:王坤[1] 高贇[1] 

机构地区:[1]西安科技大学电气与控制工程学院,陕西省西安市710054

出  处:《信息化研究》2010年第10期52-54,共3页INFORMATIZATION RESEARCH

摘  要:随着控制技术的高速发展与日趋成熟,各类控制系统的规模越来越大,功能模块越来越多,因此,系统中各个功能模块之间能否实现可靠通信成了整个系统协调而稳定工作的关键。而串行通信则是各类通信方式中最基本、最常用、最可靠的一种。文中基于VC++开发软件,介绍三种不同的串口通信配置方式,即MFC函数、MSComm控件、库函数。实验证明,三种方法都准确实现了串口通信数据交换,运行稳定。With the rapid development and the maturity of control technology, the scale of various control system and the number of functional modules increase. So the reliable communication between system modules comes to be the key for the whole system to operate coordinatively and stably. Serial communication is the most basic, most common and most reliable communication method. In this paper, based on VC++, we introduce three different serial communication configurations: MFC function, MSComm control and the library functions. Experimental results show that all three serial communication methods achieved accurate data exchange and stable operation.

关 键 词:串口通信 VC++ MFC MSCOMM控件 通信函数 

分 类 号:TP31[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象