1673-159X

CN 51-1686/N

Visual C++中串行通信方法的实时性研究

Research on Real-time of Serial Communication Methods in Visual C++ Integrated Development Environment

  • 摘要: 基于Visual C++6.0集成开发环境提供的ActiveX控件和API这2种串口通信方法, 设计了串口通信的一种实时性分析系统。该系统的硬件包括一个单片机系统, 用于数据的串行发送, 以及2台PC机, 分别用于基于ActiveX控件和API的数据串行接收。系统的软件包括单片机系统的串口通信模块和PC机上基于ActiveX控件和API的串口通信模块。实验结果表明, API串行通信方法的实时性优于ActiveX控件串行通信方法。

     

    Abstract: A real-time analysis system is designed for two kinds of serial communication: ActiveX controls and the API function in Visual C++ 6.0 integrated development environment. It consists of a MCU system and two PCs. The data from the MCU system in serial are both received by the two PCs at the same time in ActiveX component and the API function serial method respectively. Its software includes serial port communication module used in the MCU system and serial communication modules based on ActiveX component and the API function, which run in two PCs respectively. Experiment results show that the real-time of the API function method is better than that of ActiveX component approach.

     

/

返回文章
返回