基于DDC的計(jì)算機(jī)過(guò)程控制遠(yuǎn)程實(shí)驗(yàn)系統(tǒng)
本文關(guān)鍵詞:基于DDC的計(jì)算機(jī)過(guò)程控制遠(yuǎn)程實(shí)驗(yàn)系統(tǒng) 出處:《內(nèi)蒙古大學(xué)》2017年碩士論文 論文類型:學(xué)位論文
更多相關(guān)文章: 遠(yuǎn)程實(shí)驗(yàn)系統(tǒng) DDC 實(shí)時(shí)性 MFC MySQL
【摘要】:遠(yuǎn)程實(shí)驗(yàn)系統(tǒng)對(duì)于培養(yǎng)工科類專業(yè)學(xué)生的專業(yè)技術(shù)應(yīng)用能力,具有重要意義,特別是自動(dòng)化專業(yè)學(xué)生,實(shí)驗(yàn)教學(xué)是其教學(xué)環(huán)節(jié)的重要組成部分,通過(guò)實(shí)踐可以驗(yàn)證所學(xué)理論知識(shí)。同時(shí),遠(yuǎn)程實(shí)驗(yàn)系統(tǒng)還可以有效地解決因?qū)嶒?yàn)人數(shù)與實(shí)驗(yàn)設(shè)備數(shù)不匹配,而造成實(shí)驗(yàn)教學(xué)質(zhì)量下降和教師工作強(qiáng)度增加的問(wèn)題。論文針對(duì)上述問(wèn)題,并利用學(xué)校工業(yè)控制系統(tǒng)實(shí)驗(yàn)室的資源,在原有控制方式的基礎(chǔ)上,加入遠(yuǎn)程實(shí)驗(yàn)系統(tǒng)。以CS4000型過(guò)程控制實(shí)驗(yàn)裝置為被控對(duì)象,選用直接數(shù)字控制(Direct Digital Control,DDC)系統(tǒng)作為本地控制方式,采用C/S架構(gòu)編程實(shí)現(xiàn)遠(yuǎn)程客戶端、控制服務(wù)器兩部分應(yīng)用程序,對(duì)14臺(tái)設(shè)備和網(wǎng)絡(luò)攝像頭進(jìn)行組網(wǎng),實(shí)現(xiàn)遠(yuǎn)程實(shí)時(shí)控制、數(shù)據(jù)采集及視頻實(shí)時(shí)預(yù)覽等功能。論文完成的主要工作如下:1.對(duì)本地實(shí)驗(yàn)系統(tǒng)進(jìn)行升級(jí)改造,并設(shè)計(jì)基于DDC的遠(yuǎn)程實(shí)驗(yàn)系統(tǒng)方案,重點(diǎn)對(duì)系統(tǒng)中的通信程序部分做了實(shí)時(shí)性研究,分別使用Visual C++6.0中兩種串口通信方法,與DDC模塊進(jìn)行通信并測(cè)試串口通信的實(shí)時(shí)性,選擇實(shí)時(shí)性較好的調(diào)用API函數(shù)方式作為系統(tǒng)串口通信方法;然后采用基于TCP/IP協(xié)議的Winsock編程,實(shí)現(xiàn)客戶端和服務(wù)器的網(wǎng)絡(luò)通信服務(wù)程序,并測(cè)試網(wǎng)絡(luò)通信實(shí)時(shí)性與通信距離之間的關(guān)系;最后綜合分析系統(tǒng)的實(shí)時(shí)性滿足需求,方案可行。2.控制服務(wù)器部分使用Visual C++6.0開發(fā),其中串口選用異步通信方式,網(wǎng)絡(luò)通信部分程序和串口通信及數(shù)據(jù)處理程序都采用多線程技術(shù)實(shí)現(xiàn),利用ODBC組件實(shí)現(xiàn)Visual C++應(yīng)用程序?qū)ySQL數(shù)據(jù)庫(kù)的操作;然后編程實(shí)現(xiàn)增量式PID算法,最后設(shè)計(jì)歷史數(shù)據(jù)庫(kù)表,并規(guī)定了存儲(chǔ)規(guī)則,以減少存儲(chǔ)量。利用Visual Studio 2012開發(fā)遠(yuǎn)程客戶端應(yīng)用程序,使用MFC基礎(chǔ)類庫(kù)設(shè)計(jì)并實(shí)現(xiàn)遠(yuǎn)程客戶端界面,使用由楊國(guó)君老師自主開發(fā)的曲線繪制庫(kù)CChart實(shí)現(xiàn)實(shí)時(shí)數(shù)據(jù)曲線顯示和歷史數(shù)據(jù)查詢功能;在設(shè)備網(wǎng)絡(luò)SDK的基礎(chǔ)之上進(jìn)行二次開發(fā),實(shí)現(xiàn)視頻實(shí)時(shí)預(yù)覽;最后設(shè)計(jì)并實(shí)現(xiàn)自定義應(yīng)用層協(xié)議,遠(yuǎn)程客戶端網(wǎng)絡(luò)通信程序也使用多線程技術(shù)實(shí)現(xiàn)。3.對(duì)系統(tǒng)進(jìn)行組網(wǎng)并設(shè)置路由器的轉(zhuǎn)發(fā)規(guī)則,然后針對(duì)系統(tǒng)主要功能,設(shè)計(jì)實(shí)際測(cè)試用例,分別對(duì)主要功能和實(shí)驗(yàn)效果進(jìn)行整體測(cè)試,發(fā)現(xiàn)系統(tǒng)中存在的問(wèn)題并進(jìn)行優(yōu)化。
[Abstract]:Remote experiment system is very important for training professional and technical application ability of engineering majors. Especially for automation majors, experimental teaching is an important part of their teaching links. Through practice, we can verify theoretical knowledge. At the same time, the remote experiment system can also effectively solve the problem of the decline of experimental teaching quality and the increase of teachers' working intensity due to the mismatch between the number of experimental people and the number of experimental devices. In view of the above problems, and using the resources of the laboratory of the school industrial control system, the remote experiment system is added on the basis of the original control mode. The CS4000 process control experimental device for the controlled object, using direct digital control (Direct Digital Control, DDC) system as the local control mode, using C/S architecture, programming the remote control server client two part of the application, the 14 sets of equipment and network camera network cameras and realize remote real-time control, data acquisition and video real time preview function. The main work is as follows: the upgrading of local experimental system 1., and the design of remote experiment system based on DDC, focuses on the research of real-time communication program in the system, using two Visual C++6.0 serial communication method, real-time communication and test serial communication with DDC module choose a good real-time, call the API function as a method of serial communication system; then using TCP/IP protocol based on the Winsock programming, to achieve network communication service program of client and server, and test the relationship between the network and communication distance through reliance; finally the comprehensive analysis system to meet the needs of real-time, feasible. 2. server control part of the use of Visual C++6.0 development, the selection of serial asynchronous communication, network communication program and serial communication and data processing program using multithreading technology, realize the operation of Visual C++ application on the MySQL database using ODBC component programming; then the incremental PID algorithm, finally the design history database table, and the provisions of the in order to reduce the amount of memory storage rules. Using Visual Studio 2012 development of the remote client application, using the MFC foundation class library design and implementation of remote client interface, using self-developed by Yang teacher monarch curve drawing library CChart to achieve real-time data curve display and historical data query function; two development based on SDK network equipment, to achieve real-time video preview and final design; the implementation of custom application layer protocol, the remote client network communication program also uses multithreading technology to achieve. 3., we set up the network and set up the forwarding rules of the router. Then we designed the actual test cases for the main functions of the system, and tested the main functions and the experimental results respectively. We found the problems in the system and optimized them.
【學(xué)位授予單位】:內(nèi)蒙古大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2017
【分類號(hào)】:TP273
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 董圣友;肖繼學(xué);廖旋;程志;李海軍;曾強(qiáng);;Visual Studio中串行通信方法實(shí)時(shí)性能測(cè)試[J];中國(guó)測(cè)試;2015年02期
2 杜曉春;劉婉妮;王宏;;TCP/IP應(yīng)用層協(xié)議分析與C++實(shí)現(xiàn)[J];電子測(cè)試;2013年23期
3 張倩;李海港;;基于C/S結(jié)構(gòu)的網(wǎng)絡(luò)型過(guò)程控制實(shí)驗(yàn)系統(tǒng)開發(fā)[J];實(shí)驗(yàn)室研究與探索;2013年03期
4 廖旋;肖繼學(xué);殷巧;程志;;Visual C++中串行通信方法的實(shí)時(shí)性研究[J];西華大學(xué)學(xué)報(bào)(自然科學(xué)版);2012年06期
5 梁居寶;杜克明;孫忠富;;基于3G和VPN的溫室遠(yuǎn)程監(jiān)控系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[J];中國(guó)農(nóng)學(xué)通報(bào);2011年29期
6 黃曉波;;基于Windows API的異步串口通信軟件設(shè)計(jì)[J];現(xiàn)代電子技術(shù);2011年16期
7 齊巖磊;陳娟;祁欣;;基于單片機(jī)和組態(tài)王的溫度監(jiān)控系統(tǒng)的設(shè)計(jì)[J];電子測(cè)量技術(shù);2011年07期
8 謝鵬華;牛昱光;;DCS遠(yuǎn)程監(jiān)控實(shí)驗(yàn)教學(xué)系統(tǒng)的OPC技術(shù)實(shí)現(xiàn)方法[J];太原理工大學(xué)學(xué)報(bào);2011年02期
9 吳文華;楊慶;沈新元;王宏志;吳良;張朋勇;;智能實(shí)驗(yàn)室管理系統(tǒng)下的實(shí)驗(yàn)室開放管理[J];實(shí)驗(yàn)技術(shù)與管理;2011年02期
10 崔紅志;索巖;;基于API的Win32串口通信編程技術(shù)[J];科技信息;2010年07期
相關(guān)博士學(xué)位論文 前2條
1 王君;基于模糊控制策略的溫室遠(yuǎn)程智能控制系統(tǒng)的研究[D];吉林大學(xué);2015年
2 龐文堯;基于C/S模式的遠(yuǎn)程控制系統(tǒng)研究開發(fā)[D];浙江大學(xué);2003年
相關(guān)碩士學(xué)位論文 前5條
1 陳天達(dá);面向管理的智能化生產(chǎn)環(huán)境監(jiān)測(cè)系統(tǒng)[D];內(nèi)蒙古大學(xué);2016年
2 胡晨;基于CS4000平臺(tái)的遠(yuǎn)程實(shí)驗(yàn)系統(tǒng)的設(shè)計(jì)和實(shí)現(xiàn)[D];南京理工大學(xué);2014年
3 陳潔;基于C/S模式的三容水箱遠(yuǎn)程實(shí)驗(yàn)系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[D];中南大學(xué);2008年
4 王曉華;基于TCP/IP和數(shù)據(jù)庫(kù)技術(shù)的遠(yuǎn)程監(jiān)控系統(tǒng)的研究[D];浙江工業(yè)大學(xué);2007年
5 鄔海杰;基于雙C/S結(jié)構(gòu)的計(jì)算機(jī)控制技術(shù)遠(yuǎn)程網(wǎng)絡(luò)實(shí)驗(yàn)系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[D];浙江大學(xué);2003年
,本文編號(hào):1341770
本文鏈接:http://www.sikaile.net/shoufeilunwen/xixikjs/1341770.html