Signal processing method, device and equipment of fluid vibration type flowmeter and medium
By presetting the phase movement of the piezoelectric signal in the fluid vibration flow meter and determining the target period, the denoising target piezoelectric signal is generated, which solves the problem that signal processing cannot completely remove noise in the prior art, and improves the signal processing effect of the flow meter.
Patent Information
- Application Number
- CN202311399928.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
AI Technical Summary
The existing signal processing methods of fluid vibration flow meters cannot completely remove noise, resulting in noise in the target signal.
By acquiring the amplified first and second piezoelectric signals of the piezoelectric flow sensor, the phase movement angle of the first piezoelectric signal is preset, and a third piezoelectric signal is generated. Then, the rising and falling times in the second piezoelectric signal are determined. If the rising time level of the third piezoelectric signal is a preset level, the corresponding period is used as the target period to generate the target piezoelectric signal.
When the amplification ratios of the two amplified signals are inconsistent or the phase shifts, noise can be effectively removed to ensure that the target piezoelectric signal is at a high level during the preset period and at a low level during the remaining periods, improving the accuracy of flow calculation.
Smart Images

Figure CN119901341A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of flow detection, and in particular to a signal processing method, device, equipment and medium for a fluid vibration flow meter. Background Art
[0002] With the development of science and technology, various flow meters have emerged. Among them, fluid vibration flow meters have attracted people's attention because they are not affected by factors such as fluid composition, density, viscosity, pressure, etc. Fluid vibration flow meters use the fact that when a fluid encounters some kind of obstacle during its flow, a series of self-excited oscillating vortices will be generated downstream of it. The flow value can be calculated by measuring the vibration frequency of the flow vortex.
[0003] In the prior art, when the fluid passes through the generator in the fluid vibration flowmeter for rectification and reaches the piezoelectric flow sensor in the fluid vibration flowmeter, the piezoelectric flow sensor will generate two signals with opposite phases. The two signals with opposite phases are then amplified respectively, and then the two amplified signals are differentially amplified, that is, noise signal processing is performed to obtain the target signal, and then the flow is calculated according to the frequency of the target signal.
[0004] However, since the parameters of the electronic devices in the circuit amplifying the two signals are not exactly the same, the amplification factors of the two signals after amplification may be inconsistent, or a phase shift may occur, so that the noise cannot be completely removed during differential amplification, resulting in noise in the target signal. Summary of the invention
[0005] The embodiments of the present application provide a signal processing method, device, equipment and medium for a fluid vibration flowmeter, which are used to solve the problem that the existing signal processing methods cannot completely remove noise, resulting in noise in the target signal.
[0006] In a first aspect, an embodiment of the present application provides a signal processing method for a fluid vibration flow meter, which is applied to a fluid vibration flow meter, and the method includes:
[0007] For each piezoelectric flow sensor in the fluid vibration flow meter, an amplified first piezoelectric signal and an amplified second piezoelectric signal corresponding to the piezoelectric flow sensor are obtained; the first piezoelectric signal and the second piezoelectric signal are periodic signals with the same period;
[0008] Shifting the phase of the first piezoelectric signal by a preset angle to obtain a third piezoelectric signal;
[0009] For each rising edge signal in the second piezoelectric signal, determine a first rising time corresponding to the rising edge signal, and a first falling time corresponding to a first falling edge signal after the rising edge signal in the second piezoelectric signal;
[0010] If the level corresponding to the first rising moment in the third piezoelectric signal is a preset level, a period from the first rising moment to the first falling moment is taken as a first target period;
[0011] According to each first target time period, a target piezoelectric signal corresponding to the piezoelectric flow sensor is generated, the level corresponding to each first target time period in the target piezoelectric signal is a high level, and the level corresponding to all time periods outside the first target time period in the target piezoelectric signal is a low level.
[0012] In a specific implementation, if the preset angle is a positive number, the preset level is a high level.
[0013] In a specific implementation, if the preset angle is a negative number, the preset level is a low level.
[0014] In a specific implementation, the preset angle is ninety degrees, or negative ninety degrees.
[0015] In a specific embodiment, the fluid vibration flow meter includes a first piezoelectric flow sensor and a second piezoelectric flow sensor, the first piezoelectric flow sensor and the second piezoelectric flow sensor are symmetrically placed, and the method further includes:
[0016] Shifting the phase of the target piezoelectric signal corresponding to the first piezoelectric flow sensor by a preset angle to obtain a fourth piezoelectric signal;
[0017] A target anti-vibration piezoelectric signal is generated according to the fourth piezoelectric signal and a target piezoelectric signal corresponding to the second piezoelectric flow sensor.
[0018] In a specific implementation, generating a target anti-vibration piezoelectric signal according to the fourth piezoelectric signal and a target piezoelectric signal corresponding to the second piezoelectric flow sensor includes:
[0019] For each rising edge signal in the target piezoelectric signal corresponding to the second piezoelectric flow sensor, determine a second rising time corresponding to the rising edge signal, and a second falling time corresponding to the first falling edge signal after the rising edge signal in the target piezoelectric signal corresponding to the second piezoelectric flow sensor;
[0020] If the level corresponding to the rising moment in the fourth piezoelectric signal is a preset level, the period from the second rising moment to the second falling moment is taken as the second target period;
[0021] According to each second target time period, the target anti-vibration piezoelectric signal is generated, the level corresponding to each second target time period in the target anti-vibration piezoelectric signal is a high level, and the level corresponding to all time periods outside the second target time period in the target anti-vibration piezoelectric signal is a low level.
[0022] In a second aspect, an embodiment of the present application provides a signal processing device for a fluid vibration flow meter, comprising:
[0023] An acquisition module, for acquiring, for each piezoelectric flow sensor in the fluid vibration flow meter, an amplified first piezoelectric signal and an amplified second piezoelectric signal corresponding to the piezoelectric flow sensor; the first piezoelectric signal and the second piezoelectric signal are periodic signals with the same period;
[0024] Processing modules for:
[0025] Shifting the phase of the first piezoelectric signal by a preset angle to obtain a third piezoelectric signal;
[0026] For each rising edge signal in the second piezoelectric signal, determine a first rising time corresponding to the rising edge signal, and a first falling time corresponding to a first falling edge signal after the rising edge signal in the second piezoelectric signal;
[0027] If the level corresponding to the first rising moment in the third piezoelectric signal is a preset level, a period from the first rising moment to the first falling moment is taken as a first target period;
[0028] According to each first target time period, a target piezoelectric signal corresponding to the piezoelectric flow sensor is generated, the level corresponding to each first target time period in the target piezoelectric signal is a high level, and the level corresponding to all time periods outside the first target time period in the target piezoelectric signal is a low level.
[0029] In a third aspect, an embodiment of the present application provides a fluid vibration flow meter, comprising:
[0030] Processor, memory, communication interface, piezoelectric flow sensor;
[0031] The memory is used to store executable instructions of the processor;
[0032] Wherein, the processor is configured to execute the signal processing method of the fluid vibration flow meter described in any one of the first aspects by executing the executable instructions.
[0033] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the signal processing method of the fluid vibration flow meter described in any one of the first aspects is implemented.
[0034] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the signal processing method of the fluid vibration flow meter described in any one of the first aspects.
[0035] The signal processing method, device, equipment and medium of the fluid vibration flowmeter provided in the embodiment of the present application obtains a third piezoelectric signal by shifting the phase of the first piezoelectric signal by a preset angle after obtaining the first piezoelectric signal and the second piezoelectric signal. Then determine the first rising moment and the first falling moment in the second piezoelectric signal; if the level corresponding to the first rising moment in the third piezoelectric signal is the preset level, the time period from the first rising moment to the first falling moment is used as the first target time period; then generate a target piezoelectric signal, the level corresponding to each first target time period in the target piezoelectric signal is a high level, and the level corresponding to all time periods outside the first target time period in the target piezoelectric signal is a low level. This scheme is through when there is noise in the amplified piezoelectric signal, even if the amplification factors of the two amplified signals are inconsistent, or phase shift occurs, the level corresponding to the first rising moment in the third piezoelectric signal is still the preset level, so that the target piezoelectric signal is a high level in the time period from the first rising moment to the first falling moment, and the remaining time periods are low levels, and will not contain noise. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0037] Figure 1 A schematic diagram of a flow chart for calculating flow rate in the prior art provided by this application;
[0038] Figure 2a A schematic flow chart of a first embodiment of a signal processing method for a fluid vibration flowmeter provided in the present application;
[0039] Figure 2b A schematic diagram of a process for determining a target piezoelectric signal provided in this application;
[0040] Figure 3 A schematic diagram of an amplified piezoelectric signal corresponding to noise not affected by the amplifier circuit provided in the present application;
[0041] Figure 4 A schematic diagram of an amplified piezoelectric signal corresponding to a pure fluid that is not affected by the amplifier circuit provided in the present application;
[0042] Figure 5 A schematic diagram of an amplified piezoelectric signal corresponding to the combined effect of noise and fluid without the influence of the amplifier circuit provided by the present application;
[0043] Figure 6 A schematic diagram of an amplified piezoelectric signal corresponding to the combined effect of noise and fluid produced by the amplifier circuit provided in the present application;
[0044] Figure 7 A schematic diagram of a first piezoelectric signal, a second piezoelectric signal and a third piezoelectric signal provided in the present application;
[0045] Figure 8 Schematic diagram of the second piezoelectric signal, the third piezoelectric signal, and the target piezoelectric signal provided in this application Figure 1 ;
[0046] Fig. 9 Schematic diagram 2 of the second piezoelectric signal, the third piezoelectric signal, and the target piezoelectric signal provided in the present application;
[0047] Fig.10 A cross-sectional schematic diagram of a fluid vibration flow meter provided in the present application;
[0048] Fig.11 A schematic diagram of the force of the piezoelectric flow sensor under the action of the fluid provided in this application;
[0049] Fig.12 A schematic diagram of the force of the piezoelectric flow sensor provided in this application under only external vibration;
[0050] Fig.13 A schematic flow chart of a second embodiment of a signal processing method for a fluid vibration flowmeter provided in the present application;
[0051] Fig.14 Provide piezoelectric signal schematic for this application Figure 1 ;
[0052] Fig.15 Provide piezoelectric signal schematic diagram 2 for this application;
[0053] Fig.16 A schematic diagram of the structure of the signal processing device of the fluid vibration flowmeter provided in the present application;
[0054] Fig.17 A schematic diagram of the structure of a fluid vibration flow meter provided in this application. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments made by ordinary technicians in this field under the enlightenment of the embodiments belong to the scope of protection of the present application.
[0056] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0057] With the development of science and technology, various flow meters have emerged. Among them, fluid vibration flow meters have attracted people's attention because they are not affected by factors such as fluid composition, density, viscosity, pressure, etc. Fluid vibration flow meters use the fact that when a fluid encounters some kind of obstacle during its flow, a series of self-excited oscillating vortices will be generated downstream of it. The flow value can be calculated by measuring the vibration frequency of the flow vortex.
[0058] For example, Figure 1 The flow chart of calculating flow rate in the prior art provided by this application is as follows: Figure 1 As shown, in the prior art, when the fluid passes through the generator in the fluid vibration flowmeter for rectification and reaches the piezoelectric flow sensor in the fluid vibration flowmeter, the piezoelectric flow sensor will generate a first piezoelectric signal and a second piezoelectric signal with opposite phases, that is, signals with a phase difference of 180°.
[0059] Furthermore, in order to highlight the signal characteristics, the first piezoelectric signal and the second piezoelectric signal are amplified respectively, and then the two amplified signals are differentially amplified, that is, the two amplified signals are subtracted to remove the noise signal; then filtering and rectification are performed to obtain the target signal, and then the flow is calculated according to the frequency of the target signal.
[0060] However, since the parameters of the electronic devices in the circuit amplifying the two signals are not exactly the same, the amplification factors of the two signals after amplification may be inconsistent, or a phase shift may occur, so that the noise cannot be completely removed during differential amplification, resulting in noise in the target signal.
[0061] In view of the problems existing in the prior art, the inventors found in the process of studying the signal processing method of the fluid vibration flowmeter that the use of differential amplification to remove noise requires that the two amplified signals need to be periodically synchronized and have the same amplification factor, which is a high requirement. In order to avoid this situation, the signal processing method in this scheme can be adopted.
[0062] After obtaining the amplified first piezoelectric signal and the amplified second piezoelectric signal, the phase of the first piezoelectric signal is shifted by a preset angle to obtain a third piezoelectric signal. Then the first rising moment and the first falling moment in the second piezoelectric signal are determined; if the level corresponding to the first rising moment in the third piezoelectric signal is a preset level, the time period from the first rising moment to the first falling moment is used as the first target time period, and then the target piezoelectric signal is generated. The level corresponding to each first target time period in the target piezoelectric signal is a high level, and the levels corresponding to the remaining time periods are low levels, so that noise can still be removed when the amplification factors of the two amplified signals are inconsistent or phase shift occurs. Based on the above-mentioned inventive concept, a signal processing scheme for the fluid vibration flowmeter in this application is designed.
[0063] The following is an example of an application scenario of the signal processing method of the fluid vibration flowmeter provided in the present application.
[0064] Exemplarily, in this scenario, a fluid vibration flow meter is used to measure the gas flow. When a user uses gas, the fluid vibration flow meter installed in the gas pipeline can be used to measure the gas flow.
[0065] When the gas is rectified by the generator in the fluid vibration flowmeter and reaches the piezoelectric flow sensor in the fluid vibration flowmeter, the piezoelectric flow sensor will generate a first piezoelectric signal and a second piezoelectric signal with opposite phases.
[0066] The two signals are then amplified to obtain a first piezoelectric signal and a second piezoelectric signal.
[0067] Shifting the phase of the first piezoelectric signal by a preset angle to obtain a third piezoelectric signal;
[0068] For each rising edge signal in the second piezoelectric signal, determine a first rising time corresponding to the rising edge signal, and a first falling time corresponding to the first falling edge signal after the rising edge signal in the second piezoelectric signal;
[0069] If the level corresponding to the first rising moment in the third piezoelectric signal is a preset level, the time period from the first rising moment to the first falling moment is taken as the first target time period, and then a target piezoelectric signal is generated, so that the level corresponding to each first target time period in the target piezoelectric signal is a high level, and the levels corresponding to the remaining time periods are low levels.
[0070] When the amplification factors of the two signals after amplification are inconsistent or a phase shift occurs, the level corresponding to the first rising moment in the third piezoelectric signal remains the preset level, so that the target piezoelectric signal is at a high level in the first target time period and at a low level in the remaining time periods, and does not contain noise.
[0071] The frequency of the target piezoelectric signal can then be used to calculate the gas flow rate; the greater the frequency of the target piezoelectric signal, the greater the calculated gas flow rate.
[0072] It should be noted that the above scenario is only an example of an application scenario provided by an embodiment of the present application. The embodiment of the present application does not limit the actual form of the various devices included in the scenario. In the specific application of the solution, it can be set according to actual needs.
[0073] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0074] Figure 2a This is a flow chart of the first embodiment of the signal processing method for a fluid vibration flowmeter provided in the present application. After the fluid vibration flowmeter obtains the first piezoelectric signal and the second piezoelectric signal, the first piezoelectric signal is subjected to phase shift processing, and the target piezoelectric signal is generated in combination with the rising moment and falling moment of the second piezoelectric signal. The method in this embodiment can be implemented by software, hardware, or a combination of software and hardware. Figure 2a As shown, the signal processing method of the fluid vibration flow meter specifically includes the following steps:
[0075] S201: For each piezoelectric flow sensor in the fluid vibration flow meter, obtain an amplified first piezoelectric signal and an amplified second piezoelectric signal corresponding to the piezoelectric flow sensor.
[0076] In this step, when the fluid vibration flow meter measures the flow, for each piezoelectric flow sensor in the fluid vibration flow meter, the first piezoelectric signal and the second piezoelectric signal with opposite phases generated by the piezoelectric flow sensor are first obtained, and then amplified to obtain the first piezoelectric signal and the second piezoelectric signal.
[0077] The first piezoelectric signal and the second piezoelectric signal are periodic signals with the same period.
[0078] It should be noted that after the first piezoelectric signal and the second piezoelectric signal are amplified, they may be further amplified twice and filtered and rectified to obtain the first piezoelectric signal and the second piezoelectric signal.
[0079] For example, Figure 3 This is a schematic diagram of the amplified piezoelectric signal corresponding to the noise not affected by the amplifier circuit provided in this application. Figure 3 As shown, when the amplification circuit has no influence and only noise acts on the piezoelectric flow sensor, the two amplified piezoelectric signals are signal A and signal B, and signal A and signal B have the same phase and amplitude.
[0080] For example, Figure 4 This is a schematic diagram of the amplified piezoelectric signal corresponding to a pure fluid that is not affected by the amplifier circuit provided in this application. Figure 4 As shown in the figure, when there is no influence of the amplification circuit and only pure fluid, such as gas, water, oil, etc., acts on the piezoelectric flow sensor, the two amplified piezoelectric signals are signal A and signal B, respectively. Signal A and signal B have opposite phases and the same amplitude. And compared with the amplified piezoelectric signal corresponding to the noise without the influence of the amplification circuit, the amplified piezoelectric signal corresponding to the pure fluid without the influence of the amplification circuit has a longer period.
[0081] For example, Figure 5 This is a schematic diagram of the amplified piezoelectric signal corresponding to the combined effect of the noise and fluid without any influence from the amplifier circuit provided by the present application. Figure 5 As shown in the figure, when the amplifier circuit is not affected and the noise and fluid act on the piezoelectric flow sensor together, it is equivalent to Figure 3 and Figure 4 The signals in are superimposed to obtain Figure 5 The two amplified piezoelectric signals are signal A and signal B, and the phases of signal A and signal B are opposite. Figure 5 The signals in the rising edge signal and the falling edge signal will fluctuate, but the level can be kept unchanged.
[0082] For example, in Figure 5 On the basis of Figure 6 This is a schematic diagram of the amplified piezoelectric signal corresponding to the combined effect of the noise and fluid produced by the amplifier circuit provided in this application. Figure 6 As shown in the figure, under the influence of the amplifier circuit, the amplification factors of the two amplified signals will be inconsistent, or the phase will shift, such as Figure 6 As shown, the two amplified piezoelectric signals are signal A and signal B. Figure 5 The signal in Figure 6 The signal periods in are not synchronized, and the amplitudes of signal A and signal B are also different.
[0083] S202: Shift the phase of the first piezoelectric signal by a preset angle to obtain a third piezoelectric signal.
[0084] In this step, after the fluid vibration flowmeter obtains the first piezoelectric signal and the second piezoelectric signal, in order to remove noise, it is necessary to shift the phase of the first piezoelectric signal by a preset angle to obtain a third piezoelectric signal.
[0085] It should be noted that the preset angle can be 90°, -90°, 85°, -85°, 80°, -80°, etc., and it is necessary to ensure that the phase difference between the third piezoelectric signal and the second piezoelectric signal is less than 180°. The embodiment of the present application does not limit the preset angle and can be set according to actual conditions.
[0086] For example, in Figure 6 On the basis of Figure 7 A schematic diagram of the first piezoelectric signal, the second piezoelectric signal and the third piezoelectric signal provided in this application, such as Figure 7 As shown, signal A is the first piezoelectric signal, signal B is the second piezoelectric signal, and signal A1 is the third piezoelectric signal.
[0087] The phase of the first piezoelectric signal A is shifted by 90°, that is, delayed by a quarter of a period, to obtain a third piezoelectric signal A1.
[0088] S203: For each rising edge signal in the second piezoelectric signal, determine a first rising time corresponding to the rising edge signal, and a first falling time corresponding to the first falling edge signal after the rising edge signal in the second piezoelectric signal.
[0089] In this step, after the fluid vibration flowmeter obtains the third piezoelectric signal, it is also necessary to determine the first rising time corresponding to the rising edge signal and the first falling time corresponding to the first falling edge signal after the rising edge signal in the second piezoelectric signal for each rising edge signal in the second piezoelectric signal.
[0090] S204: If the level corresponding to the first rising moment in the third piezoelectric signal is a preset level, a period from the first rising moment to the first falling moment is used as a first target period.
[0091] In this step, after obtaining the first rising moment and the first falling moment, the fluid vibration flow meter determines whether the level corresponding to the first rising moment in the third piezoelectric signal is a preset level.
[0092] If the level corresponding to the first rising moment in the third piezoelectric signal is a preset level, the period from the first rising moment to the first falling moment is taken as the first target period.
[0093] It should be noted that, if the preset angle is a positive number, the preset level is a high level; if the preset angle is a negative number, the preset level is a low level.
[0094] S205: Generate a target piezoelectric signal corresponding to the piezoelectric flow sensor according to each first target time period.
[0095] In this step, after obtaining the first target time period, the fluid vibration flow meter generates a target piezoelectric signal corresponding to the piezoelectric flow sensor according to each first target time period.
[0096] The level corresponding to each first target time period in the target piezoelectric signal is a high level, and the level corresponding to all time periods outside the first target time period in the target piezoelectric signal is a low level.
[0097] Subsequently, a target piezoelectric signal may be selected from the target piezoelectric signals corresponding to all piezoelectric flow sensors, and the flow rate may be calculated using its frequency.
[0098] For example, Figure 2b A schematic diagram of a process for determining a target piezoelectric signal provided in this application, such as Figure 2b As shown, the first piezoelectric signal is amplified and phase-shifted by a preset angle to obtain a third piezoelectric signal. The first piezoelectric signal is amplified to obtain a second piezoelectric signal; the third piezoelectric signal and the second piezoelectric signal are subjected to signal discrimination to determine whether the level corresponding to the first rising moment in the third piezoelectric signal is a preset level, and then a target piezoelectric signal is generated according to the discrimination result.
[0099] For example, in Figure 7 On the basis of Figure 8 Schematic diagram of the second piezoelectric signal, the third piezoelectric signal, and the target piezoelectric signal provided in this application Figure 1 ,like Figure 8 As shown, signal A1 is the third piezoelectric signal, signal B is the second piezoelectric signal, signal C is the target piezoelectric signal, and the preset level is a high level.
[0100] The rising edge signal and the falling edge signal in the third piezoelectric signal A1 will fluctuate, but both are high level. The level corresponding to the first rising moment in the third piezoelectric signal A1 is high level, so in the target piezoelectric signal C, the level corresponding to the period from the first rising moment to the first falling moment is high level, and the remaining periods are low level, which can remove the noise influence when the amplification factors of the two amplified signals are inconsistent or phase shift occurs.
[0101] For example, in Figure 3 On the basis of Fig. 9 Schematic diagram 2 of the second piezoelectric signal, the third piezoelectric signal, and the target piezoelectric signal provided in this application, such as Fig. 9 As shown in the figure, when only noise acts on the piezoelectric flow sensor, the generated first piezoelectric signal has the same phase as the second piezoelectric signal. The first piezoelectric signal is phase-shifted by 90° to obtain the third piezoelectric signal A1. Since the level corresponding to the first rising moment in the third piezoelectric signal A1 is a low level, the target piezoelectric signal C is always a low level signal. When the flow is subsequently calculated, the calculated flow is 0, which reduces noise interference.
[0102] In addition, even if there is an amplifier circuit that has an effect, similar to Figure 8 It can be seen that the level corresponding to the first rising moment in the third piezoelectric signal A1 is still a low level, and the target piezoelectric signal C will also maintain a low level signal.
[0103] The signal processing method of the fluid vibration flowmeter provided in this embodiment is to obtain a third piezoelectric signal by shifting the phase of the first piezoelectric signal by a preset angle after obtaining the first piezoelectric signal and the second piezoelectric signal. Then, the first rising moment and the first falling moment in the second piezoelectric signal are determined; if the level corresponding to the first rising moment in the third piezoelectric signal is the preset level, the time period from the first rising moment to the first falling moment is used as the first target time period; then, a target piezoelectric signal is generated, and the level corresponding to each first target time period in the target piezoelectric signal is a high level, and the level corresponding to all time periods outside the first target time period in the target piezoelectric signal is a low level. This scheme is through when there is noise in the amplified piezoelectric signal, even if the amplification factors of the two amplified signals are inconsistent, or phase shift occurs, the level corresponding to the first rising moment in the third piezoelectric signal is still the preset level, the target piezoelectric signal is a high level in the first target time period, and the remaining time periods are low levels, and will not contain noise, and also improves the accuracy of the flow calculated subsequently.
[0104] In the process of using the fluid vibration flowmeter, in addition to the influence of noise, it will also be affected by external vibration, such as the vibration caused by knocking on the pipeline. When the amplification circuit is not affected and only the external vibration acts on the piezoelectric flow sensor, the two amplified piezoelectric signals have opposite phases and the same amplitude.
[0105] Therefore, when external vibration and fluid act together on the piezoelectric flow sensor, or when noise, external vibration and fluid act together on the piezoelectric flow sensor, the rising edge signal and the falling edge signal in the third piezoelectric signal will fluctuate, but both are high level. The level corresponding to the first rising moment in the third piezoelectric signal is a high level, so in the target piezoelectric signal, the level corresponding to the period from the first rising moment to the first falling moment is a high level, and the remaining periods are low levels. When the amplification factors of the two amplified signals are inconsistent or phase shift occurs, noise can be removed and / or the influence of external vibration can be removed.
[0106] However, if only external vibration acts on the piezoelectric flow sensor, since the phases of the two amplified piezoelectric signals are opposite, the target piezoelectric signal obtained will not be a low-level signal, and the flow rate calculated subsequently will be erroneous. Therefore, the signal processing method in the present application can use a fluid vibration flow meter including a symmetrically placed first piezoelectric flow sensor and a second piezoelectric flow sensor to eliminate the influence of vibration.
[0107] For example, Fig.10 This is a cross-sectional schematic diagram of the fluid vibration flowmeter provided in this application. Fig.10 As shown, the black block in the figure represents a piezoelectric flow sensor, and the fluid vibration flow meter includes a first piezoelectric flow sensor and a second piezoelectric flow sensor, and the first piezoelectric flow sensor and the second piezoelectric flow sensor are placed symmetrically.
[0108] For example, Fig.11 A schematic diagram of the force of the piezoelectric flow sensor under the action of the fluid provided in this application, such as Fig.11 As shown, when the fluid flows in the pipeline, after the fluid passes through the generator for rectification, a fluid force F is alternately generated between the first piezoelectric flow sensor and the second piezoelectric flow sensor.
[0109] Therefore, the first piezoelectric signal corresponding to the first piezoelectric flow sensor is opposite in phase to the first piezoelectric signal corresponding to the second piezoelectric flow sensor. Similarly, the phases of the second piezoelectric signals corresponding to the two are also opposite, so the target piezoelectric signals corresponding to the two are opposite.
[0110] For example, Fig.12 The force diagram of the piezoelectric flow sensor under only external vibration provided in this application is as follows: Fig.12 As shown, when only external vibration exists, the vibration force of the pipeline acts on the measuring tube at the same time, and the first piezoelectric flow sensor and the second piezoelectric flow sensor receive the vibration force F at the same time.
[0111] Therefore, the first piezoelectric signal corresponding to the first piezoelectric flow sensor has the same phase as the first piezoelectric signal corresponding to the second piezoelectric flow sensor. Similarly, the phases of the second piezoelectric signals corresponding to the two are also the same, so the target piezoelectric signals corresponding to the two are the same.
[0112] Fig.13 This is a flow chart of the second embodiment of the signal processing method for a fluid vibration flowmeter provided by the present application. Based on the above embodiment, the present embodiment of the present application describes the situation of removing the vibration influence of the fluid vibration flowmeter. Fig.13 As shown, the signal processing method of the fluid vibration flow meter specifically includes the following steps:
[0113] S1301: Shift the phase of the target piezoelectric signal corresponding to the first piezoelectric flow sensor by a preset angle to obtain a fourth piezoelectric signal.
[0114] In this step, after obtaining the target piezoelectric signal corresponding to the first piezoelectric flow sensor and the target piezoelectric signal corresponding to the second piezoelectric flow sensor, the fluid vibration flow meter needs to first shift the phase of the target piezoelectric signal corresponding to the first piezoelectric flow sensor by a preset angle to obtain a fourth piezoelectric signal in order to eliminate the influence of vibration.
[0115] Subsequently, a target anti-vibration piezoelectric signal may be generated according to the fourth piezoelectric signal and the target piezoelectric signal corresponding to the second piezoelectric flow sensor.
[0116] It should be noted that the execution process of this step is similar to step S202 in Example 1, and will not be repeated here.
[0117] S1302: For each rising edge signal in the target piezoelectric signal corresponding to the second piezoelectric flow sensor, determine the second rising time corresponding to the rising edge signal, and the second falling time corresponding to the first falling edge signal after the rising edge signal in the target piezoelectric signal corresponding to the second piezoelectric flow sensor.
[0118] S1303: If the level corresponding to the rising moment in the fourth piezoelectric signal is the preset level, a period from the second rising moment to the second falling moment is used as a second target period.
[0119] S1304: Generate a target anti-vibration piezoelectric signal according to each second target time period.
[0120] The level corresponding to each second target time period in the target anti-vibration piezoelectric signal is a high level, and the level corresponding to all time periods outside the second target time period in the target anti-vibration piezoelectric signal is a low level.
[0121] It should be noted that the execution process of step S1302 to step S1304 is similar to step S203 to step S205 in embodiment 1, and will not be repeated here.
[0122] For example, Fig.14 Provide piezoelectric signal schematic for this application Figure 1 ,like Fig.14 As shown, when there is fluid acting on the piezoelectric flow sensor, the target piezoelectric signal D corresponding to the first piezoelectric flow sensor is opposite in phase to the target piezoelectric signal E corresponding to the second piezoelectric flow sensor; the target piezoelectric signal D corresponding to the first piezoelectric flow sensor moves 90° to obtain a fourth piezoelectric signal D1.
[0123] The level corresponding to the second rising moment in the fourth piezoelectric signal D1 is a high level, so the level corresponding to the second target period in the target anti-vibration piezoelectric signal F is a high level, and the remaining periods are low levels. The target anti-vibration piezoelectric signal F is the same as the target piezoelectric signal E corresponding to the second piezoelectric flow sensor, ensuring that the subsequent calculated flow is correct.
[0124] For example, Fig.15 A second schematic diagram of a piezoelectric signal is provided for this application, such as Fig.15 As shown, when only external vibration acts on the piezoelectric flow sensor, the target piezoelectric signal D corresponding to the first piezoelectric flow sensor is opposite in phase to the target piezoelectric signal E corresponding to the second piezoelectric flow sensor; the target piezoelectric signal D corresponding to the first piezoelectric flow sensor moves 90° to obtain a fourth piezoelectric signal D1.
[0125] The level corresponding to the second rising moment in the fourth piezoelectric signal D1 is a low level, so the target anti-vibration piezoelectric signal F is always at a low level, eliminating the influence of external vibration and ensuring the correctness of the subsequent calculated flow.
[0126] The signal processing method of the fluid vibration flowmeter provided in the present embodiment realizes, through the symmetrically placed first piezoelectric flow sensor and the second piezoelectric flow sensor, that when the fluid acts on the piezoelectric flow sensor, the phases of the target piezoelectric signals corresponding to the first piezoelectric flow sensor and the second piezoelectric flow sensor are opposite, so that the target anti-vibration piezoelectric signal is the same as the target piezoelectric signal corresponding to the second piezoelectric flow sensor, thereby ensuring the accuracy of the target anti-vibration piezoelectric signal; when only external vibration acts on the piezoelectric flow sensor, the phases of the target piezoelectric signals corresponding to the first piezoelectric flow sensor and the second piezoelectric flow sensor are the same, so that the target anti-vibration piezoelectric signal is a low-level signal, eliminating the influence of external vibration, ensuring the accuracy of the target anti-vibration piezoelectric signal, and also improving the accuracy of the flow obtained by subsequent calculation.
[0127] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0128] Fig.16 This is a schematic diagram of the structure of the signal processing device for the fluid vibration flowmeter provided in the present application; the device can be integrated into the fluid vibration flowmeter in the above method embodiment, or can be implemented by the fluid vibration flowmeter in the above method embodiment. Fig.16 As shown, the signal processing device 1600 of the fluid vibration flow meter includes:
[0129] The acquisition module 1601 is used to acquire, for each piezoelectric flow sensor in the fluid vibration flow meter, an amplified first piezoelectric signal and an amplified second piezoelectric signal corresponding to the piezoelectric flow sensor; the first piezoelectric signal and the second piezoelectric signal are periodic signals with the same period;
[0130] The processing module 1602 is used to:
[0131] Shifting the phase of the first piezoelectric signal by a preset angle to obtain a third piezoelectric signal;
[0132] For each rising edge signal in the second piezoelectric signal, determine a first rising time corresponding to the rising edge signal, and a first falling time corresponding to a first falling edge signal after the rising edge signal in the second piezoelectric signal;
[0133] If the level corresponding to the first rising moment in the third piezoelectric signal is a preset level, a period from the first rising moment to the first falling moment is taken as a first target period;
[0134] According to each first target time period, a target piezoelectric signal corresponding to the piezoelectric flow sensor is generated, the level corresponding to each first target time period in the target piezoelectric signal is a high level, and the level corresponding to all time periods outside the first target time period in the target piezoelectric signal is a low level.
[0135] Further, if the preset angle is a positive number, the preset level is a high level.
[0136] Further, if the preset angle is a negative number, the preset level is a low level.
[0137] Furthermore, the preset angle is ninety degrees, or negative ninety degrees.
[0138] Further, the fluid vibration flowmeter includes a first piezoelectric flow sensor and a second piezoelectric flow sensor, the first piezoelectric flow sensor and the second piezoelectric flow sensor are symmetrically placed, and the processing module 1602 is further used for:
[0139] Shifting the phase of the target piezoelectric signal corresponding to the first piezoelectric flow sensor by a preset angle to obtain a fourth piezoelectric signal;
[0140] A target anti-vibration piezoelectric signal is generated according to the fourth piezoelectric signal and a target piezoelectric signal corresponding to the second piezoelectric flow sensor.
[0141] Furthermore, the processing module 1602 is specifically configured to:
[0142] For each rising edge signal in the target piezoelectric signal corresponding to the second piezoelectric flow sensor, determine a second rising time corresponding to the rising edge signal, and a second falling time corresponding to the first falling edge signal after the rising edge signal in the target piezoelectric signal corresponding to the second piezoelectric flow sensor;
[0143] If the level corresponding to the rising moment in the fourth piezoelectric signal is a preset level, the period from the second rising moment to the second falling moment is taken as the second target period;
[0144] According to each second target time period, the target anti-vibration piezoelectric signal is generated, the level corresponding to each second target time period in the target anti-vibration piezoelectric signal is a high level, and the level corresponding to all time periods outside the second target time period in the target anti-vibration piezoelectric signal is a low level.
[0145] The signal processing device of the fluid vibration flow meter provided in this embodiment is used to execute the technical solution of the fluid vibration flow meter in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0146] Fig.17 This is a schematic diagram of the structure of a fluid vibration flowmeter provided in this application. Fig.17 As shown, the fluid vibration flow meter 1700 includes:
[0147] Processor 1701, memory 1702, communication interface 1703, and piezoelectric flow sensor 1704;
[0148] The memory 1702 is used to store executable instructions of the processor 1701;
[0149] The processor 1701 is configured to execute the technical solution of the fluid vibration flow meter in any of the aforementioned method embodiments by executing the executable instructions.
[0150] The number of the piezoelectric flow sensors 1704 is at least two.
[0151] Optionally, the memory 1702 may be independent or integrated with the processor 1701 .
[0152] Optionally, when the memory 1702 is a device independent of the processor 1701, the fluid vibration flow meter 1700 may further include:
[0153] The bus 1705 , the piezoelectric flow sensor 1704 , the memory 1702 and the communication interface 1703 are connected to the processor 1701 via the bus 1705 and communicate with each other. The communication interface 1703 is used to communicate with other devices.
[0154] Optionally, the communication interface 1703 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.
[0155] The bus 1705 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0156] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0157] The fluid vibration flow meter is used to execute the technical solution of the fluid vibration flow meter in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.
[0158] An embodiment of the present application also provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the technical solution provided by any of the aforementioned method embodiments is implemented.
[0159] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement the technical solution provided by any of the aforementioned method embodiments when executed by a processor.
[0160] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0161] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A signal processing method for a fluid vibration flowmeter, characterized in that: Applied to a fluid vibration flow meter, the method comprises: For each piezoelectric flow sensor in the fluid vibration flow meter, an amplified first piezoelectric signal and an amplified second piezoelectric signal corresponding to the piezoelectric flow sensor are obtained; the first piezoelectric signal and the second piezoelectric signal are periodic signals with the same period; Shifting the phase of the first piezoelectric signal by a preset angle to obtain a third piezoelectric signal; For each rising edge signal in the second piezoelectric signal, determine a first rising time corresponding to the rising edge signal, and a first falling time corresponding to a first falling edge signal after the rising edge signal in the second piezoelectric signal; If the level corresponding to the first rising moment in the third piezoelectric signal is a preset level, a period from the first rising moment to the first falling moment is taken as a first target period; According to each first target time period, a target piezoelectric signal corresponding to the piezoelectric flow sensor is generated, the level corresponding to each first target time period in the target piezoelectric signal is a high level, and the level corresponding to all time periods outside the first target time period in the target piezoelectric signal is a low level.
2. The method according to claim 1, characterized in that If the preset angle is a positive number, the preset level is a high level.
3. The method according to claim 1, characterized in that If the preset angle is a negative number, the preset level is a low level.
4. The method according to claim 1, characterized in that: The preset angle is ninety degrees, or negative ninety degrees.
5. The method according to claim 1, characterized in that The fluid vibration flow meter comprises a first piezoelectric flow sensor and a second piezoelectric flow sensor, wherein the first piezoelectric flow sensor and the second piezoelectric flow sensor are symmetrically placed, and the method further comprises: Shifting the phase of the target piezoelectric signal corresponding to the first piezoelectric flow sensor by a preset angle to obtain a fourth piezoelectric signal; A target anti-vibration piezoelectric signal is generated according to the fourth piezoelectric signal and a target piezoelectric signal corresponding to the second piezoelectric flow sensor.
6. The method according to claim 5, characterized in that The step of generating a target anti-vibration piezoelectric signal according to the fourth piezoelectric signal and a target piezoelectric signal corresponding to the second piezoelectric flow sensor includes: For each rising edge signal in the target piezoelectric signal corresponding to the second piezoelectric flow sensor, determine a second rising time corresponding to the rising edge signal, and a second falling time corresponding to the first falling edge signal after the rising edge signal in the target piezoelectric signal corresponding to the second piezoelectric flow sensor; If the level corresponding to the rising moment in the fourth piezoelectric signal is a preset level, the period from the second rising moment to the second falling moment is taken as the second target period; According to each second target time period, the target anti-vibration piezoelectric signal is generated, the level corresponding to each second target time period in the target anti-vibration piezoelectric signal is a high level, and the level corresponding to all time periods outside the second target time period in the target anti-vibration piezoelectric signal is a low level.
7. A signal processing device for a fluid vibration flowmeter, characterized in that: include: An acquisition module, for acquiring, for each piezoelectric flow sensor in the fluid vibration flow meter, an amplified first piezoelectric signal and an amplified second piezoelectric signal corresponding to the piezoelectric flow sensor; the first piezoelectric signal and the second piezoelectric signal are periodic signals with the same period; Processing modules for: Shifting the phase of the first piezoelectric signal by a preset angle to obtain a third piezoelectric signal; For each rising edge signal in the second piezoelectric signal, determine a first rising time corresponding to the rising edge signal, and a first falling time corresponding to a first falling edge signal after the rising edge signal in the second piezoelectric signal; If the level corresponding to the first rising moment in the third piezoelectric signal is a preset level, a period from the first rising moment to the first falling moment is taken as a first target period; According to each first target time period, a target piezoelectric signal corresponding to the piezoelectric flow sensor is generated, the level corresponding to each first target time period in the target piezoelectric signal is a high level, and the level corresponding to all time periods outside the first target time period in the target piezoelectric signal is a low level.
8. A fluid vibration flow meter, characterized in that: include: Processor, memory, communication interface, piezoelectric flow sensor; The memory is used to store executable instructions of the processor; Wherein, the processor is configured to execute the signal processing method of the fluid vibration flow meter according to any one of claims 1 to 6 by executing the executable instructions.
9. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the signal processing method of the fluid vibration flow meter according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, is used to implement the signal processing method of the fluid vibration flow meter according to any one of claims 1 to 6.