摘 要:為克服傳統監控系統中存在的系統數據實時性不強、有效資源不能共享等缺陷,提出一種基于.NET技術的遠程監控系統,該系統采用B/S模式實現與局域網的無縫連接;利用多線程技術實現數據的采集和處理;利用Socket通信技術保證現場數據和操作指令的可靠傳輸;利用先進的GDI+技術實現動態圖形的生成和傳送。著重從服務器端的數據采集處理、數據通信及客戶端的動態圖形顯示三個方面對監控系統的實現進行論述。該系統不但彌補了傳統監控系統的不足,而且提高了系統的實時性和快速性。
關鍵詞:遠程監控; 多線程; Socket; 動態圖形
中圖分類號:TP311 文獻標識碼:A
文章編號:1004-373X(2010)13-0137-03
Design and Realization of Remote Monitoring System Based on .NET Technology
CHEN Chun-e
(College of Physics and Information Technology, Sh
nxi Normal University, Xi’an 710062, China)
Abstract: A remote monitoring system based on .NET technology is proposed for overcoming defects in traditional monitoring system such as weak real-time data and unshared efficient resource. This system adopts B/S mode to connect WAN and LAN seamlessly, uses multithreading technique to realize data acquisition and processing, deploys the Socket technology to ensure a reliable data transmission, uses GDI+ technology to achieve dynamic graphics generation and transmission. The monitoring system is realized by the data acquisition, processing and transmission of server-side and dynamic graphic display of client-side. The system makes up the deficiency of the traditional monitoring system, and improves the speedy and real-time performance.
Keywords: remote monitoring; multithreading; Socket; dynamic figure
遠程監控系統指通過局域網、廣域網等計算機網絡,使用TCP/IP技術,遠程實現對工業生產過程的監視及控制,讓管理層或調度人員看到過去只有操作人員才能看到的生產現場的實時信息,并且能夠實現對生產現場的遠程調度、指揮決策以及遠程對生產設備的在線配置和故障診斷等功能[1]。傳統的監控系統因前臺的人機界面層和后臺的數據采集層復雜程度不同常采用不同的開發環境,兩層都是能獨立運行的應用程序,在實際使用時系統維護困難、配置復雜且遠程調度的靈活性也很差,網絡技術和.NET技術的發展很好地解決了上述問題,為更好地實現遠程監控提供了開發平臺。本文提出了一種在.NET技術基礎上構建的基于B/S結構的遠程監控系統,克服了傳統監控系統的弊端,并使得系統的實時性和快速性得到了提高。……