摘要
动态数据交换(DDE)是WINDOWS平台上的一个完整的通信协议,通过DDE使应用程序之间彼此能交换数据和发送指令,提问者称为client,回答方称为server。本文主要介绍组态王与单片机之间借助VB使用DDE方式通信的方法,即用VB应用程序和组态王6.02中的任一个做server,另一个做client,现场的传感器把数据送入单片机,经微机串行口由VB的通迅控件MSCOMM完成采集,再送入到VB应用程序,然后由VB和组态王6.02之间进行DDE通信。
DDE is a integrated Communication IP, it enable the applications to exchange the data and instruction code, the one which take question is called the client; the other one which take answer is called the server. Now a Communication method of using DDE Communication between the kingview 6.02 and SCM is introduced. We can use VB and kingview 6.02 to act as server or as client. So the sensors of on-the-spot will send the data to the SCM, and the data will be collected by the VB Communication piece MSCOMM through the Serial port to the kingview 6.02 at last.
出处
《传感器世界》
2003年第10期21-24,共4页
Sensor World