1、 学号 毕业设计(论文) 题目: 基于 C#的远程液位监控软件设计 作 者 届 别 学 院 专 业 指导教师 职 称 完成时间 年 月 日 I 摘 要 为了弥补组态软件在远程液位监控系统中的不足,本文设计了一套基于C# 的远程液位监控软件。本软件依靠.NET类库中Windows.Forms类完成了服务器与 客户端测试界面的设计,还利用SOCKET类实现了服务器与客户端之间的异步通 信,达到了实时传输和远程监控的要求。同时利用内部的垃圾回收机制,有效的 避免了资源浪费和内存泄露等缺陷。 在满足企业个性化设计需求的同时还保证了 测控平台的工作性能和测控质量,极大的提高了工业生产效率。 关键词:关键
2、词:C#;SOCKET;异步通信; II Abstract To make up for deficiencies in the remote configuration software level monitorin g system, the paper designs a C # based on the level of remote monitoring software. T he software relies on .NET class library Windows.Forms class completed the test serv er and the client
3、interface design, but also use SOCKET class implements the asynchr onous communication between the server and the client, to the real-time transmission and remote monitoring requirements. While taking advantage of the internal garbage c ollection mechanism, effectively avoiding the waste of resource
4、s and memory leaks a nd other defects. Personalized design to meet business needs, while also ensuring the quality and control performance and control platform, which greatly improves the effi ciency of industrial production. Keywords: C #; SOCKET; asynchronous communication; III 目 录 摘 要.I Abstract
5、. II 第 1 章 引 言 1 1.1 课题研究的背景 1 1.2 课题研究的意义 1 1.3 课题研究内容及结构安排 2 第 2 章 系统整体结构 3 2.1 控制系统构成 3 2.2 测控软件构成 4 2.2.1 相关技术介绍 . 4 2.2.2 程序流程框图 . 5 2.3 本章小结. 6 第 3 章 监控软件程序实现 7 3.1 软件设计方案 7 3.2 服务器设计 . 7 3.2.1 界面设计 7 3.2.2 Socket 编程 . 8 3.3 客户端设计 . 12 3.3.1 界面设计 12 3.3.2 Socket 编程 . 13 3.4 本章小结. 14 第 4 章 Acti
6、veX 控件生成与发布. 15 4.1 控件生成与发布 . 15 4.2 本章小结. 20 第 5 章 软件生成与测试 21 5.1 软件生成及测试 21 5.2 本章小结. 24 第 6 章 结语与展望 25 参考文献 26 致 谢 27 附录 软件代码 28 1 第 1 章 引 言 1.1 课题研究的背景 随着科技的不断发展,远程监控技术以其逐步完善和推广,逐渐使人们意识 到远程测控技术对现代企业管理和生产效率的重要意义。为了提高生产效率,人 们希望获得对工厂生产中大量的物理量和生产工艺等参数的实时测控。 但是以往 的监测技术已经无法满足当代工业生产的需求。伴随着通讯技术、电子技术和计 算机网络技术的快速发展, 丰富的网络资源以及不断降低的成本为网络化远程监 控系统提供了可能。 液位监控是当代工业测控中较为普遍的一类问题,在石油、化工、电力等工 业部门中应用极为普及,是工业生产过程