基于WINCE的天然氣流量計算機(jī)系統(tǒng)的設(shè)計與實現(xiàn)
發(fā)布時間:2018-03-14 03:16
本文選題:天然氣 切入點:孔板流量計 出處:《西南交通大學(xué)》2015年碩士論文 論文類型:學(xué)位論文
【摘要】:天然氣流量計量是一項重要技術(shù)基礎(chǔ)工作,是影響天然氣產(chǎn)業(yè)發(fā)展的重要因素。流量計算機(jī)是負(fù)責(zé)天然氣管道流量的測量設(shè)備,肩負(fù)著流量計量系統(tǒng)最基礎(chǔ)的測量管理職責(zé)。因此保證流量計算機(jī)的運行穩(wěn)定、計量準(zhǔn)確十分重要。為了滿足天然氣流量計量的實時性和可靠性要求,開發(fā)一款穩(wěn)定性高且性能優(yōu)的流量計算機(jī)具有重要的現(xiàn)實意義。本課題以成都國光電子儀表有限責(zé)任公司天然氣流量計算機(jī)系統(tǒng)開發(fā)升級項目為背景,設(shè)計并開發(fā)了一款高實時性、運行可靠的流量計算機(jī)。本文所設(shè)計與開發(fā)流量計算機(jī)應(yīng)用于標(biāo)準(zhǔn)孔板流量計的天然氣測量工作。在對孔板流量計流量計算方法的分析與研究基礎(chǔ)上,優(yōu)化了壓縮因子計算流程,極大地縮減了流量計算耗時,使實時流量計算在本文所選硬件平臺上得以實現(xiàn)。根據(jù)天然氣計量系統(tǒng)技術(shù)要求,結(jié)合實際應(yīng)用情況,確立了系統(tǒng)的總體架構(gòu)。分析了硬件平臺VP-25W1和WINCE系統(tǒng)特點,完成了軟件架構(gòu)的分析與設(shè)計,為系統(tǒng)設(shè)計了多線程工作體系與線性化的業(yè)務(wù)邏輯。針對業(yè)務(wù)需求,設(shè)計并開發(fā)了高效的內(nèi)部寄存器系統(tǒng),優(yōu)化了數(shù)據(jù)處理流程并提高了系統(tǒng)性能。流量計算機(jī)軟件使用C#語言編寫,運行于.NET CF環(huán)境。軟件以主工作線程為主體,主工作線程周期性地執(zhí)行數(shù)據(jù)采集、流量計算、數(shù)據(jù)存儲、顯示刷新等任務(wù)。實時且高精度的流量計算確保了計量的準(zhǔn)確性,采用前補(bǔ)償算法完成流量補(bǔ)償工作。開發(fā)了基于SQLite的數(shù)據(jù)存儲管理系統(tǒng),高效可靠地管理系統(tǒng)運行參數(shù)、歷史數(shù)據(jù)和系統(tǒng)事件。Modbus TCP服務(wù)器和TCP服務(wù)器分別為監(jiān)控中心提供實時流量數(shù)據(jù)和歷史流量數(shù)據(jù)。設(shè)計并開發(fā)了RTU端監(jiān)控軟件,能夠查看各路流量計實時數(shù)據(jù)和歷史數(shù)據(jù),且具備參數(shù)設(shè)置、流量計狀態(tài)更改等功能。系統(tǒng)具備良好可擴(kuò)展性和二次開發(fā)能力。本文設(shè)計并開發(fā)的流量計算機(jī)能夠?qū)崟r完成數(shù)據(jù)采集、流量計算、動態(tài)顯示、參數(shù)設(shè)置、系統(tǒng)校時、實時數(shù)據(jù)上傳和歷史數(shù)據(jù)存儲管理等功能,滿足天然氣流量計量的自動化、智能化和網(wǎng)絡(luò)化需求,為定制性強(qiáng)、實時性要求高且穩(wěn)定可靠的天然氣流量計量設(shè)備設(shè)計與開發(fā)提供了方法和思路。
[Abstract]:Natural gas Flowmeter is an important technical foundation work and an important factor affecting the development of natural gas industry. In order to meet the requirements of real-time and reliability of natural gas Flowmeter, it is very important to ensure the stability and accuracy of flow computer. It is of great practical significance to develop a flow computer with high stability and excellent performance. This subject is based on the development and upgrading project of natural gas flow computer system of Chengdu Guoguang Electronic instrument Co., Ltd. The design and development of a high real-time, The flow computer is designed and developed in this paper and applied to the natural gas measurement of the standard orifice plate Flowmeter. Based on the analysis and research of the flow calculation method of the orifice plate Flowmeter, The compression factor calculation flow is optimized, the time consuming of flow calculation is greatly reduced, and the real-time flow calculation is realized on the hardware platform selected in this paper. According to the technical requirements of natural gas metering system, combined with the actual application situation, The overall architecture of the system is established, the characteristics of the hardware platform VP-25W1 and WINCE are analyzed, the analysis and design of the software architecture are completed, and the multi-thread working system and the linearized business logic are designed for the system. The efficient internal register system is designed and developed, the data processing flow is optimized and the system performance is improved. The flow computer software is written in C # language and runs in .NET CF environment. The main worker thread periodically performs tasks such as data collection, flow calculation, data storage, display refresh, etc. The real-time and high precision flow calculation ensures the accuracy of measurement. A data storage and management system based on SQLite is developed, which can efficiently and reliably manage the operation parameters of the system. The history data and system event. Modbus TCP server and TCP server provide real time flow data and history flow data for the monitoring center respectively. The monitoring software of RTU terminal is designed and developed, which can view the real time data and history data of various Flowmeters. The system has good expansibility and secondary development ability. The flow computer designed and developed in this paper can complete data acquisition, flow calculation, dynamic display, parameter setting in real time. System calibration, real-time data upload and historical data storage and management functions, to meet the natural gas Flowmeter automatic, intelligent and network requirements, for the customization, The design and development of natural gas flow metering equipment with high real-time requirement and stability and reliability are provided.
【學(xué)位授予單位】:西南交通大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2015
【分類號】:TH814
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 陳利瓊;溫曉峰;張虹繽;;天然氣大流量計量方法研究[J];管道技術(shù)與設(shè)備;2011年05期
2 單海娣;劉辰魁;于巍;張紅剛;常聰梅;王猛;田偉亮;;對AGA8-92DC方程計算天然氣壓縮因子的探討[J];工業(yè)計量;2013年01期
3 張前榮;;對天然氣發(fā)展“十二五”規(guī)劃的解讀及政策建議[J];發(fā)展研究;2013年05期
4 辛立峰;;超聲波流量計的原理及應(yīng)用[J];中國石油和化工標(biāo)準(zhǔn)與質(zhì)量;2011年09期
5 戴禎建;流量測量儀表選用探討[J];中國計量;2005年08期
6 鄒道懋;姜玲玲;;我國天然氣計量現(xiàn)狀及問題探討[J];科技傳播;2011年08期
7 李建華;;天然氣流量計量技術(shù)發(fā)展趨勢分析[J];科技與企業(yè);2012年17期
8 馮建生;;孔板流量計測量原理及流量計算存在問題分析[J];煤礦安全;2014年10期
9 高軍;陳亮;肖迪;;中國天然氣計量技術(shù)標(biāo)準(zhǔn)體系介紹[J];中國計量;2014年01期
10 吳長春,張孔明;天然氣的運輸方式及其特點[J];油氣儲運;2003年09期
,本文編號:1609361
本文鏈接:http://sikaile.net/kejilunwen/yiqiyibiao/1609361.html