CN101419441A - History data acquisition method for monitoring system - Google Patents
History data acquisition method for monitoring system Download PDFInfo
- Publication number
- CN101419441A CN101419441A CNA2007100941804A CN200710094180A CN101419441A CN 101419441 A CN101419441 A CN 101419441A CN A2007100941804 A CNA2007100941804 A CN A2007100941804A CN 200710094180 A CN200710094180 A CN 200710094180A CN 101419441 A CN101419441 A CN 101419441A
- Authority
- CN
- China
- Prior art keywords
- time
- historical data
- data acquisition
- sampling
- historical
- 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
Links
Images
Landscapes
- Selective Calling Equipment (AREA)
Abstract
The invention discloses a historical data collecting method applicable to a monitoring system. The collecting method comprises that a timer is used to periodically motivate a historical data collecting process according to the minimum sampling circle of the historical data; for a data point arrived the sampling circle, a real-time data accessing interface is called to obtain a real-time value as the historical data to be stored; after storing the historical data to a historical data library, the historical data collecting system adjusts time interval between two data processes according to the time movements needed in the historical data collecting process. The method can reduce sampling time delays caused by timer error and program execution, thereby improving precision of the sampling time. Furthermore, the method can automatically carrying out point compensation to adapt to sudden time change of the operation system too. Therefore, the method is applicable to historical tendency data collections in various technical fields, including intelligent building, rail transit, tunnel, mine, petrochemical industry and the like.
Description
Technical field
The present invention relates to a kind of data point history data acquisition method, particularly relate to a kind of data point history data acquisition method that can be used for the supervisory system of a plurality of technical fields such as intelligent building, track traffic, tunnel, colliery, petrochemical industry.
Background technology
Supervisory system requires the historical data of some data point is gathered, so that can show, analyze historical data according to parameters such as zero-time, concluding time, data sampling intervals when needed.As shown in Figure 1, after a collection of data point sampling period that need carry out the historical data collection arrived, the historical data acquisition system can form a performance peak value to collection, the storage of these data in the past.Because the process itself of data acquisition, storage needs to consume the regular hour, can the cycle of historical data sampling next time be affected simultaneously, the time of sampling is constantly postponed, cause obliterated data.As shown in Figure 2, primary theory, actual samples time are all at the 10th second, secondary theoretical sampling time is that the 20th second, actual samples time are 22 seconds, and the rest may be inferred, causes should becoming only the 60th second once sampling in two secondary data of sampling in the 50th second, 60 seconds in theory.When the time of historical data acquisition system produces variation suddenly, also can cause losing of data in addition.As shown in Figure 3, after carrying out the data acquisition first time on the 10th second, revise system time to 54 second suddenly backward, then the 20th, 30,40,50 second sampled data will be lost.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of history data acquisition method that is used for supervisory system, and it can reduce and carries out caused sampling time because of timer deviation, program and lag behind, and makes the sampling time more accurate; And can mend automatically a little and change suddenly with the time that adapts to operating system.
For solving the problems of the technologies described above, the history data acquisition method that is used for supervisory system of the present invention is realized by the following technical solutions:
Timer sends regularly according to the minimal sampling time fixed cycle and is notified to the historical data acquisition system, excites the historical data acquisition system;
The historical data acquisition system judges successively whether all data points arrive the historical data sampling time;
If arrive the sampling time, then call real-time data acquisition system and obtain the data point currency and deposit in the history data file storehouse as historical data;
With history data store behind the history data file storehouse, the theoretical time and the current time of the more next data acquisition of historical data acquisition system, with the time interval of both differences, according to the time of historical data gatherer process needs in the dynamic time interval of adjusting between twice data acquisition as sampling next time.
The present invention has such beneficial effect owing to adopted technique scheme, has promptly guaranteed the accuracy that historical data is gathered, and has avoided because the sampling time that timer deviation and time loss are caused postpones; And can mend a little unexpected variation automatically with the adaptive system time.For the demonstration of historical data and analysis provide data more reliably, it is unusual and improve the production control flow process to be convenient to fix data points.
Description of drawings
The present invention is further detailed explanation below in conjunction with accompanying drawing and embodiment:
Fig. 1 is the performance peak value synoptic diagram that adopts existing history data acquisition method to produce.
Fig. 2 is owing to the synoptic diagram that influences that consumes historical data collection, storage time follow-up historical data sampling.
Fig. 3 is the influence synoptic diagram of flip-flop historical data acquisition system standard time to the historical data collection.
Fig. 4 carries out the performance peak value synoptic diagram that historical data is gathered according to the present invention.
Fig. 5 dynamically adjusts the actual samples time to avoid the synoptic diagram of obliterated data according to the present invention.
Fig. 6, the 7th solves the synoptic diagram that the historical data acquisition system time adjusts problem according to the present invention.
Fig. 8 is a method control flow chart of the present invention.
Embodiment
In order to realize storage, at first need the historical data sampling period of definition of data point and the minimal sampling time of timer to the data point historical data.Described minimal sampling time is less than the historical data sampling period of all data points.
Referring to shown in Figure 8, timer sends regularly according to the minimal sampling time fixed cycle and is notified to the historical data acquisition system, excites the historical data acquisition system.The historical data acquisition system judges successively whether all data points arrive the historical data sampling time, if arrive the sampling time, then calls real-time data acquisition system and obtains data point currency (real time data) and deposit in the history data file storehouse as historical data.Like this, the historical data acquisition system can be adjusted the phase place of identical sampling period data point automatically, avoids producing the performance peak value; Even the processing of the data point in identical sampling period is also successively carried out.Performance is as shown in Figure 4: had the point in 3 same sampling periods need gather historical data in per 10 seconds, and in order, called the currency (real time data) that real-time data acquisition system obtains first point earlier and deposit in the history data file storehouse as historical data; Be the 2nd point, the 3rd point then; The process of whole like this historical data collection is smoother, and performance is relatively good; Preserve if simultaneously 3 points are carried out historical data, then can on the time point of preserving, produce the performance peak value; Identical point of sampling period is many more, and the performance peak value is obvious more.
Behind the history data file storehouse, the theoretical time and the current time of the more next data acquisition of historical data acquisition system are with the time interval of both differences as sampling next time with history data store.Like this, just can constantly adjust the real time of sampling next time, can be according to the time that the historical data gatherer process needs in the dynamic time interval of adjusting between twice data acquisition, the time of avoiding data sampling occurring constantly postpones the situation that causes obliterated data.As shown in Figure 5, real time after the 2nd sample history data is the 22nd second, the theoretical sampling time of next time is 30 seconds, then, constantly postpone the not enough problem of data accuracy that causes with regard to data loss problem and the sampling time of having avoided being caused like this with fixed cycle sample history data with 8 seconds (30 seconds-22 seconds) time interval as the next historical data sampling of distance.
Because the precision of this adjustment is relevant at interval with the timer minimal sampling time, if for example minimal sampling time is spaced apart 2 seconds, then 8 seconds interval can guarantee that just in time carrying out next time on the 30th second samples; If minimal sampling time is spaced apart 5 seconds, then just can carry out the sampling of next time on the 32nd second.Therefore, can carry out minimal sampling time setting at interval according to the precision of timer and the precision of historical data collection.
Be how the example explanation solves the data sampling problem that the adjustment of historical data acquisition system time causes with Fig. 6,7 below, the historical data acquisition system is mended automatically a little and is changed to adapt to the operating system time.Avoid adjusting the loss of data that causes because of the unexpected time.
After the historical data acquisition system is carried out a historical data collection, before gathering historical data next time, the user gathers on the sampling time basis of historical data retouching operation system time backward in this time, then when next timer is regularly notified arrival, the historical data acquisition system is mended a little automatically, with current sampled value as the historical data value in historical data sampling time and amended operating system each time historical data sampling time between the time last time, and sampling time of revising expection next time.
As shown in Figure 6, after the historical data acquisition system was gathered historical data on the 10th second, before gathering historical data on the 20th second, 54 seconds user's modification operating system time to the, next time, timer was regularly notified when arriving, and the historical data acquisition system finds that the sampling time of expection is the 20th second, and the current time is the 54th second, then with the historical data value of current sampled value as the 20th second, 30 seconds, 40 seconds, 50 seconds, and the sampling time of revising expection next time be the 60th second.Like this, follow-up historical data sampling still can be carried out according to standard mode.
After the historical data acquisition system is carried out a historical data collection, before gathering historical data next time, the user gathers on the sampling time basis of historical data retouching operation system time forward in this time, then when next timer is regularly notified arrival, the historical data acquisition system was ignored between the amended operating system time to the expection sampling time of historical data acquisition system, the historical data value in each time historical data sampling time.
As shown in Figure 7, after the historical data acquisition system was gathered historical data on the 40th second, 22 seconds user's modification operating system time to the, next time, timer was regularly notified when arriving, the expection sampling time of historical data acquisition system is the 50th second, and the current time is the 32nd second, then ignores this historical data sampling; In like manner, ignore the current time and be the 42nd second historical data sampling, with the sampled value of the 52nd second historical data sampling as expection in the 50th second.Follow-up historical data sampling still can be carried out according to standard mode.
The present invention uses timer to excite the historical data acquisition system according to minimal sampling time; Use real time and the deviation of theoretical time to adjust the time interval of sampling next time; By the data point real time data is stored, convenient historical trend to data point shows and analyzes.
Claims (4)
1, a kind of history data acquisition method that is used for supervisory system is characterized in that comprising the steps:
Timer sends regularly according to the minimal sampling time fixed cycle and is notified to the historical data acquisition system, excites the historical data acquisition system;
The historical data acquisition system judges successively whether all data points arrive the historical data sampling time;
If arrive the sampling time, then call real-time data acquisition system and obtain the data point currency and deposit in the history data file storehouse as historical data;
With history data store behind the history data file storehouse, the theoretical time and the current time of the more next data acquisition of historical data acquisition system, with the time interval of both differences, according to the time of historical data gatherer process needs in the dynamic time interval of adjusting between twice data acquisition as sampling next time.
2, the history data acquisition method that is used for supervisory system as claimed in claim 1 is characterized in that: described minimal sampling time is set according to the precision of timer and the precision of historical data collection at interval.
3, the history data acquisition method that is used for supervisory system as claimed in claim 1 or 2, it is characterized in that: after the historical data acquisition system is carried out a historical data collection, before gathering historical data next time, the user gathers on the sampling time basis of historical data retouching operation system time backward in this time, then when next timer is regularly notified arrival, the historical data acquisition system is mended a little automatically, with current sampled value as the historical data value in historical data sampling time and amended operating system each time historical data sampling time between the time last time, and sampling time of revising expection next time.
4, the history data acquisition method that is used for supervisory system as claimed in claim 1 or 2, it is characterized in that: after the historical data acquisition system is carried out a historical data collection, before gathering historical data next time, the user gathers on the sampling time basis of historical data retouching operation system time forward in this time, then when next timer is regularly notified arrival, the historical data acquisition system was ignored between the amended operating system time to the expection sampling time of historical data acquisition system, the historical data value in each time historical data sampling time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007100941804A CN101419441A (en) | 2007-10-26 | 2007-10-26 | History data acquisition method for monitoring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007100941804A CN101419441A (en) | 2007-10-26 | 2007-10-26 | History data acquisition method for monitoring system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101419441A true CN101419441A (en) | 2009-04-29 |
Family
ID=40630259
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007100941804A Pending CN101419441A (en) | 2007-10-26 | 2007-10-26 | History data acquisition method for monitoring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101419441A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104573134A (en) * | 2014-12-19 | 2015-04-29 | 深圳怡化电脑股份有限公司 | Data acquisition method and data acquisition equipment |
CN105872380A (en) * | 2016-04-26 | 2016-08-17 | 乐视控股(北京)有限公司 | Video image acquiring method and device |
CN111245912A (en) * | 2020-01-04 | 2020-06-05 | 孟小峰 | Intelligent building information monitoring method and device, server and intelligent building system |
CN113721570A (en) * | 2021-08-30 | 2021-11-30 | 通威太阳能(成都)有限公司 | Data monitoring method, device, system and storage medium |
CN117990187A (en) * | 2024-04-07 | 2024-05-07 | 山东省国土空间生态修复中心(山东省地质灾害防治技术指导中心、山东省土地储备中心) | Groundwater level dynamic monitoring method based on artificial intelligence |
-
2007
- 2007-10-26 CN CNA2007100941804A patent/CN101419441A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104573134A (en) * | 2014-12-19 | 2015-04-29 | 深圳怡化电脑股份有限公司 | Data acquisition method and data acquisition equipment |
CN105872380A (en) * | 2016-04-26 | 2016-08-17 | 乐视控股(北京)有限公司 | Video image acquiring method and device |
CN111245912A (en) * | 2020-01-04 | 2020-06-05 | 孟小峰 | Intelligent building information monitoring method and device, server and intelligent building system |
CN111245912B (en) * | 2020-01-04 | 2020-11-27 | 上海快易名商企业发展股份有限公司 | Intelligent building information monitoring method and device, server and intelligent building system |
CN113721570A (en) * | 2021-08-30 | 2021-11-30 | 通威太阳能(成都)有限公司 | Data monitoring method, device, system and storage medium |
CN117990187A (en) * | 2024-04-07 | 2024-05-07 | 山东省国土空间生态修复中心(山东省地质灾害防治技术指导中心、山东省土地储备中心) | Groundwater level dynamic monitoring method based on artificial intelligence |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101419441A (en) | History data acquisition method for monitoring system | |
CN100484017C (en) | Method for statistics of mass performance data in network element management system | |
CN103792928A (en) | Industrial field data collecting and analyzing system based on Modbus | |
KR102439722B1 (en) | Weather data-based wireless sensor network node solar energy collection power prediction algorithm | |
CN107222360A (en) | A kind of data collecting system and method based on distributed type assemblies | |
CN115456479B (en) | Intelligent agricultural greenhouse environment monitoring system based on Internet of things | |
CN110134695B (en) | Intelligent database partitioning method for pipeline structured data query | |
CN106444649A (en) | Semiconductor production line closed-loop scheduling control method | |
CN104732298A (en) | Method for achieving EMS load prediction based on decision tree and linear regression | |
EP3528471A1 (en) | Control device, control system, control method, and control program | |
CN110245374A (en) | A kind of process timing sequence compartment analysis method, system, device and storage medium | |
CN117978105B (en) | State control method and system for electronic countermeasure microwave power amplifier | |
CN110486261B (en) | Air compressor set allocation system and method based on multipoint pressure track prediction | |
CN105955983A (en) | Historical sampled data caching method for super-large scale power grid regulation and control system | |
CN116055419A (en) | Industrial Internet of things cloud edge cooperative transmission control method and process | |
CN114391454B (en) | Crop spray irrigation operation system and method | |
CN112107977A (en) | Automatic pH value adjusting method, system and device based on desulfurization system | |
CN110532597B (en) | Air compressor set adjusting and assembling system and method based on pressure track prediction and time nodes | |
CN105159176B (en) | A kind of periodic synchronous position control method for bus type servo-driver | |
CN109819552B (en) | Control method of intelligent LED lighting system | |
CN107704594A (en) | Power system daily record data real-time processing method based on SparkStreaming | |
Tiberi et al. | Dead-band self-triggered PI control for processes with dead-time | |
CN118226793B (en) | Automatic synchronization station control method and system | |
CN208819072U (en) | A kind of fieldbus based intelligent workshop margin control | |
CN117792476B (en) | Automatic BLOCK detection and processing method based on satellite environment data in space |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20090429 |