基于DDC的計算機過程控制遠程實驗系統(tǒng)
本文關(guān)鍵詞:基于DDC的計算機過程控制遠程實驗系統(tǒng) 出處:《內(nèi)蒙古大學(xué)》2017年碩士論文 論文類型:學(xué)位論文
更多相關(guān)文章: 遠程實驗系統(tǒng) DDC 實時性 MFC MySQL
【摘要】:遠程實驗系統(tǒng)對于培養(yǎng)工科類專業(yè)學(xué)生的專業(yè)技術(shù)應(yīng)用能力,具有重要意義,特別是自動化專業(yè)學(xué)生,實驗教學(xué)是其教學(xué)環(huán)節(jié)的重要組成部分,通過實踐可以驗證所學(xué)理論知識。同時,遠程實驗系統(tǒng)還可以有效地解決因?qū)嶒炄藬?shù)與實驗設(shè)備數(shù)不匹配,而造成實驗教學(xué)質(zhì)量下降和教師工作強度增加的問題。論文針對上述問題,并利用學(xué)校工業(yè)控制系統(tǒng)實驗室的資源,在原有控制方式的基礎(chǔ)上,加入遠程實驗系統(tǒng)。以CS4000型過程控制實驗裝置為被控對象,選用直接數(shù)字控制(Direct Digital Control,DDC)系統(tǒng)作為本地控制方式,采用C/S架構(gòu)編程實現(xiàn)遠程客戶端、控制服務(wù)器兩部分應(yīng)用程序,對14臺設(shè)備和網(wǎng)絡(luò)攝像頭進行組網(wǎng),實現(xiàn)遠程實時控制、數(shù)據(jù)采集及視頻實時預(yù)覽等功能。論文完成的主要工作如下:1.對本地實驗系統(tǒng)進行升級改造,并設(shè)計基于DDC的遠程實驗系統(tǒng)方案,重點對系統(tǒng)中的通信程序部分做了實時性研究,分別使用Visual C++6.0中兩種串口通信方法,與DDC模塊進行通信并測試串口通信的實時性,選擇實時性較好的調(diào)用API函數(shù)方式作為系統(tǒng)串口通信方法;然后采用基于TCP/IP協(xié)議的Winsock編程,實現(xiàn)客戶端和服務(wù)器的網(wǎng)絡(luò)通信服務(wù)程序,并測試網(wǎng)絡(luò)通信實時性與通信距離之間的關(guān)系;最后綜合分析系統(tǒng)的實時性滿足需求,方案可行。2.控制服務(wù)器部分使用Visual C++6.0開發(fā),其中串口選用異步通信方式,網(wǎng)絡(luò)通信部分程序和串口通信及數(shù)據(jù)處理程序都采用多線程技術(shù)實現(xiàn),利用ODBC組件實現(xiàn)Visual C++應(yīng)用程序?qū)ySQL數(shù)據(jù)庫的操作;然后編程實現(xiàn)增量式PID算法,最后設(shè)計歷史數(shù)據(jù)庫表,并規(guī)定了存儲規(guī)則,以減少存儲量。利用Visual Studio 2012開發(fā)遠程客戶端應(yīng)用程序,使用MFC基礎(chǔ)類庫設(shè)計并實現(xiàn)遠程客戶端界面,使用由楊國君老師自主開發(fā)的曲線繪制庫CChart實現(xiàn)實時數(shù)據(jù)曲線顯示和歷史數(shù)據(jù)查詢功能;在設(shè)備網(wǎng)絡(luò)SDK的基礎(chǔ)之上進行二次開發(fā),實現(xiàn)視頻實時預(yù)覽;最后設(shè)計并實現(xiàn)自定義應(yīng)用層協(xié)議,遠程客戶端網(wǎng)絡(luò)通信程序也使用多線程技術(shù)實現(xiàn)。3.對系統(tǒng)進行組網(wǎng)并設(shè)置路由器的轉(zhuǎn)發(fā)規(guī)則,然后針對系統(tǒng)主要功能,設(shè)計實際測試用例,分別對主要功能和實驗效果進行整體測試,發(fā)現(xiàn)系統(tǒng)中存在的問題并進行優(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é)位級別】:碩士
【學(xué)位授予年份】:2017
【分類號】:TP273
【參考文獻】
相關(guān)期刊論文 前10條
1 董圣友;肖繼學(xué);廖旋;程志;李海軍;曾強;;Visual Studio中串行通信方法實時性能測試[J];中國測試;2015年02期
2 杜曉春;劉婉妮;王宏;;TCP/IP應(yīng)用層協(xié)議分析與C++實現(xiàn)[J];電子測試;2013年23期
3 張倩;李海港;;基于C/S結(jié)構(gòu)的網(wǎng)絡(luò)型過程控制實驗系統(tǒng)開發(fā)[J];實驗室研究與探索;2013年03期
4 廖旋;肖繼學(xué);殷巧;程志;;Visual C++中串行通信方法的實時性研究[J];西華大學(xué)學(xué)報(自然科學(xué)版);2012年06期
5 梁居寶;杜克明;孫忠富;;基于3G和VPN的溫室遠程監(jiān)控系統(tǒng)的設(shè)計與實現(xiàn)[J];中國農(nóng)學(xué)通報;2011年29期
6 黃曉波;;基于Windows API的異步串口通信軟件設(shè)計[J];現(xiàn)代電子技術(shù);2011年16期
7 齊巖磊;陳娟;祁欣;;基于單片機和組態(tài)王的溫度監(jiān)控系統(tǒng)的設(shè)計[J];電子測量技術(shù);2011年07期
8 謝鵬華;牛昱光;;DCS遠程監(jiān)控實驗教學(xué)系統(tǒng)的OPC技術(shù)實現(xiàn)方法[J];太原理工大學(xué)學(xué)報;2011年02期
9 吳文華;楊慶;沈新元;王宏志;吳良;張朋勇;;智能實驗室管理系統(tǒng)下的實驗室開放管理[J];實驗技術(shù)與管理;2011年02期
10 崔紅志;索巖;;基于API的Win32串口通信編程技術(shù)[J];科技信息;2010年07期
相關(guān)博士學(xué)位論文 前2條
1 王君;基于模糊控制策略的溫室遠程智能控制系統(tǒng)的研究[D];吉林大學(xué);2015年
2 龐文堯;基于C/S模式的遠程控制系統(tǒng)研究開發(fā)[D];浙江大學(xué);2003年
相關(guān)碩士學(xué)位論文 前5條
1 陳天達;面向管理的智能化生產(chǎn)環(huán)境監(jiān)測系統(tǒng)[D];內(nèi)蒙古大學(xué);2016年
2 胡晨;基于CS4000平臺的遠程實驗系統(tǒng)的設(shè)計和實現(xiàn)[D];南京理工大學(xué);2014年
3 陳潔;基于C/S模式的三容水箱遠程實驗系統(tǒng)的設(shè)計與實現(xiàn)[D];中南大學(xué);2008年
4 王曉華;基于TCP/IP和數(shù)據(jù)庫技術(shù)的遠程監(jiān)控系統(tǒng)的研究[D];浙江工業(yè)大學(xué);2007年
5 鄔海杰;基于雙C/S結(jié)構(gòu)的計算機控制技術(shù)遠程網(wǎng)絡(luò)實驗系統(tǒng)的設(shè)計與實現(xiàn)[D];浙江大學(xué);2003年
,本文編號:1341770
本文鏈接:http://sikaile.net/shoufeilunwen/xixikjs/1341770.html