基于C/S模式的三容水箱远程实验系统的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
远程控制系统是计算机通信技术在控制学科的重要应用,它能实现资源共享,在线监测,故障诊断等功能,具有广阔的前景。文章以三容水箱液位控制系统为对象,以构建方便简单的网络实验室为目的,结合远程控制技术,VC++面向对象技术,采用Client/Server(C/S)模式,实现了对三容水箱的远程控制。该系统的硬件由远程控制计算机、因特网、主控计算机和三容液位控制系统等组成,软件由远程控制软件和本地控制程序组成。论文的主要内容如下:
     首先介绍了远程实验系统的研究背景和研究意义,结合国内外发展现状和应用情况,确定了主要研究任务。通过对C/S与Browser/Server(B/S)两种体系结构进行分析比较,提出了采用C/S模式设计三容水箱远程实验系统。阐述了基于TCP/IP协议套接口的特点,指出了适合用于处理大量数据的字节流套接口是该系统的主要网络编程接口。
     然后对远程实验系统的软件设计过程和设计方法进行了详细的说明,本系统以VC++6.0软件为基础,利用Winsocket完成了客户端和控制服务器端的通信程序设计,实现了基于C/S结构的三容水箱远程控制系统。客户端主要完成连接服务器、用户登录、向服务器发布控制指令、参数设置、接收服务器传送过来的数据和曲线显示等功能;服务器端主要完成指令接收、数据库和控制算法实现等功能。系统以SQL Server2000为数据库管理软件,结合ActiveX Data Obiects(ADO)技术实现对数据库的访问。
     最后通过对系统进行多次实验,调试和修改程序,完成了三容水箱远程实验系统的联机实验并取得了预期的结果。试验结果证明了该方案的有效性与可行性。
Remote control experiment system is an important application of computer communication technology in the technology of control; it takes good advantage of the limited resource into full use which is with extensive foreground. The article designs a primary remote experimental system of Three-tank water control system and realizes it. The hardware of the system is composed of remote control computer, internet, computer, host computer and three-tank water control system, etc; the software is composed of remote control software and local control program.
     The article first introduces the research background and significance of remote control experimental system, and it identifies its main researching task combined with the technology's state of development and application home and abroad. Then, the article proposes that the three-tank water long-distance control system should adopt C/S mode after comparing and analyzing the C/S and B/S mode. Next the author describes the feature of Winsocket based upon TCP/IP Protocol, and indicates that the byte stream socket which suits for disposing large amounts of data is the main network programming interface for the system to program the network long-distance control software.
     The system is based on Vc++6.0 software, and it makes use of Winsocket to accomplish the communicator design of the client and the control server, and it realizes the three-tank water remote control system based on the C/S structure. The client mainly functions as user's logging on, experiment bespoke, sending order to server, parameter setting, sending and receiving the data from the server and graphic displaying, etc; while the server mainly functions as instruction receiving, data real-time control, the realization of control algorithm, etc. The system uses SQL Server2000 as the managing software of data base, visits the data base with VC, and connects the database with ADO technology.
     The article makes a clear explanation to the process of the software design and the method of the control system. It goes through many times of experimenting, program debugging and modifying and it accomplishes the three-tank water remote control system and realizes the expectant outcome. The experiment proves the effectiveness of the project, and points out the ways in which the system should improve in the future.
引文
[1]余海晨,仲崇权,基于Internet的控制系统远程监控方案及实例,计算机自动测量与控制,2001,9(5):33-37
    [2]郑文波.控制网络技术.北京:清华大学出版社,2001,8
    [3]黄杰,吴平东,王晓峰等.基于因特网的远程控制系统的基础研究[J].自动化仪表.2004,25(4):9-13
    [4]张友生.远程控制编程技术[M].北京:电子工业出版社,2002
    [5]John T.Bell and H.Scott Fogler,Vicher:A Prototype Virtual Reality Based Educational Modual for Chemical Reaction Engineering Computer Applications in Engineering Education.4(4):1996
    [6]Jim Henry,Engineering Laboratorys on the Web,http://chen.engr.utc.edu/
    [7](美)W.Richard Stevens.TCP/IP 详解(卷一:协议)[M].北京:机械工业出版社,2001-3:53-68
    [8]Yen-Jen,Wei-hsiu Ma,David H.C.Du,James A.Schnepf.Creating a Virtual Network Laboratory.International Conference on Multimedia Computing and Systems-Proceedings,1997,Jun 3-6:642
    [9]Lee,Eunjeong.Force and impact control for robot manipulators using time delay.IEEE International Symposium on Industrial Electronics.1999
    [10]John C.Waller,Natalie Foster.Training via the web:a virtual instrument.Computers&Education,2000,35:161-167
    [11]张云生.实时控制系统软件设计原理及应用[M].国防工业出版社.1998:58-82,105-155
    [12]王宏杰,颜国正.基于C/S模型机器人控制器的研究及其应用[J].机器人,2000,24(3):228-233
    [13]王达.计算机网络远程控制.北京:清华大学出版社,2003
    [14]Norman E.Smith.Intmnet客户/服务器系统测试.北京:机械工业出版社,1999:47-55
    [15]Harrison,David etc.An accumulation-based,closed-loop scheme for expected minimum rate and weighted rate services.Computer Networks.Aug,2004
    [16]李建军.Internet远程监控软件设计,微计算机信息.2003,19(1)
    [17]C.C.KO,Ben M.Chen,S.H.Chen,V.Ramakrishnan,R.Chen,S.Y.Hu,Y.Zhuang.A large-scale Web-based virtual oscilloscope laboratory experiment.Engineering Science and Education,2000,April:69-76
    [18]Klaus Schilling,Hubert Roth and Robert Lieb.Remote control of a "MARS ROVER" via internet-to support education in control and teleoperations[J].Acta Astronautica 2002.Vol.50,No.3,PP.173-178
    [19]武苍林.Browser/Server与Client/Server结构的分析与比较.电脑技术信息[J],1999(8):35-36
    [20]雷振甲.计算机网络管理及系统开发.电子工业出版社.2002.01.
    [21]http://www.instrument.com.cn/secondhand/shtml/0003950,shtml
    [22]Anthony Jones.Windows网络编程技术.北京:机械工业出版社,2000:108-121
    [23]Understanding Client-Server Applications.http://www.ni,com
    [24]张明华.基于互联网的远程机电控制关键技术的研究[D].西北工业大学硕士学位论文.2003
    [25]谢希仁.计算机网络(第三版).大连理工大学出版社.2000
    [26]高惠敏,曾建湖等.基于Winsock的网络通信程序设计.99全国仿真技术学术会议论文集.1999.248-250
    [27]周金萍,徐丙立,姜小光等.Windows系统编程[M].北京:人民邮电出版社.2002.7:125-196
    [28]A.Ferreo and V.Piuri.A simulation tool for virtual laboratory experiments in a www environment.In Proc.IMTC98,St.Paul,MN,May 1997,pp.102-107
    [29]Fong,Terrence.The peer-to-peer human-robot interaction project.Collection of Technical Papers-AIAA Space 2005 Conference and Exposition.2005
    [30]耿冲.SQL Server 2000数据库管理[M].北京:机械工业出版社,2001.78-109
    [31]庄成三,洪玫,杨秋辉.数据库系统原理及其应用[M].北京:电子工业出版社,2000
    [32]常选.实时数据库系统的关系数据模型[J].计算机与现代化.2000:23-26
    [33]Microsoft Corp.SQL Server联机丛书[M].北京:清华大学出版社,2000.102-109
    [34]郑章,程刚,张勇.Visual C++6.0数据库开发技术.机械工业出版社.1999.09
    [35]周冶平,ADO数据存取技术.计算机应用.1999,19(7):23-25
    [36]辛长安,梅林.VC++编程技术与难点解析[M].北京:清华大学出版社.2002.4:32-96
    [37]王涛,数据库ADO访问技术的应用.计算机时代.2002,7:22-23
    [38]马长青,苏庆堂,刘贤喜.用WinSock开发C/S间的网络通信程序.农业网络信息,2004,1:23-27
    [39]黄玉娟.基于Internet的远程维护系统研究:[硕士学位论文].武汉:武汉理工大学自动化学院.2003
    [40]何小阳.计算机监控原理及技术.重庆大学出版社.2003.01
    [41]黄维通.Visual C++面向对象与可视化程序设计.北京:清华大学出版社,2000.5
    [42]Anthony Jones,Jim Ohlund.Windows网络编程技术.机械工业出版社.2000:357-539
    [43]谭思亮,邹超群等.Visual C++串口通信工程开发实例导航.人民邮电出版社.2003
    [44]施炜,李铮,秦颖.Windows Sockets规范及应用--Windows网络变成接口.上海交通大学出版社,1996
    [45]王群燕,商建东.一种用于测试技术教学实验的网络虚拟仪器实验室[J].河南科技大学学报,2006,27(6):57-59
    [46]David J.Kruglinski著.Visual C++技术内幕(第五版)[M].北京希望电子出版社.1999:509-524
    [47]马燕.基于C/S的计算机远程监控技术.西南师范大学学报.2002,27(4):501-505
    [48]张姝.倒立摆网络实验系统的研究.浙江大学硕士毕业论文[M].2005
    [49]程维兴,林小茶.北京,清华大学出版社.2000.1
    [50]邓小石等.精通Visual C++6.0.北京,清华大学出版社.2000.2
    [51]路明等.C++自学通.北京,机械工业出版社.1997.12
    [52]张海棠.Visual C++6.0编程指南.北京,航空工业出版社.1999.11
    [53][美]FG 欣斯基.过程控制系统(第二版).北京:化学工业出版社.1982,4
    [54]Celar Batur."Remote turning of a PID Position Controller Via Internet".Proceeding of the American Control Conference.Chicago,June 2000
    [55]黄维通.Visual C++面向对象与可视化程序设计.北京:清华大学出版社.2000.5
    [56]Hui Peng,Tohru Ozaki,Valerie Haggan-Ozaki,Yukihiro Toyoda.A Parameter Optimization Method for Radial Basis Function Type Models[J].IEEE TRANSACTIONS ON NEURAL NETWORKS,MARCH 2003.4:32-438.
    [57]Hui Peng,Toru Ozakib,Yukihiro Toyodac,Keiji Oda.Exponential ARX model-based long-range predictive control strategy for power plants.Control Engineering Practice 9(2001)1353-1360
    [58]Hui Peng,Tohru Ozaki,Valerie Haggan-Ozaki,Yukihiro Toyoda,A Parameter Optimization Method for Radial Basis Function Type Models[J].IEEE TRANSACTIONS ON NEURAL NETWORKS,MARCH 2003 432-438
    [59]Hui Peng,Tohru Ozaki,Yukihiro Toyoda,Hideo Shioya,Kazushi Nakano,Valerie Haggan-Ozaki,Massafumi Mori.RBF-ARX model-based nonlinear system modeling and predictive control with application to a No- decomposition pracess.Control Engineering Practice 12(2004)191-203
    [60]http://web.mit.edu/newsoffice/rd/2001/apr.html

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700