CN111130504A - Data acquisition method capable of self-adjusting sampling frequency - Google Patents
Data acquisition method capable of self-adjusting sampling frequency Download PDFInfo
- Publication number
- CN111130504A CN111130504A CN201911336203.7A CN201911336203A CN111130504A CN 111130504 A CN111130504 A CN 111130504A CN 201911336203 A CN201911336203 A CN 201911336203A CN 111130504 A CN111130504 A CN 111130504A
- Authority
- CN
- China
- Prior art keywords
- max
- sampling frequency
- sampling
- data
- value
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03H—IMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
- H03H17/00—Networks using digital techniques
- H03H17/02—Frequency selective networks
- H03H17/0211—Frequency selective networks using specific transformation algorithms, e.g. WALSH functions, Fermat transforms, Mersenne transforms, polynomial transforms, Hilbert transforms
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Mathematical Optimization (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Analysis (AREA)
- Computing Systems (AREA)
- Algebra (AREA)
- Pure & Applied Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)
- Recording Measured Values (AREA)
Abstract
The invention discloses a data acquisition method for self-adjusting sampling frequency, and the idea of the invention is to set the signal to be sampled asx(t) At an initial sampling frequency off(ii) a Recording the sampled data values of three consecutive points; calculating the absolute value of the current data change speed according to the sampled data valueCurrent data change absolute amount of acceleration(ii) a Recording、And to、And (6) normalization processing. And finally, calculating by using a formula to obtain a value of the next sampling frequency, and repeating the operation by using the value of the next sampling frequency, thereby achieving the purpose of self-adjusting the sampling frequency. The invention establishes the mapping relation between the data change condition and the data sampling frequency, and the system can adjust the sampling frequency by the algorithm after only the normal sampling frequency is given, thereby avoiding the use limitation caused by setting the sampling frequency and the trigger threshold value by the manual experience.
Description
Technical Field
The present invention relates to a data acquisition method, and more particularly, to a data acquisition method capable of self-adjusting sampling frequency.
Background
In the development of field monitoring instrument equipment for geological disasters, the data acquisition method mainly comprises two methods: (1) setting fixed frequency sampling for equal interval time sampling; (2) and judging and sampling according to the difference condition between two adjacent points.
According to the method (1), the sampling frequency is preset before the equipment is used or is manually and remotely modified according to conditions in the using process, so that if the set frequency is too high, a large amount of redundant data can be caused, the power consumption of the equipment is greatly improved, the time for monitoring the equipment is greatly reduced, and if the frequency is too low, the sampled data can be seriously distorted.
The method (2) also presets a plurality of sampling frequencies and trigger thresholds, compares the difference value of two sampling values with the trigger threshold by calculation, and adjusts the current sampling frequency according to the comparison result and the sampling frequency corresponding to the threshold. Therefore, the method can realize the function of automatically adjusting the frequency, but has the disadvantage that a plurality of groups of sampling frequencies and trigger thresholds need to be manually set, and the setting method usually depends on the experience of users, thereby increasing the use difficulty.
Disclosure of Invention
The present invention is directed to provide a data acquisition method for self-adjusting sampling frequency, which solves the above problems, calculates the data change condition according to the current sampling data, and automatically adjusts the sampling frequency according to the data change condition, thereby overcoming the disadvantage of the prior art that the frequency and the threshold value need to be set manually according to experience.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows: a data acquisition method for self-adjusting sampling frequency comprises the following steps:
(1) setting a signal to be sampled as x (t), an initial sampling frequency as f, and a current sampling frequency f*F, t is the sampling time;
(2) at a frequency f*Sampling x (t) to obtain sampling data values, and recording sampling data values s (t-2), s (t-1) and s (t) of three continuous points;
(3) calculating absolute data change speed quantities v (t) | s (t-1) | v (t-1) | s (t-1) -s (t-2) | at time t and time t-1;
(4) calculating the absolute acceleration change amount a (t) ═ v (t) — v (t-1) | of the current data;
(5) respectively recording the maximum value and the minimum value of v (t) and the maximum value and the minimum value of a (t) in the execution process of the step (3) and the step (4), and respectively marking the maximum value and the minimum value as maxv、minv、maxa、mina;
(6) Normalizing v (t) and a (t) in the steps (3) and (4) to obtain corresponding normalized values v*(t),a*(t), specifically:
In the formula (I), the compound is shown in the specification,andrepresents v in the previous calculation*(t) and a*(t), and the initial value is 0;
(7) current sampling frequency f*Adjusting:
calculating the next current sampling frequency f according to the following formula*
(8) Presetting a stopping condition, repeating the steps (2) to (7) until the stopping condition is reached, and stopping data acquisition.
Preferably, the method comprises the following steps: the step (5) is specifically as follows: initially maxv、minv、maxa、minaThe values are both 0, and in the execution process of the step (3) and the step (4):
if v (t) > maxvThen maxvV (t); otherwise max is not performedv=v(t);
If v (t) < minvThen minvV (t); otherwise not execute minv=v(t);
If a (t) > maxaThen maxaA (t); otherwise max is not performeda=a(t);
If a (t) < minaThen minaA (t); otherwise not execute mina=a(t)。
The method comprises the steps of sampling signals, continuously sampling 3 points, calculating the absolute value of the change speed of the current data and the absolute value of the change acceleration of the current data, recording an extreme value, carrying out data normalization processing according to the absolute value of the change speed of the current data, the absolute value of the change acceleration of the current data and the extreme value, and calculating a frequency value by using the value of the normalization processing to serve as the current sampling frequency of the next sampling, thereby achieving the purpose of adjustment.
Compared with the prior art, the invention has the advantages that:
(1) a data acquisition method for self-adjusting sampling frequency is provided, and a mapping relation between the self change condition of data and the future sampling frequency of the data is established.
(2) The monitoring equipment using the method of the invention only needs to give a normal sampling frequency, and the monitoring equipment can realize the self-adjustment of the sampling frequency in the whole monitoring process by the method of the invention.
(3) The method avoids low-frequency data fidelity difference caused by fixed threshold value sampling and low cruising ability reduction caused by equipment power consumption increase caused by high frequency.
(4) The method for triggering the multi-level sampling frequency by the same multi-level threshold avoids the problems of low operability, insufficient reliability of sampling data and incapability of reducing the power consumption of monitoring equipment to the maximum extent caused by setting the trigger threshold and the sampling frequency by manual experience.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a diagram of a sampling result of the self-adjusting sampling frequency of the present invention;
FIG. 3 is a graph showing sampling results obtained in example 2 in which sampling is performed every half hour;
FIG. 4 is a diagram showing the sampling result of self-adjusting the sampling frequency according to the method of the present invention in example 2;
fig. 5 is a graph of frequency adjustments obtained from a computer simulated sampling of the data of fig. 3 in accordance with the present invention.
Detailed Description
The invention will be further explained with reference to the drawings.
Example 1: referring to fig. 1 and 2, a data acquisition method for self-adjusting sampling frequency includes the following steps:
(1) setting a signal to be sampled as x (t), an initial sampling frequency as f, and a current sampling frequency f*F, t is the sampling time;
(2) at a frequency f*Sampling x (t) to obtain sampling data values, and recording sampling data values s (t-2), s (t-1) and s (t) of three continuous points;
(3) calculating absolute data change speed quantities v (t) | s (t-1) | v (t-1) | s (t-1) -s (t-2) | at time t and time t-1;
(4) calculating the absolute acceleration change amount a (t) ═ v (t) — v (t-1) | of the current data;
(5) respectively recording the maximum value and the minimum value of v (t) and the maximum value and the minimum value of a (t) in the execution process of the step (3) and the step (4), and respectively marking the maximum value and the minimum value as maxv、minv、maxa、mina;
(6) Normalizing v (t) and a (t) in the steps (3) and (4) to obtain corresponding normalized values v*(t),a*(t), specifically:
In the formula (I), the compound is shown in the specification,andrepresents v in the previous calculation*(t) and a*(t), and the initial value is 0;
(7) current sampling frequency f*Adjusting:
calculating the next current sampling frequency f according to the following formula*
(8) Presetting a stopping condition, repeating the steps (2) to (7) until the stopping condition is reached, and stopping data acquisition.
In this embodiment, the step (5) specifically includes: initially maxv、minv、maxa、minaThe values are both 0, and in the execution process of the step (3) and the step (4):
if v (t) > maxvThen maxvV (t); otherwise max is not performedv=v(t);
If v (t) < minvThen minvV (t); otherwise not execute minv=v(t);
If a (t) > maxaThen maxaA (t); otherwise max is not performeda=a(t);
If a (t) < minaThen minaA (t); otherwise not execute mina=a(t)。
Fig. 2 is a diagram of the sampling effect of the self-adjusting sampling frequency of the present invention, and in fig. 2, the upper curve is a sampled signal x (t) on which a plurality of discrete points are distributed, i.e., sampling points obtained by adjusting the sampling frequency of the present invention. It is obvious from the figure that the method of the invention has better self-adjusting capability for the sampling frequency of the data averaging and acceleration processes.
Example 2: referring to fig. 3 to 5, we performed analysis using the displacement monitoring data of the landslide in xingzyi longjing village in 2 nd month of the Guizhou province in 2019. The sampling graph shown in fig. 3 is a sampling result obtained by performing data acquisition every half hour with a fixed sampling frequency, and it is obvious from fig. 3 that the smoothness of the sampled data is poor and more local detail information is missing. Fig. 4 is a monitoring curve graph after the method of the present invention is used, and it can be found from the graph that the degree of reduction of the dotted line fitting after the method of the present invention is used is high, the local details are clear, and the method is obviously helpful for the later data analysis. Fig. 5 is a graph of frequency adjustment obtained by computer simulation sampling of the data in fig. 3 according to the present invention, and it can be seen from the graph that the sampling frequency is adjusted in real time in the process of fracture change.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (2)
1. A data acquisition method for self-adjusting sampling frequency is characterized in that: the method comprises the following steps:
(1) setting a signal to be sampled as x (t), an initial sampling frequency as f, and a current sampling frequency f*F, t is the sampling time;
(2) at a frequency f*Sampling x (t) to obtain sampling data values, and recording sampling data values s (t-2), s (t-1) and s (t) of three continuous points;
(3) calculating absolute data change speed quantities v (t) | s (t-1) | v (t-1) | s (t-1) -s (t-2) | at time t and time t-1;
(4) calculating the absolute acceleration change amount a (t) ═ v (t) — v (t-1) | of the current data;
(5) respectively recording the maximum value and the minimum value of v (t) and the maximum value and the minimum value of a (t) in the execution process of the step (3) and the step (4), and respectively marking the maximum value and the minimum value as maxv、minv、maxa、mina;
(6) Normalizing v (t) and a (t) in the steps (3) and (4) to obtain corresponding normalized values v*(t),a*(t), specifically:
In the formula (I), the compound is shown in the specification,andrepresents v in the previous calculation*(t) and a*(t), and the initial value is 0;
(7) current sampling frequency f*Adjusting:
calculating the next current sampling frequency f according to the following formula*
(8) Presetting a stopping condition, repeating the steps (2) to (7) until the stopping condition is reached, and stopping data acquisition.
2. The method of claim 1, further comprising the step of: the step (5) is specifically as follows: initially maxv、minv、maxa、minaThe values are both 0, and in the execution process of the step (3) and the step (4):
if v (t) > maxvThen maxvV (t); otherwise max is not performedv=v(t);
If v (t) < minvThen minvV (t); otherwise not execute minv=v(t);
If a (t) > maxaThen maxaA (t); otherwise max is not performeda=a(t);
If a (t) < minaThen minaA (t); otherwise not execute mina=a(t)。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911336203.7A CN111130504B (en) | 2019-12-23 | 2019-12-23 | Data acquisition method capable of self-adjusting sampling frequency |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911336203.7A CN111130504B (en) | 2019-12-23 | 2019-12-23 | Data acquisition method capable of self-adjusting sampling frequency |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111130504A true CN111130504A (en) | 2020-05-08 |
CN111130504B CN111130504B (en) | 2023-03-03 |
Family
ID=70501104
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911336203.7A Active CN111130504B (en) | 2019-12-23 | 2019-12-23 | Data acquisition method capable of self-adjusting sampling frequency |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111130504B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111859307A (en) * | 2020-08-18 | 2020-10-30 | 久视数字科技(苏州)有限公司 | Data acquisition method and device capable of effectively improving data acquisition and transmission efficiency |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1788707A1 (en) * | 2005-11-18 | 2007-05-23 | Micronas GmbH | Method of setting sampling times of a sample clock in an image signal sampling system & circuit for carrying out same. |
US20090307293A1 (en) * | 2008-06-06 | 2009-12-10 | I Shou University | Method for determining an optimum sampling frequency, and a power analyzer performing the method |
JP2010122694A (en) * | 1996-02-22 | 2010-06-03 | Seiko Epson Corp | Method and apparatus for adjusting dot clock signal |
US20130255681A1 (en) * | 2012-03-30 | 2013-10-03 | Nellcor Puritan Bennett Llc | Data collection system and method using parametric-based sampling rates |
CN103383412A (en) * | 2013-07-10 | 2013-11-06 | 珠海许继芝电网自动化有限公司 | Adaptive software and hardware frequency tracking and sampling method |
CN103808380A (en) * | 2013-12-23 | 2014-05-21 | 浙江先芯科技有限公司 | Flow rapid tracking method for ultrasonic flow metering device |
CN104949724A (en) * | 2015-07-10 | 2015-09-30 | 安徽水联水务科技有限公司 | Dynamic measurement method for ultrasonic wave measuring instrument |
CN106500829A (en) * | 2016-09-30 | 2017-03-15 | 广州机智云物联网科技有限公司 | A kind of adaptively sampled frequency tracking method |
CN106500830A (en) * | 2016-09-30 | 2017-03-15 | 广州机智云物联网科技有限公司 | A kind of switch gate method for detecting vibration |
CN106771546A (en) * | 2017-01-23 | 2017-05-31 | 华北水利水电大学 | A kind of fixed frequency gathers measuring method with the quick amplitude of waveform signal |
CN107133142A (en) * | 2017-04-18 | 2017-09-05 | 浙江大学 | A kind of monitoring data intellegent sampling method based on association analysis |
-
2019
- 2019-12-23 CN CN201911336203.7A patent/CN111130504B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010122694A (en) * | 1996-02-22 | 2010-06-03 | Seiko Epson Corp | Method and apparatus for adjusting dot clock signal |
EP1788707A1 (en) * | 2005-11-18 | 2007-05-23 | Micronas GmbH | Method of setting sampling times of a sample clock in an image signal sampling system & circuit for carrying out same. |
US20090307293A1 (en) * | 2008-06-06 | 2009-12-10 | I Shou University | Method for determining an optimum sampling frequency, and a power analyzer performing the method |
US20130255681A1 (en) * | 2012-03-30 | 2013-10-03 | Nellcor Puritan Bennett Llc | Data collection system and method using parametric-based sampling rates |
CN103383412A (en) * | 2013-07-10 | 2013-11-06 | 珠海许继芝电网自动化有限公司 | Adaptive software and hardware frequency tracking and sampling method |
CN103808380A (en) * | 2013-12-23 | 2014-05-21 | 浙江先芯科技有限公司 | Flow rapid tracking method for ultrasonic flow metering device |
CN104949724A (en) * | 2015-07-10 | 2015-09-30 | 安徽水联水务科技有限公司 | Dynamic measurement method for ultrasonic wave measuring instrument |
CN106500829A (en) * | 2016-09-30 | 2017-03-15 | 广州机智云物联网科技有限公司 | A kind of adaptively sampled frequency tracking method |
CN106500830A (en) * | 2016-09-30 | 2017-03-15 | 广州机智云物联网科技有限公司 | A kind of switch gate method for detecting vibration |
CN106771546A (en) * | 2017-01-23 | 2017-05-31 | 华北水利水电大学 | A kind of fixed frequency gathers measuring method with the quick amplitude of waveform signal |
CN107133142A (en) * | 2017-04-18 | 2017-09-05 | 浙江大学 | A kind of monitoring data intellegent sampling method based on association analysis |
Non-Patent Citations (2)
Title |
---|
FEI WANG等: "Sampling frequency self-adapting software algorithm in protection relay measure and control system" * |
梁文强: "基于FPGA激光多普勒测速仪的信号处理系统及方法" * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111859307A (en) * | 2020-08-18 | 2020-10-30 | 久视数字科技(苏州)有限公司 | Data acquisition method and device capable of effectively improving data acquisition and transmission efficiency |
Also Published As
Publication number | Publication date |
---|---|
CN111130504B (en) | 2023-03-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9847893B2 (en) | Digital equalizer adaptation using on-die instrument | |
CN103871421B (en) | A kind of self-adaptation noise reduction method and system based on subband noise analysis | |
US11689233B2 (en) | Density function centric signal processing | |
CN101689373A (en) | Intelligent gradient noise reduction system | |
US8816886B1 (en) | Method and apparatus to control the effective gain of a statistically calibrated analog to digital converter | |
US9998136B1 (en) | Loop consistency using multiple channel estimates | |
CN104485103B (en) | A kind of multi-environment model isolated word recognition method based on vector Taylor series | |
US20200401368A1 (en) | Method and device for acute sound detection and reproduction | |
CN111130504B (en) | Data acquisition method capable of self-adjusting sampling frequency | |
US20140269887A1 (en) | Equalizer and detector arrangement employing joint entropy-based calibration | |
CN107481738B (en) | Real-time audio comparison method and device | |
JP2006215549A (en) | Method and apparatus for reducing noise corruption by alternative sensor signal in multi-sensory speech enhancement | |
EP2114010A1 (en) | Signal processing device | |
CN112786064A (en) | End-to-end bone-qi-conduction speech joint enhancement method | |
CN110660408A (en) | Method and device for digital automatic gain control | |
CN107331393B (en) | Self-adaptive voice activity detection method | |
US20080144708A1 (en) | Method and apparatus for equalization | |
JP2006211654A (en) | System for characterizing signal | |
US20170288915A1 (en) | Systems and Methods for Mitigating Over-Equalization in a Short Channel | |
WO2017128910A1 (en) | Method, apparatus and electronic device for determining speech presence probability | |
JP4891805B2 (en) | Reverberation removal apparatus, dereverberation method, dereverberation program, recording medium | |
CN106603976B (en) | Intelligent microwave frequency band radio monitoring control system | |
CN112185405A (en) | Bone conduction speech enhancement method based on differential operation and joint dictionary learning | |
WO2014126842A1 (en) | Audio clipping detection | |
US20200344303A1 (en) | Transmission of sensor data from sensor devices |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |