A reusable design of geophysical data acquisition software

A reusable design of geophysical data acquisition software

Available online at www.sciencedirect.com Procedia Engineering 16 (2011) 239 – 244 International Workshop on Automobile, Power and Energy Engineerin...

170KB Sizes 20 Downloads 105 Views

Available online at www.sciencedirect.com

Procedia Engineering 16 (2011) 239 – 244

International Workshop on Automobile, Power and Energy Engineering

A reusable design of geophysical data acquisition software Pei JingaJiang Qiyuna, Huang Dana a

School of Geosciences & Info-physicsCentral South UniversityChangsha,410083, China

Abstract

This article analyzes the level and variability of abstract models in geophysical data acquisition system, and designs a cross-platform and reusable geophysical data acquisition software framework using the pipe-filter pattern and abstract factory pattern, based on the modern software engineering, and improves the efficiency of such software development. The framework has been firstly applied in the wide filed electromagnetic system and got a good result. It has a great prospect and application value. © 2010 Published by Elsevier Ltd. Selection and/or peer-review under responsibility of Society for Automobile, Power and Energy Engineering. Keywords: geophysical data acquisition software reusable frameworkwork pipe-filter pattern abstract factory pattern

1. Introduction In recent years, with the develop of electronic technology and computer technology, geophysical data acquisition has a great progress, mainly in the three-dimensional data acquisition, multi-channel data acquisition, distributed data acquisition, high accuracy data acquisition, etc. [1]. Various hardware designs in geophysical exploration equipment highly improve acquisition requirements, and made data acquisition software become more complex and diverse. The design of traditional special acquisition software is increasingly inadequate at efficiency, quality and cost, so the design of geophysical acquisition software with stability, expansibility and reusability is meaningful. We provide a solution to satisfy current requirements for geophysical acquisition software, which got a good result in wide filed electromagnetic acquisition system [2]. 2. Geophysical data acquisition system 2.1 Abstract model of basic acquisition system

Pei Jing. Tel: +0-086-0731-88876296 ; fax:+0-086-0731-88876296 E-mail address: [email protected]

1877-7058 © 2011 Published by Elsevier Ltd. doi:10.1016/j.proeng.2011.08.1078

240

Pei Jing et al. / Procedia Engineering 16 (2011) 239 – 244

Basic geophysical data acquisition system is generally composed of sensors, signal conditioning circuit, sampling circuit and data processing model. In the more complex system, acquisition system includes an independent acquisition subsystem, a data processing subsystem and a communication subsystem, and each subsystem has a corresponding independent control. In communication system, direct circuit control changes into program control with protocol, which is different with basic geophysical acquisition system. So the abstract model of geophysical acquisition system is shown in Fig.1.

Fig.1 Abstract model of geophysical data acquisition system

2.2. Abstract model of multi-channel three-dimensional acquisition system Multi-channel three-dimensional acquisition system consists of one control core and many acquisition equipments with appropriate communication means. The abstract model is shown in Fig.2.

Fig.2 Abstract Model of geophysical multi-channel data s acquisition system

2.3. Abstract model of distributed acquisition system In distributed acquisition systems, each system works independently and has not direct relationship with control core. There are two common ways in current distributed geophysical acquisition system, one is automatic acquisition, and another is presetting time or parameters before acquisition which V8 used for example. However, the final data all should converge at one data processing core, the system can also use the multi-channel acquisition model like Fig.2. 3. The analysis of software requirements on geophysical data acquisition The tasks of geophysical data acquisition system are: determining acquisition parameters by humancomputer interaction, controlling acquisition process of geophysical equipments, data acquisition, data processing and visualization. From the tasks and hardware abstract description of geophysical acquisition system, we find that the demands for geophysical acquisition software which mainly includes setting parameters, data acquisition and recording collection status are not complicated. The acquisition model is more fixed, and the achieved functions are: controlling data acquisition according the specific protocol, picking data with specific format and resolving it into data model which users can identify, and display the data model with

Pei Jing et al. / Procedia Engineering 16 (2011) 239 – 244

appropriate way. The abstract layered model is divided into application layer, protocol layer, message layer and link layer to enhance maintainability, reusability and portability of software, as shown in Fig.3. Processing subsystem

Acquisition subsystem

Application layer

Application layer

Protocol layer

Protocol layer

Message layer

Message layer

Link layer

Link layer

Fig.3 Abstract layered model of geophysical data acquisition system

4. The cross-platform and reusable design of geophysical acquisition core Software framework consists of a set of mutual co-ordination classes, and it builds the overall architecture of system, defines its key responsibilities and the division of classes and objects, cooperation and control between classes and objects. The framework emphasizes the reusability of software and extensibility of system and provides reusability of software design level. According to the analysis of section 3, we propose a composite model based on pipe-filter pattern and abstract factory pattern. Pipe filter pattern is the data oriented software architecture, many "filters" connect each other through "pipes", and each "filter" has a data import and data export, the data flow out after the processing of a series of "filters", as shown in Fig.4. This pattern is very suitable for data transmission from top to bottom or bottom to top, as shown in Fig.3.

Fig.4 Pipe-filter pattern

According to the demands analysis, the realization of each "filter" is diverse and uncertain, so we use abstract factory pattern to resolve it. Abstract factory pattern which GoF proposed, is a creational pattern, provides a series of interfaces which are relevant and interdependent objects. It needn’t to specify the concrete classes, which made system independent of the creation, combination and indication of the products. We create the specific class when system needs a given product classes, and choose one to create according to configuration. The abstract factory pattern is shown in Fig.5. This pattern can resolve the problem that each "filter" is difference according to the difference of equipment sand methods. We combine the both patterns and propose a new software pattern for geophysical data acquisition. The structure is shown in Fig.6 [3-5].

241

242

Pei Jing et al. / Procedia Engineering 16 (2011) 239 – 244

AbstractFactory

Client

CreatProductA() CreatProductB()

AbstractProductA

ConcreteFactory1

ConcreteFactory2

CreatProductA() CreatProductB()

CreatProductA() CreatProductB()

ProductA1

ProductA2

AbstractProductB

ProductB1

ProductB2

Fig.5 Abstract factory pattern

SampleClient

AbstractFactory application

protocol in() out()

ConcreteFactory_1

ConcreteFactory_2

application_1

application_2

protocol_1

protocol_2

message in() out()

message_1

connection in() out()

connection_1

message_2

connection_2

Fig.6. A mixed pattern of pipe-filter and abstract factory

5. The realization of acquisition core of wide filed electromagnetic acquisition system. We use the pattern shown in Fig.6 to achieve the acquisition software of wide filed electromagnetic acquisition system, and develop it based on QT framework to meet the software demand for crossplatform. QT which is a cross-platform development framework of graphical user interface used C + + and initially be proposed by TrollTech, provides a variety of efficient API for Windows, WINCE, Linux,

Pei Jing et al. / Procedia Engineering 16 (2011) 239 – 244

embedded Linux ,Solaris and other operating systems, widely be used for software development of scientific computing, three-dimension modeling and petroleum geology. GDC_application init() onInit() setParam() onSetParam() sample() onSample()

GDC_protocol in() out() stateControl()

GDC_message in() out() msgProcess()

GDC_connection in() out()

Fig.7. Pipe-filter pattern of wide field electromagnetic acquisition system.

Fig.8 Acquisition timing diagram

Wide filed electromagnetic acquisition system adopts independent acquisition subsystem and data processing subsystem. Acquisition subsystem, that is wide field electromagnetic receiver, uses DSP as the logic control core and can control the system independently. Data processing subsystem, completed by

243

244

Pei Jing et al. / Procedia Engineering 16 (2011) 239 – 244

PC, has a powerful processing capability. We connect PC with acquisition subsystem by one-to-many communication based on TCP/IP. Thus wide filed electromagnetic acquisition system has a good expansibility on the multi-channel acquisition. According to models of section 4, abstract factory pattern just needs to install their standard pattern, which is simple, in the design of acquisition software of wide field electromagnetic equipment. The paper focuses on the implementation of pipe-filter pattern. We add data acquisition control functions of wide field electromagnetic equipment on the base of base classes of pipe-filter pattern, and get the model shown in Fig.7. Since the acquisition timing diagram of each function is similar, we just list the typical data acquisition timing diagram shown in Fig.8. 6. Conclusion The paper analyzes the model characteristics of geophysical data acquisition software, divides the model into stable section and mutative section and designs a reusable framework of geophysical data acquisition according to a mixed pattern of pipe-filter and abstract factory. This framework can cope with many possible changes in acquisition application of wide field electromagnetic equipment, which greatly improves the efficiency of software development. It operates stably and expands easily, and has a good application value. References [1] Wu Haicheng. The progress of the instruments of exploration geophysics in China overview of the past sixty years of CGS. Progress in Geophysics. 2007, 22(4): 1338-1343. [2] Pei Jing. Design and achievement of the receiver of hardware in wild field electromagnetic system. Changsha, 2010. [3] Alan shalloway, James R.Trott. Design patterns explained. Tsinghua University Press. 2004. [4] Ye Jun, Long Zhiqiang. A framework for state monitor software and its application. Computer Simulation. 2008, 25(40): 271-273, 281 [5] Li Xiaolong, Mao Wenlin. Pipe-filter software architecture and its design. Computer Engineering and Applications. 2003, 35: 114-116, 182