摘要
基于Visual C++6.0集成开发环境提供的ActiveX控件和API这2种串口通信方法,设计了串口通信的一种实时性分析系统。该系统的硬件包括一个单片机系统,用于数据的串行发送,以及2台PC机,分别用于基于ActiveX控件和API的数据串行接收。系统的软件包括单片机系统的串口通信模块和PC机上基于ActiveX控件和API的串口通信模块。实验结果表明,API串行通信方法的实时性优于ActiveX控件串行通信方法。
A real-tlme analysis system is designed for two kinds of serial communication : ActiveX controls and the AH 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 soft- ware 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.
出处
《西华大学学报(自然科学版)》
CAS
2012年第6期65-68,72,共5页
Journal of Xihua University:Natural Science Edition
基金
四川省教育厅科研基金(08ZC010)