CN110825623A - Simulation environment building method and system based on field data - Google Patents

Simulation environment building method and system based on field data Download PDF

Info

Publication number
CN110825623A
CN110825623A CN201910987394.7A CN201910987394A CN110825623A CN 110825623 A CN110825623 A CN 110825623A CN 201910987394 A CN201910987394 A CN 201910987394A CN 110825623 A CN110825623 A CN 110825623A
Authority
CN
China
Prior art keywords
data
field
real
time
storing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910987394.7A
Other languages
Chinese (zh)
Inventor
胡灿娣
刘剑
王勇
董玉莲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHEJIANG SUPCON SOFTWARE CO Ltd
Zhejiang Supcon Technology Co Ltd
Original Assignee
ZHEJIANG SUPCON SOFTWARE CO Ltd
Zhejiang Supcon Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHEJIANG SUPCON SOFTWARE CO Ltd, Zhejiang Supcon Technology Co Ltd filed Critical ZHEJIANG SUPCON SOFTWARE CO Ltd
Priority to CN201910987394.7A priority Critical patent/CN110825623A/en
Publication of CN110825623A publication Critical patent/CN110825623A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • G06F11/3656Software debugging using additional hardware using a specific debug interface

Abstract

The invention relates to the field of computers, in particular to a simulation environment building method and a simulation environment building system based on field data, which comprises the following steps: data access is carried out on multiple data sources by calling a standard data service interface, field real-time data and disk historical data are collected, and the collected data are stored; and reading the stored data for data playing, and writing back the data to a real-time database of the tester for calling by an upper application module. The invention has the following beneficial effects: data access is carried out on multiple data sources by calling a standard data service interface, field real-time data and disk historical data are collected, the field real-time data and the disk historical data are provided for simulation building, and the method has higher accuracy; and reading the data stored by the data acquisition module for data playing, writing back the data to a real-time database of the tester for the upper application module to call, and eliminating wrong data, so that the accuracy of the simulation test is improved, and the requirement of software product display is met.

Description

Simulation environment building method and system based on field data
Technical Field
The invention relates to the field of computers, in particular to a simulation environment building method and system based on field data.
Background
In the industrial process field, internal software products in the project development phase need to be tested based on industrial real-time databases. Problem testing personnel for project site feedback need to replicate within a company and assist in developing a location fix as soon as possible.
In the existing simulation test process, a tester simulates bit numbers of various data types through a ZJYOPC interface to test, but the simulated data is lack of accuracy and cannot truly reflect field data.
Disclosure of Invention
In order to solve the problems, the invention provides a simulation environment building method and system based on field data.
A simulation environment building method based on field data comprises the following steps:
data access is carried out on multiple data sources by calling a standard data service interface, field real-time data and disk historical data are collected, and the collected data are stored;
and reading the stored data for data playing, and writing back the data to a real-time database of the tester for calling by an upper application module.
Preferably, the acquiring the field real-time data includes:
connecting a data source for storing field real-time data, and importing a bit number of equipment;
setting acquisition parameters, acquiring field real-time data, and writing the field real-time data corresponding to the bit number into a file for storage;
and finishing the field real-time data acquisition, storing the bit number configuration, and disconnecting the connection with the data source.
Preferably, the collecting the disk history data includes:
connecting a data source for storing historical data of a magnetic disk, and importing a bit number of equipment;
setting acquisition parameters, acquiring historical data of the magnetic disk, and writing the historical data of the magnetic disk corresponding to the bit number into a file for storage;
and finishing the acquisition of the historical data of the disk, storing the bit number configuration and disconnecting the connection with the data source.
Preferably, the reading the stored data for playing the data includes:
importing the stored data;
setting the period of a data playing project, and storing the data playing project;
loading a data playing project on line and operating;
and starting data playing and monitoring and viewing data on line.
A simulation environment building system based on field data comprises:
the data acquisition module is used for realizing data access of multiple data sources by calling a standard data service interface, realizing acquisition of real-time field data and historical data of a magnetic disk and storing the acquired data;
and the data playing module is used for reading the data stored by the data acquisition module to play the field data, and writing the data back to the real-time database of the tester for the calling of the upper application module.
Preferably, the data acquisition module includes:
the field real-time data acquisition module is used for realizing the acquisition of field real-time data;
and the disk historical data acquisition module is used for acquiring the disk historical data.
Preferably, the acquiring of the field real-time data includes:
connecting a data source for storing field real-time data, and importing a bit number of equipment;
setting acquisition parameters, acquiring field real-time data, and storing the field real-time data corresponding to the bit number;
and finishing the field real-time data acquisition, storing the bit number configuration, and disconnecting the connection with the data source.
Preferably, the collecting of the disk history data includes:
connecting a data source for storing historical data of a magnetic disk, and importing a bit number of equipment;
setting acquisition parameters, acquiring historical data of the magnetic disk, and storing the historical data of the magnetic disk corresponding to the bit number;
and finishing the acquisition of the historical data of the disk, storing the bit number configuration and disconnecting the connection with the data source.
Preferably, the reading the data stored by the data acquisition module to play the data includes:
importing data stored by a data acquisition module;
setting the period of a data playing project, and storing the data playing project;
loading a data playing project on line and operating;
and starting data playing and monitoring and viewing data on line.
The invention has the following beneficial effects:
data access is carried out on multiple data sources by calling a standard data service interface, field real-time data and disk historical data are collected, the field real-time data and the disk historical data are provided for simulation building, and the method has higher accuracy;
the data stored by the data acquisition module is read for data playing, the data is written back to a real-time database of the testing machine for the upper application module to call, and the data is played to eliminate wrong data, so that the accuracy of the simulation test is improved, and the requirement of software product display is met.
Drawings
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a flowchart of a simulation environment construction method based on field data according to an embodiment of the present invention;
FIG. 2 is a flowchart of collecting real-time field data in a simulation environment building method based on field data according to an embodiment of the present invention;
FIG. 3 is a flowchart of collecting historical disk data in a simulation environment building method based on field data according to an embodiment of the present invention;
fig. 4 is a flowchart of reading saved data and playing the data in a simulation environment building method based on field data according to an embodiment of the present invention;
FIG. 5 is a structural diagram of a simulation environment building system based on field data according to an embodiment of the present invention;
FIG. 6 is a structural diagram of a field real-time data acquisition module in a simulation environment building system based on field data according to an embodiment of the present invention
Fig. 7 is a structural diagram of a disk historical data acquisition module in a simulation environment building system based on field data according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be further described below with reference to the accompanying drawings, but the present invention is not limited to these embodiments.
The basic idea of the embodiment is to perform data access on multiple data sources by calling a standard data service interface, collect field real-time data and disk historical data, provide the field real-time data and the disk historical data for simulation building, and have higher accuracy. And secondly, reading the data stored by the data acquisition module for data playing, writing the data back to a real-time database of the tester for calling by an upper application module, and playing the data to remove wrong data, thereby also improving the accuracy of the simulation test.
Based on the above thought, an embodiment of the present invention provides a simulation environment building method based on field data, as shown in fig. 1, including the following steps:
s1: data access is carried out on multiple data sources by calling a standard data service interface, field real-time data and disk historical data are collected, and the collected data are stored;
s2: and reading the stored data for data playing, and writing back the data to a real-time database of the tester for calling by an upper application module.
The standard data service interface is a uniform data source access interface and provides an access method for various data sources including PI data sources. The corresponding access method in the standard data service interface is called by creating the interface object, so that the corresponding data source is connected, and data access to various different data sources is realized.
In this embodiment, as shown in fig. 2, the method for acquiring the real-time data in the field includes:
s111: connecting a data source for storing field real-time data, and importing a bit number of equipment;
s112: setting acquisition parameters, acquiring field real-time data, and writing the field real-time data corresponding to the bit number into a file for storage;
s113: and finishing the field real-time data acquisition, storing the bit number configuration, and disconnecting the connection with the data source.
The apparatus comprises: the data of the instruments, the sensors, the controllers and the like, each device corresponds to a unique bit number, and the data of different types of devices are stored in different data sources due to different data types. Firstly, connection is required to be established with a data source corresponding to field real-time data to be acquired, and a bit number of equipment is imported, so that the acquired field real-time data can be labeled with the data source.
And then, setting acquisition parameters to acquire field real-time data, wherein in the embodiment, the real-time data of 1000 bit numbers are read in one period, and the average time consumption is 0.5 s. The collected real-time data in the field is stored in a dppx file mode, and when the dppx file exceeds the limited size, the dppx file can be divided into a plurality of small files to be stored.
And finally, finishing the field real-time data acquisition, storing the bit number configuration, and disconnecting the connection with the data source. Wherein, the bit number configuration is stored in a cfgx file.
In this embodiment, as shown in fig. 3, the method for collecting the disk history data includes:
s121: connecting a data source for storing historical data of a magnetic disk, and importing a bit number of equipment;
s122: setting acquisition parameters, acquiring historical data of the magnetic disk, and writing the historical data of the magnetic disk corresponding to the bit number into a file for storage;
s123: and finishing the acquisition of the historical data of the disk, storing the bit number configuration and disconnecting the connection with the data source.
The disk history data is usually a disk as a data source, and first, the data source storing the disk history data is connected, and the bit number of the device is imported. And then setting acquisition parameters, in the embodiment, reading historical data of 1000 bit numbers for one day, taking 5min averagely, then acquiring historical data of the magnetic disk, and storing the historical data of the magnetic disk corresponding to the bit numbers. And finally, ending the acquisition of the historical data of the disk, storing the configuration of the bit number, and disconnecting the connection with the data source.
In this embodiment, the construction that the real-time data of the field and the historical data of the disk are collected and used for the simulation environment is utilized, and compared with the simulation data, the simulation environment has higher authenticity and is more accurate to the simulation result.
In this embodiment, as shown in fig. 4, the method for reading the stored data to play the data includes:
s21: importing the stored data;
s22: setting the period of a data playing project, and storing the data playing project;
s23: loading a data playing project on line and operating;
s24: and starting data playing and monitoring and viewing data on line.
The data saved in the above step S1 is imported, the cycle of the data playback project is set, the cycle is generally set to 30S, and the data playback project for which the setting has been completed is saved. And loading and running a data playing project on line, starting data playing and monitoring and checking data on line. By playing and monitoring the data on line, wrong data can be eliminated, so that the accuracy of the simulation test is improved.
And after the data are played, writing the data back to a real-time database of the tester for the calling of upper application modules such as PID performance evaluation, Adcon online operation, flow chart, alarm and the like.
Based on the above method for building a simulation environment based on field data, correspondingly, this embodiment further provides a system for building a simulation environment based on field data, as shown in fig. 5, including:
the data acquisition module is used for realizing data access of multiple data sources by calling a standard data service interface, realizing acquisition of field real-time data and historical data of a magnetic disk and storing the acquired data;
and the data playing module is used for reading the data stored by the data acquisition module to play the field data, and writing the data back to the real-time database of the tester for the calling of the upper application module.
As shown in fig. 6, the data acquisition module includes: the system comprises a standard data service interface, a data source connection module, a position number inquiry module, a position number management module, an acquisition parameter setting module, a field real-time data acquisition module, a disk historical data acquisition module and a configuration file management module.
The standard data service interface is a uniform data source access interface and provides an access method for various data sources including PI data sources. The corresponding access method in the standard data service interface is called by creating the interface object, so that the corresponding data source is connected, and data access to various different data sources is realized. The data source connecting module is used for connecting with multiple data sources through the standard data service module. The bit number inquiry module is used for inquiring the bit number of the equipment. The bit number management module is used for adding and deleting the bit number of the equipment. The parameter acquisition setting module is used for setting a parameter acquisition period. And the field real-time data acquisition module is used for realizing the acquisition of field real-time data. And the disk historical data acquisition module is used for acquiring the disk historical data. The configuration file management module is used for managing the configuration files.
As shown in fig. 7, the data playing module includes: the device comprises a data reading interface, an interface packaging layer, a data playing layer, a standardized interface layer, a function block configuration module, an operation module, a graphical design module, an online operation monitoring module, an online operation background kernel, a real-time database bit number operation interface and a historical data write-back module.
The data reading interface is used for establishing connection with a data source for storing the acquired data. The interface packaging layer is used for providing a type-safe interface, and enhancing local concurrency, communication, memory management, event demultiplexing, dynamic linking, file systemization and the like by packaging the interface. The data playing layer is used for displaying data in real time. And the standardized interface layer is used for realizing the same scheduling of the function blocks. The function block configuration module is used for configuring the function block according to the requirement, wherein the function block comprises: PID performance evaluation, Adcon online operation, flow charts, alarms, and the like. The operation module is used for controlling the operation of the standardized interface layer, the graphical design module and the online operation background kernel. And the graphical design module is used for creating a graphical project through the graphical design module when a user uses the graphical design module, dragging the data source into a canvas, double-clicking the graphics primitives to open a page, importing field data and historical data of multiple data sources, and selecting a bit number needing data playing to complete data source configuration. The operation period of the data playing project is adjusted by setting the control period of the graphical project. And after the configuration is completed, loading and operating a graphical project, and periodically writing back the historical data to the real-time database. The online operation monitoring module is used for online monitoring the played data. The online running background kernel is used for providing kernel processing for background running. And the real-time database bit number operation interface is used for establishing connection with a real-time database of the testing machine. And the historical data write-back module is used for realizing data write-back in a real-time database of the tester.
In this embodiment, the method for collecting field data in real time includes:
s111: connecting a data source for storing field real-time data, and importing a bit number of equipment;
s112: setting acquisition parameters, acquiring field real-time data, and writing the field real-time data corresponding to the bit number into a file for storage;
s113: and finishing the field real-time data acquisition, storing the bit number configuration, and disconnecting the connection with the data source.
In this embodiment, the method for collecting the historical data in real time includes:
s121: connecting a data source for storing historical data of a magnetic disk, and importing a bit number of equipment;
s122: setting acquisition parameters, acquiring historical data of the magnetic disk, and writing the historical data of the magnetic disk corresponding to the bit number into a file for storage;
s123: and finishing the acquisition of the historical data of the disk, storing the bit number configuration and disconnecting the connection with the data source.
In this embodiment, the method for reading the data stored by the data acquisition module to play the data includes:
s21: importing the stored data;
s22: setting the period of a data playing project, and storing the data playing project;
s23: loading a data playing project on line and operating;
s24: and starting data playing and monitoring and viewing data on line.
It should be noted that the principle of the above method is the same as that of the method mentioned in the simulation environment building method based on field data provided in the above embodiment, and therefore, the description is omitted.
Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.

Claims (9)

1. A simulation environment building method based on field data is characterized by comprising the following steps:
data access is carried out on multiple data sources by calling a standard data service interface, field real-time data and disk historical data are collected, and the collected data are stored;
and reading the stored data for data playing, and writing back the data to a real-time database of the tester for calling by an upper application module.
2. The method for building a simulation environment based on field data according to claim 1, wherein the collecting the field real-time data comprises:
connecting a data source for storing field real-time data, and importing a bit number of equipment;
setting acquisition parameters, acquiring field real-time data, and writing the field real-time data corresponding to the bit number into a file for storage;
and finishing the field real-time data acquisition, storing the bit number configuration, and disconnecting the connection with the data source.
3. The method for building a simulation environment based on field data according to claim 1, wherein the collecting of the historical data of the disk comprises:
connecting a data source for storing historical data of a magnetic disk, and importing a bit number of equipment;
setting acquisition parameters, acquiring historical data of the magnetic disk, and writing the historical data of the magnetic disk corresponding to the bit number into a file for storage;
and finishing the acquisition of the historical data of the disk, storing the bit number configuration and disconnecting the connection with the data source.
4. The method for building a simulation environment based on field data according to claim 1, wherein the reading the saved data for playing the data comprises:
importing the stored data;
setting the period of a data playing project, and storing the data playing project;
loading a data playing project on line and operating;
and starting data playing and monitoring and viewing data on line.
5. A simulation environment building system based on field data is characterized by comprising:
the data acquisition module is used for realizing data access of multiple data sources by calling a standard data service interface, realizing acquisition of real-time field data and historical data of a magnetic disk and storing the acquired data;
and the data playing module is used for reading the data stored by the data acquisition module to play the field data, and writing the data back to the real-time database of the tester for the calling of the upper application module.
6. The simulation environment building system based on field data according to claim 5, wherein the data acquisition module comprises:
the field real-time data acquisition module is used for realizing the acquisition of field real-time data;
and the disk historical data acquisition module is used for acquiring the disk historical data.
7. The simulation environment building system based on the field data as claimed in claim 6, wherein the collecting of the field real-time data comprises:
connecting a data source for storing field real-time data, and importing a bit number of equipment;
setting acquisition parameters, acquiring field real-time data, and storing the field real-time data corresponding to the bit number;
and finishing the field real-time data acquisition, storing the bit number configuration, and disconnecting the connection with the data source.
8. The simulation environment building system based on field data according to claim 6, wherein the collection of the historical data of the disk comprises:
connecting a data source for storing historical data of a magnetic disk, and importing a bit number of equipment;
setting acquisition parameters, acquiring historical data of the magnetic disk, and storing the historical data of the magnetic disk corresponding to the bit number;
and finishing the acquisition of the historical data of the disk, storing the bit number configuration and disconnecting the connection with the data source.
9. The simulation environment building system based on the field data as claimed in claim 5, wherein the reading of the data stored by the data acquisition module for data playing comprises:
importing data stored by a data acquisition module;
setting the period of a data playing project, and storing the data playing project;
loading a data playing project on line and operating;
and starting data playing and monitoring and viewing data on line.
CN201910987394.7A 2019-10-17 2019-10-17 Simulation environment building method and system based on field data Pending CN110825623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910987394.7A CN110825623A (en) 2019-10-17 2019-10-17 Simulation environment building method and system based on field data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910987394.7A CN110825623A (en) 2019-10-17 2019-10-17 Simulation environment building method and system based on field data

Publications (1)

Publication Number Publication Date
CN110825623A true CN110825623A (en) 2020-02-21

Family

ID=69549628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910987394.7A Pending CN110825623A (en) 2019-10-17 2019-10-17 Simulation environment building method and system based on field data

Country Status (1)

Country Link
CN (1) CN110825623A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310067A (en) * 2013-06-26 2013-09-18 上海汉乾信息科技发展有限公司 Method for realizing real-time analog simulation monitor of devices
CN104462730A (en) * 2014-12-31 2015-03-25 广东电网有限责任公司电力科学研究院 Online simulation system and method for power plant
CN105137955A (en) * 2015-10-10 2015-12-09 浙江中控技术股份有限公司 Multiple control subsystem bit number configuration information access method and system
CN108319161A (en) * 2018-02-05 2018-07-24 浙江大学 A kind of industry SCADA system emulation platform
CN108650325A (en) * 2018-05-17 2018-10-12 浙江中控技术股份有限公司 A kind of industrial data acquisition method, relevant device and system
CN109472087A (en) * 2018-11-08 2019-03-15 深圳华龙讯达信息技术股份有限公司 The retrospect of the technological process of production and waste product investigation elimination method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310067A (en) * 2013-06-26 2013-09-18 上海汉乾信息科技发展有限公司 Method for realizing real-time analog simulation monitor of devices
CN104462730A (en) * 2014-12-31 2015-03-25 广东电网有限责任公司电力科学研究院 Online simulation system and method for power plant
CN105137955A (en) * 2015-10-10 2015-12-09 浙江中控技术股份有限公司 Multiple control subsystem bit number configuration information access method and system
CN108319161A (en) * 2018-02-05 2018-07-24 浙江大学 A kind of industry SCADA system emulation platform
CN108650325A (en) * 2018-05-17 2018-10-12 浙江中控技术股份有限公司 A kind of industrial data acquisition method, relevant device and system
CN109472087A (en) * 2018-11-08 2019-03-15 深圳华龙讯达信息技术股份有限公司 The retrospect of the technological process of production and waste product investigation elimination method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周里: "《运动人体科学理论与实践 上》", 陕西师范大学出版社, pages: 96 *
雷振伍;吴秀冰;孙德辉;李超;: "基于PCS7和Simulink的过程控制虚拟仿真实验平台开发", vol. 33, no. 01, pages 135 - 139 *

Similar Documents

Publication Publication Date Title
CN104423960B (en) A kind of method and system of project continuous integrating
US7739216B2 (en) Methods and systems for monitoring and diagnosing machinery by incremently testing a rule
CN102880532A (en) Cloud technology-based test system and method
CN106254093B (en) A kind of automatic test restorative procedure and its system
CN102402583B (en) Real-load tuning of database applications
CN105794180A (en) Methods and systems for a universal wireless platform for asset monitoring
CN106803799A (en) A kind of performance test methods and device
EP3021224A1 (en) Method and apparatus for producing a benchmark application for performance testing
CN110806730A (en) Big data operation and maintenance platform, server and storage medium
Zalewski et al. Beyond ATAM: Early architecture evaluation method for large-scale distributed systems
CN101895483A (en) Gateway application system based on embedded real-time data base
CN113220597B (en) Test method, test device, electronic equipment and storage medium
CN105117271A (en) Historical data emulation method of IEC61850 based status monitoring emulation system test platform
CN114066089A (en) Batch job operation time-consuming interval determining method and device
CN110825623A (en) Simulation environment building method and system based on field data
CN107451048A (en) The method and apparatus of pressure simulation test on a kind of line
CN117010197A (en) Equipment detection method and device based on digital twin
CN116069577A (en) Interface testing method, equipment and medium for RPC service
CN110502424A (en) A kind of performance data processing method of application software, device, system and terminal
JP2012032899A (en) Process model base automatic test system
JP5292182B2 (en) Water treatment facility management system
CN108572914B (en) Method and device for generating log for pressure test
CN102752151B (en) Measuring and controlling product management method and device based on flexibility testing technology
JP2020061073A (en) Simulation device and simulation method
CN111061244A (en) Automatic testing method for power distribution master station monitoring system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200221