CN101692149A - Wave crest seeking method and wave crest seeking system - Google Patents

Wave crest seeking method and wave crest seeking system Download PDF

Info

Publication number
CN101692149A
CN101692149A CN200910272306A CN200910272306A CN101692149A CN 101692149 A CN101692149 A CN 101692149A CN 200910272306 A CN200910272306 A CN 200910272306A CN 200910272306 A CN200910272306 A CN 200910272306A CN 101692149 A CN101692149 A CN 101692149A
Authority
CN
China
Prior art keywords
data
peak
current
waveform data
waveform
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
Application number
CN200910272306A
Other languages
Chinese (zh)
Other versions
CN101692149B (en
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.)
Wuhan University of Technology WUT
Original Assignee
Wuhan University of Technology WUT
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 Wuhan University of Technology WUT filed Critical Wuhan University of Technology WUT
Priority to CN2009102723061A priority Critical patent/CN101692149B/en
Publication of CN101692149A publication Critical patent/CN101692149A/en
Application granted granted Critical
Publication of CN101692149B publication Critical patent/CN101692149B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Locating Faults (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

本发明公开了一种波峰寻找方法,所述波峰寻找方法包括如下步骤:采集输入的波形数据;根据所述波形数据的当前数据和上次数据定位系统状态;以及根据所述系统状态确定波峰位置。本发明波峰寻找方法无需大量存储空间和众多指令周期,寻峰精度高。本发明同时公开了一种波峰寻找系统。

Figure 200910272306

The invention discloses a method for finding a wave peak. The method for finding a wave peak includes the following steps: collecting input waveform data; locating the system state according to the current data and the last data of the waveform data; and determining the wave peak position according to the system state . The peak finding method of the present invention does not need a large amount of storage space and many instruction cycles, and the peak finding precision is high. The invention also discloses a wave peak finding system.

Figure 200910272306

Description

波峰寻找方法和波峰寻找系统Peak finding method and peak finding system

技术领域technical field

本发明涉及光纤光栅数据传输系统,尤其涉及光纤光栅数据传输系统中寻找波峰的方法和系统。The invention relates to a fiber grating data transmission system, in particular to a method and a system for finding wave peaks in the fiber grating data transmission system.

背景技术Background technique

随着光纤光栅的引进,各种复杂的全光纤通信和传感器网络遍布了整个通信领域。光纤光栅因其传输速率高、衰耗少而被越来越多地利用。现有的光纤光栅的制造过程如下:通过某种工艺方法使得外界入射光子和纤芯内的参杂粒子相互作用导致纤芯折射率沿轴方向周期性或者非周期性的永久变化,在纤芯内形成空间相位光栅。With the introduction of fiber gratings, various complex all-fiber communication and sensor networks have spread throughout the entire communication field. Fiber Bragg gratings are being used more and more because of their high transmission rate and low attenuation. The manufacturing process of the existing fiber grating is as follows: through a certain process, the incident photon from the outside interacts with the doped particles in the fiber core, resulting in periodic or non-periodic permanent changes in the refractive index of the fiber core along the axial direction. A spatial phase grating is formed inside.

光纤光栅数据传输系统包括数据调制系统和数据解调系统。所述数据调制系统把数据信息变换成适合于模拟信道上传输的电磁波(载波)信号,并把频率限制在所述模拟信道支持的频率范围内。所述数据解调系统是把从所述模拟信道上收取的载波信号还原成数据信息。Fiber grating data transmission system includes data modulation system and data demodulation system. The data modulation system converts data information into an electromagnetic wave (carrier) signal suitable for transmission on an analog channel, and limits the frequency within the frequency range supported by the analog channel. The data demodulation system restores the carrier signal received from the analog channel into data information.

现有的光纤光栅数据解调系统大多使用DSP(Digital Signal Processor,数字信号处理器)、ARM(Advanced RISC Machine,先进精简指令集计算机)或单片机并通过寻找波峰对波长进行数据解调。上述三种解调方法在寻找波峰的过程中一般以一周期作为基准来采集数据,并在高斯变换指令下对所述数据进行波峰寻找处理。所述高斯变换指令包括多项式-高斯公式拟合法指令以及高斯公式拟合法指令。所述多项式-高斯公式拟合法指令包括把采集的波形曲线数据进行高斯函数-多项式变换的指令以及一般多项式拟合法寻找波峰的指令。所述高斯公式拟合法指令是把采集的波形曲线数据直接作为高斯函数进行拟合处理的指令,因此所述高斯公式拟合法指令不对所述数据进行多项式变换处理。另外,现有波峰寻找方法还涉及以峰值前后的n个点为基准逐次比较的指令来寻找到波峰。Most of the existing fiber grating data demodulation systems use DSP (Digital Signal Processor, Digital Signal Processor), ARM (Advanced RISC Machine, Advanced Reduced Instruction Set Computer) or single-chip microcomputer to demodulate the wavelength by finding the peak. The above three demodulation methods generally use one cycle as a reference to collect data during the peak search process, and perform peak search processing on the data under the Gaussian transformation command. The Gaussian transformation instruction includes a polynomial-Gaussian formula fitting method instruction and a Gaussian formula fitting method instruction. The instruction of the polynomial-Gaussian formula fitting method includes the instruction of performing Gaussian function-polynomial transformation on the collected waveform curve data and the instruction of finding the wave peak by the general polynomial fitting method. The Gaussian formula fitting instruction is an instruction to directly use the collected waveform curve data as a Gaussian function for fitting processing, so the Gaussian formula fitting instruction does not perform polynomial transformation processing on the data. In addition, the existing peak finding method also involves sequentially comparing instructions based on n points before and after the peak to find the peak.

然而,利用多项式-高斯公式拟合法指令或者高斯公式拟合法指令来寻找波峰都需要有足够的内存来存储采集的一个周期的数据,并且所述指令需要消耗很多的指令周期,因而不仅影响了波峰寻找的速度,而且限制了光纤光栅数据解调系统的速度。而利用逐次比较指令来寻找波峰则由于是通过逐次地比较的方式来实现波峰寻找的,因而准确度不高,抗干扰能力弱。综合以上论述,上述利用三种指令的波峰寻找方法均不适合于系统速度和精确度要求高的光纤光栅数据解调系统。However, using the polynomial-Gaussian formula fitting method instruction or the Gaussian formula fitting method instruction to find the peak needs to have enough memory to store the data of one cycle of collection, and the instruction needs to consume a lot of instruction cycles, thus not only affecting the wave peak Seeking speed, but also limits the speed of FBG data demodulation system. However, the use of successive comparison instructions to find the peaks is achieved through successive comparisons, so the accuracy is not high and the anti-interference ability is weak. Based on the above discussion, none of the above peak finding methods using the three instructions is suitable for a fiber grating data demodulation system that requires high system speed and accuracy.

因此,有必要提供一种改进的波峰寻找方法和系统来克服现有技术的缺陷。Therefore, it is necessary to provide an improved peak finding method and system to overcome the defects of the prior art.

发明内容Contents of the invention

本发明实施例的目的在于提供一种波峰寻找方法和波峰寻找系统,所述波峰寻找方法和波峰寻找系统无需大量存储空间和众多指令周期,寻峰精度高。The purpose of the embodiments of the present invention is to provide a peak finding method and a peak finding system, which do not require a large amount of storage space and many instruction cycles, and have high peak finding accuracy.

为了实现上述目的,本发明提供了一种波峰寻找方法,所述波峰寻找方法包括如下步骤:采集输入的波形数据;根据所述波形数据的当前数据和上次数据定位系统状态;以及根据所述系统状态确定波峰位置。In order to achieve the above object, the present invention provides a method for finding a peak, the method for finding a peak includes the following steps: collecting input waveform data; locating the system state according to the current data and last data of the waveform data; and according to the The system state determines the peak location.

较佳地,所述采集输入的波形数据的步骤之后还包括:判断所述波形数据的上次数据是否大于开启阀值,则,所述根据所述波形数据的当前数据和上次数据定位系统状态的步骤具体为:当所述波形数据的上次数据小于所述开启阀值时,继续采集输入的波形数据;当所述波形数据的上次数据大于所述开启阀值时,根据所述波形数据的当前数据和上次数据定位系统状态。Preferably, after the step of collecting the input waveform data, it further includes: judging whether the last data of the waveform data is greater than the opening threshold, then, the positioning system according to the current data and the last data of the waveform data The step of state is specifically: when the last data of the waveform data is less than the opening threshold, continue to collect the input waveform data; when the last data of the waveform data is greater than the opening threshold, according to the The current data and the last data of the waveform data locate the system status.

在本发明的一个实施例中,所述根据所述波形数据的当前数据和上次数据定位系统状态的步骤具体为:判断所述波形数据的当前数据是否小于所述开启阀值;当所述波形数据的当前数据小于所述开启阀值时,定位所述系统状态为非初始状态;则,根据所述系统状态确定波峰位置的步骤具体为:选择是否接受峰值,当选择接收所述峰值时,根据所述当前数据和所述上次数据确定波峰位置。In one embodiment of the present invention, the step of locating the system state according to the current data of the waveform data and the last data is specifically: judging whether the current data of the waveform data is smaller than the threshold; when the When the current data of the waveform data is less than the opening threshold, the system state is positioned as a non-initial state; then, the step of determining the peak position according to the system state is specifically: selecting whether to accept the peak value, when selecting to receive the peak value , determining the peak position according to the current data and the last data.

在本发明的另一个实施例中,所述根据所述波形数据的当前数据和上次数据定位系统状态的步骤具体为:判断所述波形数据的当前数据是否小于所述开启阀值;当所述波形数据的当前数据大于所述开启阀值时,判断所述波形数据的当前数据是否小于所述波形数据的上次数据;当所述波形数据的当前数据小于所述波形数据的上次数据时,定位所述系统状态为下降状态,并进行下降计数,判断所述上次数据是否等于最大波峰数据,当所述上次数据等于所述最大波峰数据时,将所述当前数据的当前时间记录为结束时间。In another embodiment of the present invention, the step of locating the system state according to the current data of the waveform data and the last data is specifically: judging whether the current data of the waveform data is smaller than the threshold; when the When the current data of the waveform data is greater than the opening threshold, judge whether the current data of the waveform data is less than the last data of the waveform data; when the current data of the waveform data is less than the last data of the waveform data , locate the state of the system as a descending state, and perform a descending count to determine whether the last data is equal to the maximum peak data, and when the last data is equal to the maximum peak data, the current time of the current data Recorded as the end time.

较佳地,所述根据所述系统状态确定波峰位置的步骤之前还包括:判断所述下降计数的计数值是否大于最大下降计数值;当所述下降计数的计数值大于所述最大下降计数值时,定位所述系统状态为完成状态,则,所述根据所述系统状态确定波峰位置的步骤具体为:根据所述结束时间确定波峰位置。Preferably, before the step of determining the peak position according to the system state, it further includes: judging whether the count value of the down count is greater than the maximum down count value; when the count value of the down count is greater than the maximum down count value When locating the system state is a completed state, the step of determining the peak position according to the system state specifically includes: determining the peak position according to the end time.

在本发明的再一实施例中,所述波峰寻找方法还包括:当所述波形数据的当前数据大于所述波形数据的上次数据时,定位所述系统状态为上升状态;判断所述波形数据的当前数据是否大于最大波峰数据;当所述波形数据的当前数据大于最大波峰数据时,将所述当前数据记录为最大波峰数据,将所述当前数据的当前时间记录为起始时间,将所述下降计数的计数值清零,则,所述根据所述结束时间确定波峰位置的步骤具体为:根据所述结束时间以及所述起始时间定位波峰。In still another embodiment of the present invention, the peak finding method further includes: when the current data of the waveform data is greater than the last data of the waveform data, locating the state of the system as a rising state; judging the waveform Whether the current data of the data is greater than the maximum peak data; when the current data of the waveform data is greater than the maximum peak data, the current data is recorded as the maximum peak data, the current time of the current data is recorded as the start time, and The count value of the counting down is reset to zero, then, the step of determining the peak position according to the end time specifically includes: locating the peak according to the end time and the start time.

较佳地,所述根据所述结束时间以及所述起始时间定位波峰的步骤具体为:当所述结束时间为零时,将所述起始时间设置为波峰出现时间;当所述结束时间不为零时,将所述起始时间和所述结束时间的平均值设置为波峰出现时间。Preferably, the step of locating the peak according to the end time and the start time is specifically: when the end time is zero, setting the start time as the peak occurrence time; when the end time When it is not zero, the average value of the start time and the end time is set as the peak occurrence time.

在本发明的又一实施例中,所述波峰寻找方法还包括:当所述波形数据的当前数据等于所述波形数据的上次数据时,定位所述系统状态为平稳状态;判断所述波形数据的当前数据是否大于最大波峰数据;当所述波形数据的当前数据大于最大波峰数据时,将所述当前数据记录为最大波峰数据,将所述当前数据的当前时间记录为起始时间。In yet another embodiment of the present invention, the peak finding method further includes: when the current data of the waveform data is equal to the last data of the waveform data, locating the system state as a steady state; judging the waveform Whether the current data of the data is greater than the maximum peak data; when the current data of the waveform data is greater than the maximum peak data, the current data is recorded as the maximum peak data, and the current time of the current data is recorded as the start time.

本发明还提供了一种波峰寻找系统,所述波峰寻找包括波形数据采集模块、系统状态定位模块以及波峰位置确定模块。所述波形数据采集模块用于采集输入的波形数据;所述系统状态定位模块用于根据所述波形数据采集模块采集的波形数据的当前数据和上次数据定位系统状态;所述波峰位置确定模块用于根据所述系统状态定位模块定位的系统状态确定波峰位置。The present invention also provides a wave peak finding system, which includes a waveform data acquisition module, a system state positioning module and a wave peak position determination module. The waveform data acquisition module is used to collect input waveform data; the system state positioning module is used to locate the system state according to the current data and last data of the waveform data collected by the waveform data acquisition module; the peak position determination module It is used to determine the peak position according to the system state located by the system state positioning module.

在本发明的一个实施例中,所述系统状态定位模块包括数据阀值比较判断单元、接受选择单元、上次-当前数据比较判断单元以及系统状态定位单元。所述数据阀值比较判断单元用于判断所述波形数据采集模块采集的波形数据的当前数据以及上次数据是否大于开启阀值。所述接受选择单元用于当所述数据阀值比较判断单元判断波形数据上次数据大于所述开启阀值并且所述当前数据小于所述开启阀值时,判断是否接受峰值;所述上次-当前数据比较判断单元用于当所述数据阀值比较判断单元判断波形数据的上次数据和当前数据均大于所述开启阀值时,判断所述波形数据的当前数据是否大于所述波形数据的上次数据;所述系统状态定位单元用于根据所述上次-当前数据比较判断单元的判断结果定位系统状态。In one embodiment of the present invention, the system state location module includes a data threshold comparison and judgment unit, an acceptance and selection unit, a last-current data comparison and judgment unit, and a system state location unit. The data threshold comparison judging unit is used to judge whether the current data and last data of the waveform data collected by the waveform data acquisition module are greater than the opening threshold. The acceptance selection unit is used to judge whether to accept the peak value when the data threshold comparison judging unit judges that the last data of the waveform data is greater than the opening threshold and the current data is smaller than the opening threshold; -The current data comparison judging unit is used to judge whether the current data of the waveform data is greater than the waveform data when the data threshold comparison judging unit judges that the last data and the current data of the waveform data are greater than the opening threshold The last data; the system status locating unit is used for locating the system status according to the judgment result of the last-current data comparison judging unit.

综上所述,本发明的波峰寻找方法和波峰寻找系统根据所述波形数据的当前数据和上次数据定位系统状态从而确定波峰位置,所述系统状态实时跟踪并定位输入的波形,因此在寻找波峰过程中无需消耗内存来存储一个周期的数据,实现波峰寻找的指令少,节省了大量存储空间和波形分析时间,寻找波峰速度快、精度高。In summary, the peak finding method and the peak finding system of the present invention determine the peak position according to the current data of the waveform data and the last data positioning system state, and the system state tracks and locates the input waveform in real time, so when searching There is no need to consume memory to store one cycle of data during the wave peak process, and fewer instructions are required to find the wave peak, which saves a lot of storage space and waveform analysis time, and the speed of finding the wave peak is fast and the accuracy is high.

附图说明Description of drawings

图1为本发明波峰寻找方法第一实施例的流程图。Fig. 1 is a flow chart of the first embodiment of the peak finding method of the present invention.

图2为本发明波峰寻找方法第二实施例的流程图。Fig. 2 is a flow chart of the second embodiment of the peak finding method of the present invention.

图3为图2所示波峰寻找方法的系统状态转换示意图。FIG. 3 is a schematic diagram of system state transition of the peak finding method shown in FIG. 2 .

图4为本发明波峰寻找系统的结构框图。Fig. 4 is a structural block diagram of the peak finding system of the present invention.

图5为图4所示波峰寻找系统的系统状态定位模块的结构框图。Fig. 5 is a structural block diagram of a system state location module of the peak finding system shown in Fig. 4 .

图6为图5所示系统状态定位模块的系统状态定位单元的结构框图。FIG. 6 is a structural block diagram of a system state locating unit of the system state locating module shown in FIG. 5 .

具体实施方式Detailed ways

现在参考附图描述本发明的实施例,附图中类似的元件标号代表类似的元件。如上所述,本发明波峰寻找方法和波峰寻找系统无需大量存储空间和众多指令周期,寻峰精度高。下面将详细阐述。Embodiments of the present invention will now be described with reference to the drawings, in which like reference numerals represent like elements. As mentioned above, the peak-finding method and the peak-finding system of the present invention do not require a large amount of storage space and many instruction cycles, and the peak-finding accuracy is high. It will be elaborated below.

图1为本发明波峰寻找方法的流程图。如图1所示,所述峰寻找方法包括如下步骤:Fig. 1 is a flow chart of the peak finding method of the present invention. As shown in Figure 1, described peak finding method comprises the steps:

步骤S10:采集输入的波形数据;Step S10: collecting input waveform data;

步骤S20:判断所述波形数据的上次数据是否大于开启阀值(所述开启阀值可以根据实际环境动态地设置。所述判断步骤是为了过滤掉系统由于电源,布线等产生的系统干扰),当所述波形数据的上次数据小于所述开启阀值时(这里所述上次数据可以认为是来自外界的干扰,因此对所述上次数据不予分析,系统工作在初始状态),转步骤S100,当所述波形数据的上次数据大于所述开启阀值时,继续步骤S300;Step S20: Judging whether the last data of the waveform data is greater than the opening threshold (the opening threshold can be dynamically set according to the actual environment. The judging step is to filter out system interference caused by power supply, wiring, etc.) , when the last data of the waveform data is less than the opening threshold (the last data here can be considered as interference from the outside world, so the last data is not analyzed, and the system works in the initial state), Turn to step S100, when the last data of the waveform data is greater than the opening threshold, continue to step S300;

步骤S300根据所述波形数据的当前数据和上次数据定位系统状态(此时系统开始分析数据,工作在寻峰状态);Step S300 locates the system state according to the current data and the last data of the waveform data (at this moment, the system starts to analyze the data and works in the peak-seeking state);

步骤S400根据所述系统状态确定波峰位置。Step S400 determines the peak position according to the system state.

由上可以看出,本实施例波峰寻找方法根据所述波形数据的当前数据和上次数据定位系统状态从而确定波峰位置,因此无需消耗内存来存储一个周期的数据,实现波峰寻找的指令少,节省了大量存储空间和波形分析时间,寻找波峰速度快、精度高。It can be seen from the above that the peak finding method of this embodiment determines the peak position according to the current data of the waveform data and the last data positioning system state, so there is no need to consume memory to store data for one cycle, and there are few instructions to realize the peak search. It saves a lot of storage space and waveform analysis time, and finds the peak with fast speed and high precision.

图2为本发明波峰寻找方法第二实施例的流程图。Fig. 2 is a flow chart of the second embodiment of the peak finding method of the present invention.

步骤S100:采集输入的波形数据;Step S100: collecting input waveform data;

步骤S200:判断所述波形数据的上次数据是否大于开启阀值,当所述波形数据的上次数据大于所述开启阀值时,继续步骤S300,当所述波形数据的上次数据小于所述开启阀值时,转步骤S100,;Step S200: Judging whether the last data of the waveform data is greater than the opening threshold, when the last data of the waveform data is greater than the opening threshold, continue to step S300, when the last data of the waveform data is less than the opening threshold When opening the threshold value, turn to step S100;

步骤S300:判断所述波形数据的当前数据是否小于所述开启阀值,当所述波形数据的当前数据小于所述开启阀值时,继续步骤S411,当所述波形数据的当前数据大于所述开启阀值时,转步骤S421;Step S300: judging whether the current data of the waveform data is less than the opening threshold, when the current data of the waveform data is less than the opening threshold, proceed to step S411, when the current data of the waveform data is greater than the When the threshold is turned on, go to step S421;

步骤S411:定位所述系统状态为非初始状态(说明系统产生了周期较短的波形);Step S411: Locating the system state as a non-initial state (indicating that the system has generated a waveform with a shorter period);

步骤S412:选择是否接受峰值(这里可以根据实际情况选择是否接受此类波形,比如可以通过采样的数据大小判断是来自系统的杂波还是由于传感器发生形变产生的波形),当选择接收所述峰值时,继续步骤S413,当选择不接收所述峰值,转步骤S100;Step S412: Choose whether to accept the peak value (here you can choose whether to accept this type of waveform according to the actual situation, for example, you can judge whether it is the clutter from the system or the waveform due to the deformation of the sensor by the size of the sampled data), when you choose to receive the peak value , continue to step S413, when choosing not to receive the peak value, go to step S100;

步骤S413:根据所述当前数据和所述上次数据确定波峰位置;Step S413: Determine the peak position according to the current data and the last data;

步骤S421:判断所述波形数据的当前数据是否小于所述波形数据的上次数据,当所述波形数据的当前数据大于所述波形数据的上次数据时(说明产生了上升沿),继续步骤S511,当所述波形数据的当前数据等于所述波形数据的上次数据时,转步骤S521,当所述波形数据的当前数据小于所述波形数据的上次数据时(说明产生了下降沿),转步骤S531;Step S421: judge whether the current data of the waveform data is smaller than the last data of the waveform data, and when the current data of the waveform data is greater than the last data of the waveform data (indicating that a rising edge is generated), continue to the step S511, when the current data of the waveform data is equal to the last data of the waveform data, turn to step S521, when the current data of the waveform data is smaller than the last data of the waveform data (indicating that a falling edge has occurred) , go to step S531;

步骤S511:定位所述系统状态为上升状态;Step S511: Locating the system state as rising state;

步骤S512:判断所述波形数据的当前数据是否大于最大波峰数据,当所述波形数据的当前数据大于最大波峰数据时,继续步骤S513,否则转步骤S100;Step S512: judging whether the current data of the waveform data is greater than the maximum peak data, when the current data of the waveform data is greater than the maximum peak data, continue to step S513, otherwise go to step S100;

步骤S513:将所述当前数据记录为最大波峰数据,将所述当前数据的当前时间记录为起始时间,将下降计数的计数值清零,转步骤S100;Step S513: Record the current data as the maximum peak data, record the current time of the current data as the start time, clear the count value of the down count, and go to step S100;

步骤S521:定位所述系统状态为平稳状态;Step S521: Positioning the system state as a steady state;

步骤S522:判断所述波形数据的当前数据是否大于最大波峰数据,当所述波形数据的当前数据大于最大波峰数据时,继续步骤S523,否则步骤S100;Step S522: judging whether the current data of the waveform data is greater than the maximum peak data, when the current data of the waveform data is greater than the maximum peak data, continue to step S523, otherwise step S100;

步骤S523:将所述当前数据记录为最大波峰数据,将所述当前数据的当前时间记录为起始时间,转步骤S100;Step S523: Record the current data as the maximum peak data, record the current time of the current data as the start time, and go to step S100;

步骤S531:定位所述系统状态为下降状态,并进行下降计数,Step S531: Locating the system state as a down state, and performing a down count,

步骤S532:判断所述上次数据是否等于最大波峰数据,当所述上次数据等于所述最大波峰数据时,继续步骤S533,否则转转步骤S100;Step S532: Judging whether the last data is equal to the maximum peak data, if the last data is equal to the maximum peak data, continue to step S533, otherwise go to step S100;

步骤S533:将所述当前数据的当前时间记录为结束时间;Step S533: Record the current time of the current data as the end time;

步骤S534:判断所述下降计数的计数值是否大于最大下降计数值,当所述下降计数的计数值大于所述最大下降计数值时,继续步骤S535,否则转步骤S100;Step S534: judging whether the count value of the down count is greater than the maximum down count value, when the count value of the down count is greater than the maximum down count value, continue to step S535, otherwise go to step S100;

步骤S535:定位所述系统状态为完成状态;Step S535: Locating the system state as the completed state;

步骤S536:置位相应标志位通知系统找到波峰,根据所述结束时间以及所述起始时间定位波峰。Step S536: Set the corresponding flag bit to notify the system to find the peak, and locate the peak according to the end time and the start time.

其中,所述步骤S536具体为:当所述结束时间为零时(说明采集到了尖峰),将所述起始时间设置为波峰出现时间;当所述结束时间不为零时(说明采集到了平峰),将所述起始时间和所述结束时间的平均值设置为波峰出现时间。Wherein, the step S536 is specifically: when the end time is zero (indicating that a peak has been collected), the start time is set as the peak occurrence time; when the end time is not zero (indicating that a flat peak has been collected) ), the average value of the start time and the end time is set as the peak occurrence time.

由上可以看出,本实施例波峰寻找方法通过系统状态来实时跟踪并定位输入的波形,通过系统状态(初始状态、上升状态、平稳状态、下降状态、完成状态)的转换,使系统始终与当前状态同步。本方法实时记录最大波峰数据、起始时间、结束时间以及下降次数。当当前数据为最大值时,更新最大波峰数据和起始时间;当上次数据为最大波峰数据并且当前采样值小于上次采样值时,更新结束时间,这样就使系统状态随着波形同步变化。当当前采样值小于上次采样值时,更新下降次数。本发明通过设置所述下降次数的最大下降计数值可以控制波形分析的分辨率,实现自定义解调精度。例如系统中有相隔很近的波峰时候,可以通过减小所述最大下降计数值来提高分析精度。It can be seen from the above that the peak finding method of this embodiment tracks and locates the input waveform in real time through the system state, and through the conversion of the system state (initial state, rising state, steady state, falling state, and completed state), the system is always consistent with The current state is synchronized. This method records the maximum peak data, start time, end time and number of drops in real time. When the current data is the maximum value, update the maximum peak data and start time; when the last data is the maximum peak data and the current sampling value is smaller than the last sampling value, update the end time, so that the system state changes synchronously with the waveform . When the current sampled value is less than the last sampled value, update the number of drops. The present invention can control the resolution of waveform analysis by setting the maximum falling count value of the falling times, and realize self-defined demodulation precision. For example, when there are closely spaced peaks in the system, the analysis accuracy can be improved by reducing the maximum count down value.

图3为图2所示波峰寻找方法的系统状态转换示意图。如图所示,系统状态可以是:当当前数据小于开启阀值时,系统从初始状态转换到初始状态,如图中箭头20所示。在初始状态时,当当前数据大于上次数据时,系统从初始状态转换到上升状态,如图中箭头21所示。在上升状态时,当当前数据大于上次数据时,系统从上升状态转换到上升状态,如图中箭头22所示。在上升状态时,当当前数据等于上次数据时,系统从上升状态转换到平稳状态,如图中箭头23所示。在上升状态时,当当前数据小于上次数据时,系统从上升状态转换到下降状态,如图中箭头24所示。在平稳状态时,当当前数据等于上次数据时,系统从平稳状态转换到平稳状态,如图中箭头25所示。在平稳状态时,当当前数据大于上次数据时,系统从平稳状态转换到上升状态,如图中箭头26所示。在平稳状态时,当当前数据小于上次数据时,系统从平稳状态转换到下降状态,如图中箭头27所示。在下降状态时,当当前数据大于上次数据时,系统从下降状态转换到上升状态,如图中箭头28所示。在下降状态时,当当前数据等于上次数据时,系统从下降状态转换到平稳状态,如图中箭头29所示。在下降状态时,当当前数据小于上次数据时,系统从下降状态转换到下降状态,如图中箭头30所示。在下降状态时,当下降计数的计数值大于最大下降计数值时,系统从下降状态转换到完成状态,如图中箭头31所示。在完成状态时,需要继续寻找波峰时,系统从完成状态转换到初始状态,如图中箭头32所示。FIG. 3 is a schematic diagram of system state transition of the peak finding method shown in FIG. 2 . As shown in the figure, the system state may be: when the current data is less than the opening threshold, the system transitions from the initial state to the initial state, as shown by arrow 20 in the figure. In the initial state, when the current data is greater than the last data, the system switches from the initial state to the rising state, as shown by arrow 21 in the figure. In the rising state, when the current data is greater than the last data, the system will switch from the rising state to the rising state, as shown by arrow 22 in the figure. In the rising state, when the current data is equal to the last data, the system will switch from the rising state to the steady state, as shown by arrow 23 in the figure. In the rising state, when the current data is smaller than the last data, the system switches from the rising state to the falling state, as shown by arrow 24 in the figure. In the steady state, when the current data is equal to the last data, the system transitions from the steady state to the steady state, as shown by arrow 25 in the figure. In the steady state, when the current data is greater than the last data, the system transitions from the steady state to the rising state, as shown by arrow 26 in the figure. In the steady state, when the current data is smaller than the last data, the system transitions from the steady state to the descending state, as shown by arrow 27 in the figure. In the descending state, when the current data is greater than the last data, the system switches from the descending state to the rising state, as shown by arrow 28 in the figure. In the descending state, when the current data is equal to the last data, the system transitions from the descending state to the steady state, as shown by arrow 29 in the figure. In the descending state, when the current data is smaller than the last data, the system switches from the descending state to the descending state, as shown by arrow 30 in the figure. In the down state, when the count value of the down count is greater than the maximum down count value, the system transitions from the down state to the complete state, as shown by arrow 31 in the figure. In the completed state, when it is necessary to continue to search for the peak, the system switches from the completed state to the initial state, as shown by the arrow 32 in the figure.

图4为本发明波峰寻找系统的结构框图。所述波峰寻找系统包括波形数据采集模块100、系统状态定位模块200以及波峰位置确定模块300。所述波形数据采集模块100用于采集输入的波形数据;所述系统状态定位模块200用于根据所述波形数据采集模块100采集的波形数据的当前数据和上次数据定位系统状态;所述波峰位置确定模块300用于根据所述系统状态定位模块200定位的系统状态确定波峰位置。Fig. 4 is a structural block diagram of the peak finding system of the present invention. The peak finding system includes a waveform data acquisition module 100 , a system status positioning module 200 and a peak position determination module 300 . The waveform data acquisition module 100 is used to collect the input waveform data; the system state positioning module 200 is used to locate the system state according to the current data and last data of the waveform data collected by the waveform data acquisition module 100; The position determination module 300 is used to determine the peak position according to the system status located by the system status positioning module 200 .

其中,如图4所示,所述系统状态定位模块200包括数据阀值比较判断单元210、接受选择子单元220、上次-当前数据比较判断单元230和系统状态定位单元240。Wherein, as shown in FIG. 4 , the system state location module 200 includes a data threshold comparison and judgment unit 210 , an acceptance selection subunit 220 , a last-current data comparison judgment unit 230 and a system state location unit 240 .

所述数据阀值比较判断单元210用于判断所述波形数据采集模块100采集的波形数据的当前数据以及上次数据是否大于开启阀值。所述开启阀值可以根据实际环境动态地设置。所述数据阀值比较判断单元210对所述上次数据的判断是为了过滤掉系统由于电源,布线等产生的系统干扰,当所述数据阀值比较判断单元210判断所述波形数据的上次数据小于所述开启阀值时,这里所述上次数据可以认为是来自外界的干扰,因此对所述上次数据不予分析,系统工作在初始状态,继续输入数据。当所述数据阀值比较判断单元210判断所述波形数据的上次数据大于所述开启阀值时,系统开始分析数据,根据所述波形数据的当前数据和上次数据定位系统状态,工作在寻峰状态。The data threshold comparison judging unit 210 is used to judge whether the current data and last data of the waveform data collected by the waveform data collection module 100 are greater than the opening threshold. The opening threshold can be dynamically set according to the actual environment. The data threshold comparison judgment unit 210 judges the last data in order to filter out the system interference caused by power supply, wiring, etc., when the data threshold comparison judgment unit 210 judges the last time of the waveform data When the data is less than the opening threshold, the last data here can be considered as interference from the outside world, so the last data will not be analyzed, the system works in the initial state, and continues to input data. When the data threshold comparison judging unit 210 judges that the last data of the waveform data is greater than the opening threshold, the system starts to analyze the data, locates the system state according to the current data of the waveform data and the last data, and works in Peak seeking state.

所述接受选择单元220用于当所述所述数据阀值比较判断单元210判断所述上次数据大于所述开启阀值并且所述当前数据小于所述开启阀值时,定位所述系统状态为非初始状态(说明系统产生了周期较短的波形),并判断是否接受峰值,这里可以根据实际情况选择是否接受此类波形,比如可以通过采样的数据大小判断是来自系统的杂波还是由于传感器发生形变产生的波形。当选择接收所述峰值时,所述波峰位置确定模块300根据所述当前数据和所述上次数据确定波峰位置。The acceptance selection unit 220 is configured to locate the system state when the data threshold comparison judging unit 210 judges that the last data is greater than the opening threshold and the current data is less than the opening threshold It is a non-initial state (indicating that the system has generated a waveform with a short cycle), and judge whether to accept the peak value. Here, you can choose whether to accept this type of waveform according to the actual situation. For example, you can judge whether it is clutter from the system or due to the size of the sampled data. The waveform generated by the deformation of the sensor. When selecting to receive the peak value, the peak position determining module 300 determines the peak position according to the current data and the last data.

所述上次-当前数据比较判断单元230用于当所述数据阀值比较判断单元210判断波形数据的上次数据和当前数据均大于开启阀值时,判断所述波形数据的当前数据是否大于所述波形数据的上次数据。The last-current data comparison judging unit 230 is used for judging whether the current data of the waveform data is greater than The last data of the waveform data.

所述系统状态定位单元240用于根据所述上次-当前数据比较判断单元230判断的结果定位系统状态。The system state locating unit 240 is used for locating the system state according to the result judged by the last-current data comparison judgment unit 230 .

在本实施例中,所述波峰寻找系统在所述波形数据采集模块100采集数据之前要初始化系统,使所述系统位于初始状态。另外,所述系统设置有上次数据寄存器和当前数据寄存器。所述上次数据寄存器用于保存所述波形数据采集模块100上次采样的数据,所述当前数据寄存器用于保存所述波形数据采集模块100当前采样的数据。在每个采样周期内,一旦系统分析完数据并在下次采样即将开始时,所述当前数据寄存器保存的当前数据的值赋给所述上次数据寄存器,使所述上次数据寄存器始终保存前次采样的数据。此外,所述系统还设置有最大波峰数据寄存器、结束时间寄存器、起始时间寄存器和下降次数计数器。所述最大波峰数据寄存器用于保存采样最大数值。所述结束时间寄存器、起始时间寄存器用于保存采样时间,所述下降次数计数器用于记录下降次数。In this embodiment, the peak finding system needs to initialize the system before the waveform data acquisition module 100 collects data, so that the system is in an initial state. In addition, the system is provided with a last data register and a current data register. The last data register is used to save the data sampled last time by the waveform data acquisition module 100 , and the current data register is used to save the data currently sampled by the waveform data acquisition module 100 . In each sampling cycle, once the system analyzes the data and is about to start the next sampling, the value of the current data saved in the current data register is assigned to the last data register, so that the last data register always saves the previous subsampled data. In addition, the system is also provided with a maximum peak data register, an end time register, a start time register and a falling times counter. The maximum peak data register is used to save the maximum sampling value. The end time register and the start time register are used to save the sampling time, and the falling times counter is used to record the falling times.

详细地,如图6所示,所述系统状态定位单元240包括当前数据-最大波峰数据比较判断子单元241、第一处理子单元242、第四处理子单元246、第二处理子单元243、上次数据-最大波峰数据比较判断子单元244、第三处理子单元245、下降次数-最大下降计数值比较判断子单元247以及第五处理子单元248。In detail, as shown in FIG. 6 , the system state positioning unit 240 includes a current data-maximum peak data comparison and judgment subunit 241, a first processing subunit 242, a fourth processing subunit 246, a second processing subunit 243, The last data-maximum peak data comparison and judgment subunit 244 , the third processing subunit 245 , the descending times-maximum descending count value comparison and judgment subunit 247 , and the fifth processing subunit 248 .

所述当前数据-最大波峰数据比较判断子单元241用于当所述上次-当前数据比较判断单元230判断所述波形数据的当前数据大于或等于所述波形数据的上次数据时,判断所述波形数据的当前数据是否大于最大波峰数据寄存器的最大波峰数据。The current data-maximum peak data comparison and judgment subunit 241 is used to judge the current data of the waveform data when the last-current data comparison and judgment unit 230 judges that the current data of the waveform data is greater than or equal to the last data of the waveform data. Check whether the current data of the waveform data is greater than the maximum peak data of the maximum peak data register.

所述第一处理子单元242用于当所述上次-当前数据比较判断单元230判断所述波形数据的当前数据大于所述波形数据的上次数据并且所述当前数据-最大波峰数据比较判断子单元241判断所述波形数据的当前数据大于所述最大波峰数据寄存器的最大波峰数据时,定位所述系统状态为上升状态,保存所述当前数据到所述最大值波峰数据寄存器,保存所述当前数据的当前时间到所述起始时间寄存器,同时将所述下降次数计数器的计数值清零,The first processing subunit 242 is configured to determine that the current data of the waveform data is greater than the last data of the waveform data and the current data-maximum peak data comparison judgment unit 230 When the subunit 241 judges that the current data of the waveform data is greater than the maximum peak data of the maximum peak data register, the system state is positioned as a rising state, and the current data is stored in the maximum peak data register, and the The current time of the current data arrives at the start time register, and the count value of the number of times of falling counter is cleared to zero simultaneously,

所述第四处理子单元246用于当所述上次-当前数据比较判断单元230判断所述波形数据的当前数据等于所述波形数据的上次数据并且所述当前数据-最大波峰数据比较判断子单元241判断所述波形数据的当前数据大于所述最大波峰数据寄存器的最大波峰数据时,定位所述系统状态为稳定状态,保存所述当前数据到所述最大值波峰数据寄存器,保存所述当前数据的当前时间到所述起始时间寄存器,The fourth processing subunit 246 is used for comparing and judging when the last time-current data comparison judging unit 230 judges that the current data of the waveform data is equal to the last data of the waveform data and the current data-maximum peak data comparison judgment When the subunit 241 judges that the current data of the waveform data is greater than the maximum peak data of the maximum peak data register, the system state is positioned as a stable state, the current data is saved to the maximum peak data register, and the the current time of the current data into the start time register,

所述第二处理子单元243用于当所述上次-当前数据比较判断单元230判断所述波形数据的当前数据小于所述波形数据的上次数据时,定位所述系统状态为下降状态,对所述下降次数计数器进行下降计数;The second processing subunit 243 is configured to locate the system state as a down state when the last-current data comparison judging unit 230 judges that the current data of the waveform data is smaller than the last data of the waveform data, Carry out down counting to described number of times of down counting counter;

所述上次数据-最大波峰数据比较判断子单元244用于当所述上次-当前数据比较判断单元230判断所述波形数据的当前数据小于所述波形数据的上次数据时,判断所述上次数据是否等于最大波峰数据;The last data-maximum peak data comparison and judging subunit 244 is used for judging the Whether the last data is equal to the maximum peak data;

所述第三处理子单元245用于当所述上次数据-最大波峰数据比较判断子单元244判断所述上次数据等于所述最大波峰数据时,保存所述当前数据的当前时间到结束时间寄存器;The third processing subunit 245 is configured to save the current time of the current data to the end time when the last data-maximum peak data comparison judgment subunit 244 judges that the last data is equal to the maximum peak data register;

所述下降次数-最大下降计数值比较判断子单元247用于判断所述下降次数计数器的计数值是否大于最大下降计数值,The number of times of falling-maximum falling count value comparison judgment subunit 247 is used to judge whether the count value of the counting number of times of falling is greater than the maximum counting value of falling,

所述第五处理子单元248用于当所述下降次数-最大下降计数值比较判断子单元247判断所述下降次数计数器的计数值大于最大下降计数值时,定位所述系统状态为完成状态,并根据所述结束时间寄存器的结束时间以及所述起始时间寄存器的起始时间定位波峰。The fifth processing subunit 248 is configured to locate the system state as a complete state when the counting value of the descending times counter is greater than the maximum descending count value when the descending times-maximum descending count value comparison judgment subunit 247 judges, And locate the peak according to the end time of the end time register and the start time of the start time register.

其中,所述第五处理子单元248定位波峰具体为:当所述结束时间为零时(说明采集到了尖峰),将所述起始时间设置为波峰出现时间;当所述结束时间不为零时(说明采集到了平峰),将所述起始时间和所述结束时间的平均值设置为波峰出现时间。Wherein, the fifth processing subunit 248 locates the peak specifically as follows: when the end time is zero (indicating that a peak has been collected), the start time is set as the peak occurrence time; when the end time is not zero (indicating that a flat peak has been collected), the average value of the start time and the end time is set as the peak occurrence time.

由上可以看出,本实施例波峰寻找系统通过系统状态来实时跟踪并定位输入的波形,通过系统状态(初始状态、上升状态、平稳状态、下降状态、完成状态)的转换,使系统始终与当前状态同步,因此无需大量存储空间和众多指令周期,寻峰精度高。同时,本系统通过设置最大下降计数值的大小可以控制波形分析的分辨率,实现自定义解调精度。It can be seen from the above that the peak finding system of this embodiment tracks and locates the input waveform in real time through the system state, and through the conversion of the system state (initial state, rising state, steady state, falling state, and completed state), the system is always consistent with The current state is synchronized, so there is no need for a large storage space and many instruction cycles, and the peak-finding accuracy is high. At the same time, the system can control the resolution of waveform analysis by setting the value of the maximum down count value, and realize custom demodulation accuracy.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above description is a preferred embodiment of the present invention, and it should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications are also considered Be the protection scope of the present invention.

Claims (10)

1.一种波峰寻找方法,包括如下步骤:1. A method for finding a wave peak, comprising the steps of: 采集输入的波形数据;Acquire input waveform data; 根据所述波形数据的当前数据和上次数据定位系统状态;以及Positioning the system state based on the current data and the last data of the waveform data; and 根据所述系统状态确定波峰位置。A peak location is determined based on the system state. 2.如权利要求1所述的波峰寻找方法,其特征在于,所述采集输入的波形数据的步骤之后还包括:2. The wave peak finding method as claimed in claim 1, is characterized in that, after the step of the waveform data of described collection input also comprises: 判断所述波形数据的上次数据是否大于开启阀值,Judging whether the last data of the waveform data is greater than the opening threshold, 则,所述根据所述波形数据的当前数据和上次数据定位系统状态的步骤具体为:Then, the step of locating the system state according to the current data of the waveform data and the last data is specifically: 当所述波形数据的上次数据小于所述开启阀值时,继续采集输入的波形数据;以及When the last data of the waveform data is less than the opening threshold, continue to collect the input waveform data; and 当所述波形数据的上次数据大于所述开启阀值时,根据所述波形数据的当前数据和上次数据定位系统状态。When the last data of the waveform data is greater than the opening threshold, the state of the system is positioned according to the current data and the last data of the waveform data. 3.如权利要求2所述的波峰寻找方法,其特征在于,所述根据所述波形数据的当前数据和上次数据定位系统状态的步骤具体为:3. The wave peak finding method as claimed in claim 2, wherein the step of the described current data and last data location system state according to the waveform data is specifically: 判断所述波形数据的当前数据是否小于所述开启阀值;以及judging whether the current data of the waveform data is smaller than the opening threshold; and 当所述波形数据的当前数据小于所述开启阀值时,定位所述系统状态为非初始状态;When the current data of the waveform data is less than the opening threshold, locating the system state as a non-initial state; 则,根据所述系统状态确定波峰位置的步骤具体为:Then, the step of determining the peak position according to the system state is specifically: 选择是否接受峰值;以及choose whether to accept peaks; and 当选择接收所述峰值时,根据所述当前数据和所述上次数据确定波峰位置。When the peak value is selected to be received, the peak position is determined according to the current data and the last data. 4.如权利要求2所述的波峰寻找方法,其特征在于,所述根据所述波形数据的当前数据和上次数据定位系统状态的步骤具体为:4. The wave peak finding method as claimed in claim 2, characterized in that, the step of the described current data and last data positioning system state according to the waveform data is specifically: 判断所述波形数据的当前数据是否小于所述开启阀值;judging whether the current data of the waveform data is less than the opening threshold; 当所述波形数据的当前数据大于所述开启阀值时,判断所述波形数据的当前数据是否小于所述波形数据的上次数据;When the current data of the waveform data is greater than the opening threshold, judging whether the current data of the waveform data is smaller than the last data of the waveform data; 当所述波形数据的当前数据小于所述波形数据的上次数据时,定位所述系统状态为下降状态,并进行下降计数;以及When the current data of the waveform data is smaller than the last data of the waveform data, positioning the system state as a down state, and performing a down count; and 判断所述上次数据是否等于最大波峰数据,当所述上次数据等于所述最大波峰数据时,将所述当前数据的当前时间记录为结束时间。Judging whether the last data is equal to the maximum peak data, and recording the current time of the current data as the end time when the last data is equal to the maximum peak data. 5.如权利要求4所述的波峰寻找方法,其特征在于,所述根据所述系统状态确定波峰位置的步骤之前还包括:5. The wave peak finding method as claimed in claim 4, characterized in that, before the step of determining the peak position according to the system state, it also includes: 判断所述下降计数的计数值是否大于最大下降计数值;以及judging whether the count value of the down count is greater than the maximum down count value; and 当所述下降计数的计数值大于所述最大下降计数值时,定位所述系统状态为完成状态,When the count value of the down count is greater than the maximum down count value, locating the system state as a complete state, 则,所述根据所述系统状态确定波峰位置的步骤具体为:Then, the step of determining the peak position according to the system state is specifically: 根据所述结束时间确定波峰位置。Determine the peak position according to the end time. 6.如权利要求4所述的波峰寻找方法,其特征在于,还包括:6. The wave peak finding method as claimed in claim 4, is characterized in that, also comprises: 当所述波形数据的当前数据大于所述波形数据的上次数据时,定位所述系统状态为上升状态;When the current data of the waveform data is greater than the last data of the waveform data, locating the system state as a rising state; 判断所述波形数据的当前数据是否大于最大波峰数据;以及judging whether the current data of the waveform data is greater than the maximum peak data; and 当所述波形数据的当前数据大于最大波峰数据时,将所述当前数据记录为最大波峰数据,将所述当前数据的当前时间记录为起始时间,将所述下降计数的计数值清零,When the current data of the waveform data is greater than the maximum peak data, the current data is recorded as the maximum peak data, the current time of the current data is recorded as the start time, and the count value of the descending count is cleared, 则,所述根据所述结束时间确定波峰位置的步骤具体为:Then, the step of determining the peak position according to the end time is specifically: 根据所述结束时间以及所述起始时间定位波峰。Peaks are located according to the end time and the start time. 7.如权利要求6所述的波峰寻找方法,其特征在于,所述根据所述结束时间以及所述起始时间定位波峰的步骤具体为:7. The wave peak finding method according to claim 6, wherein the step of locating the wave peak according to the end time and the start time is specifically: 当所述结束时间为零时,将所述起始时间设置为波峰出现时间;以及When the end time is zero, setting the start time as the peak occurrence time; and 当所述结束时间不为零时,将所述起始时间和所述结束时间的平均值设置为波峰出现时间。When the end time is not zero, the average value of the start time and the end time is set as the peak occurrence time. 8.如权利要求4所述的波峰寻找方法,其特征在于,还包括:8. The wave peak finding method as claimed in claim 4, is characterized in that, also comprises: 当所述波形数据的当前数据等于所述波形数据的上次数据时,定位所述系统状态为平稳状态;When the current data of the waveform data is equal to the last data of the waveform data, locating the system state as a steady state; 判断所述波形数据的当前数据是否大于最大波峰数据;以及judging whether the current data of the waveform data is greater than the maximum peak data; and 当所述波形数据的当前数据大于最大波峰数据时,将所述当前数据记录为最大波峰数据,将所述当前数据的当前时间记录为起始时间。When the current data of the waveform data is greater than the maximum peak data, record the current data as the maximum peak data, and record the current time of the current data as the start time. 9.一种波峰寻找系统,包括:9. A peak finding system comprising: 波形数据采集模块,用于采集输入的波形数据;Waveform data acquisition module, used to collect input waveform data; 系统状态定位模块,用于根据所述波形数据采集模块采集的波形数据的当前数据和上次数据定位系统状态;以及A system status locating module, configured to locate the system status according to the current data and last data of the waveform data collected by the waveform data acquisition module; and 波峰位置确定模块,用于根据所述系统状态定位模块定位的系统状态确定波峰位置。A peak position determining module, configured to determine the peak position according to the system state located by the system state positioning module. 10.如权利要去9所述的波峰寻找系统,其特征在于,所述系统状态定位模块包括:10. The wave peak finding system as claimed in claim 9, is characterized in that, the system state location module comprises: 数据阀值比较判断单元,用于判断所述波形数据采集模块采集的波形数据的当前数据以及上次数据是否大于开启阀值,A data threshold comparison judging unit for judging whether the current data of the waveform data collected by the waveform data acquisition module and the last data are greater than the opening threshold, 接受选择单元,用于当所述数据阀值比较判断单元判断波形数据上次数据大于所述开启阀值并且所述当前数据小于所述开启阀值时,判断是否接受峰值;An acceptance selection unit, configured to determine whether to accept a peak value when the data threshold comparison judging unit judges that the last data of the waveform data is greater than the opening threshold and the current data is smaller than the opening threshold; 上次-当前数据比较判断单元,用于当所述数据阀值比较判断单元判断波形数据的上次数据和当前数据均大于所述开启阀值时,判断所述波形数据的当前数据是否大于所述波形数据的上次数据;以及Last time-current data comparison judging unit, used to judge whether the current data of the waveform data is greater than the threshold value when the data threshold comparison judging unit judges that the last data and the current data of the waveform data are greater than the threshold the previous data of the waveform data; and 系统状态定位单元,用于根据所述上次-当前数据比较判断单元的判断结果定位系统状态。A system state locating unit, configured to locate the system state according to the judgment result of the last-current data comparison judgment unit.
CN2009102723061A 2009-09-30 2009-09-30 Wave crest seeking method and wave crest seeking system Expired - Fee Related CN101692149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102723061A CN101692149B (en) 2009-09-30 2009-09-30 Wave crest seeking method and wave crest seeking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102723061A CN101692149B (en) 2009-09-30 2009-09-30 Wave crest seeking method and wave crest seeking system

Publications (2)

Publication Number Publication Date
CN101692149A true CN101692149A (en) 2010-04-07
CN101692149B CN101692149B (en) 2012-07-04

Family

ID=42080852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102723061A Expired - Fee Related CN101692149B (en) 2009-09-30 2009-09-30 Wave crest seeking method and wave crest seeking system

Country Status (1)

Country Link
CN (1) CN101692149B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098101A (en) * 2011-01-04 2011-06-15 武汉理工大学 Crest searching method and system
CN102435214A (en) * 2011-09-20 2012-05-02 华北电力大学(保定) High-precision and fast optical fiber grating spectrum peak-searching method
CN103913765A (en) * 2014-03-24 2014-07-09 中国船舶重工集团公司第七一九研究所 Nuclide energy spectrum peak searching method
CN110260898A (en) * 2019-06-24 2019-09-20 武汉理工光科股份有限公司 Jamproof grating wavelength demodulation method and system
CN115388919A (en) * 2022-08-24 2022-11-25 长春工业大学 A Composite Spatial Localization Method for Fiber Bragg Grating Sensor Networks

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098101A (en) * 2011-01-04 2011-06-15 武汉理工大学 Crest searching method and system
CN102098101B (en) * 2011-01-04 2013-05-08 武汉理工大学 Crest searching method and system
CN102435214A (en) * 2011-09-20 2012-05-02 华北电力大学(保定) High-precision and fast optical fiber grating spectrum peak-searching method
CN102435214B (en) * 2011-09-20 2014-02-12 华北电力大学(保定) High-precision and fast peak-finding method for fiber grating spectrum peaks
CN103913765A (en) * 2014-03-24 2014-07-09 中国船舶重工集团公司第七一九研究所 Nuclide energy spectrum peak searching method
CN103913765B (en) * 2014-03-24 2016-08-31 中国船舶重工集团公司第七一九研究所 A kind of nucleic power spectrum Peak Search Method
CN110260898A (en) * 2019-06-24 2019-09-20 武汉理工光科股份有限公司 Jamproof grating wavelength demodulation method and system
CN110260898B (en) * 2019-06-24 2021-07-06 武汉理工光科股份有限公司 Anti-interference grating wavelength demodulation method and system
CN115388919A (en) * 2022-08-24 2022-11-25 长春工业大学 A Composite Spatial Localization Method for Fiber Bragg Grating Sensor Networks

Also Published As

Publication number Publication date
CN101692149B (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN101692149B (en) Wave crest seeking method and wave crest seeking system
CN102098101B (en) Crest searching method and system
CN102192794B (en) Temperature data acquisition device, and storing and transmitting method thereof
CN103604449B (en) Quick Peak Search Method and system based on FPGA
CN102023302A (en) Multichannel cooperative control method and device in satellite navigation receiver
CN106969270B (en) A collection device and using method for detecting pipeline leakage based on sound wave detection
CN104361374A (en) Collecting and processing system and method of radio-frequency signals
CN102298565A (en) Method for decoding and triggering asynchronous serial bus signals
CN101295324A (en) Acquisition and processing method of electric power data
CN205484836U (en) Multichannel pulse amplitude analyzer
CN101216344A (en) Music beat detection device and method thereof
CN101907924B (en) Impulse-based information input device
CN102257462A (en) Method for identifying a sequence of input signals
CN117118795B (en) UWB signal detection method based on multimodal tracking
CN109813348B (en) A distributed optical fiber sensing system and its control method
CN114779097B (en) Dynamic response time test module and implementation method for energy storage system
CN102436332A (en) Touch control method and device
CN201503414U (en) Processor for intrinsic safety wire rope magnetic flaw detector
CN113030749B (en) Current detection method, device, equipment, system and storage medium
CN113054984B (en) Pressure-sensitive detection circuit, chip, system and pressure-sensitive detection method
CN100565604C (en) A kind of lightning current measurement method and device
CN211426626U (en) Pulse heavy current data acquisition and processing system
CN204242207U (en) A kind of Acquire and process system of radiofrequency signal
CN110297471B (en) Industrial robot experimental data acquisition method and device
CN204028622U (en) Explosion wave high speed data acquisition system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120704

Termination date: 20210930

CF01 Termination of patent right due to non-payment of annual fee