基于ActiveX控件的Visual C++与组态王通信研究  

Research of Communication Between Visual C++ and Kingview Based on Active X Control

在线阅读下载全文

作  者:王德庆 牛天星 曲加圣 

机构地区:[1]大连测控技术研究所,辽宁大连116013

出  处:《自动化技术与应用》2014年第11期122-129,共8页Techniques of Automation and Applications

基  金:国家科技支撑计划项目(编号2013BAK03B06)

摘  要:研究了在组态王提供的Kv Tcpip Client Ocx Active X通信控件基础上,实现Visual C++读取和设置组态王变量信息的方法,可以达到实时通信的目的。以行车中的轴旋转控制为测试背景,首先介绍了组态王系统设计及变量的设置,接着讲述了VC工程的建立和组态王通信控件的添加方法,最后给出了VC与组态王通信的代码具体实现方法。此方法与传统的DDE和OPC等方法相比开发更加便捷,适合新系统新开发软件的利用。在Visual C++的基础上,可以在数据处理、报警监视等多方面实现组态王功能的拓展。This paper introduces the methods for Visual C++ to read and set variables values in Kingview system, realizing real-time communication and control. Taking axle rotation control as the test background, firstly, Kingview system and variables setup methods are introduced. Then, the method to build a VC project with KvTcpipClientOcx control is introduced too. Finally, the communication method with detailed codes is given. Comparing with traditional DDE and OPC, this method is more convenience to use and fits latest operation system and developing software. Based on VC, Kingview's func- tions can be extended.

关 键 词:Visual C++ 组态王 ACTIVEX控件 实时通信 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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