摘要随着工业控制水平的不断提高,人们对于控制系统的监控也提出了越来越高的要求,组态软件在传统监控软件的基础上,提供给用户丰富的定制功能,因而得到了广泛的应用。在组态软件中,生产过程的测量信息与组态画面中的各种元素通过变量库关联,因此变量库的设计是组态软件设计中的一个重要组成部分。67255
本文研究了利用XML(Extensible Markup Language,可扩展标记语言)为配置文件的变量库设计方法。以MFC创建的基于对话框的程序界面为基础,结合XML技术,在设计环境中将定义的变量信息记录在XML文档各元素中,并在运行环境中通过解析XML文件获取各变量的配置参数,并赋值给相应的功能函数,来读取和显示变量值,实现用户界面的动画连接。这使得变量库具有更强的扩展性, 提高了组态软件的性能。
毕业论文关键词 XML MFC 变量库
毕业设计说明书(论文)外文摘要
Title The design of Variable Database in Configuration Software
Abstract
With the increasing level of industrial control, people have higher requirements for the monitoring. Comparing with the traditional monitoring software, Configuration software provides wealth customization function, so that it becomes widely used. Information produced in the production process and various elements of the configuration software is connected by variable database, which is considered a very important component of the configuration software.
In this paper, a method of using XML technology as a configuration file for variable database is studied. The method is based on a Dialog Box created by MFC. In Designing Environment, variable information was recorded in each element saved in a XML document. In Running Environment, XML document is analyzed to get the information, which will be assigned to corresponding function to obtain values of the variables and achieve the design of dynamic connection.
This method makes variable database get a better scalability and gives configuration software a better performance.
Keywords XML MFC Variable Database
目录
1 引言 1
1.1 研究背景与意义 1
1.2 研究现状 1
1.3 内容安排 3
2 总体设计 4
2.1 组态软件结构概述 4
2.2 总体设计思路 4
2.3 总体框架图 5
2.4 开发平台简介 7
3 XML文档的配置 9
3.1 XML简介 9
3.2 VC-XML编程技术 11
3.3 VC-XML 算法设计 13
3.4 本章小结 18
4 变量库的实现 20
4.1 设计环境的设计 20
4.2 运行环境的设计 26
4.3 本章小结 30
5 结果与分析