Method, device and equipment for diagnosing and processing flow signal interference for vortex flowmeter
By processing the output signals of the two piezoelectric sensors of the vortex flowmeter, the deviation of the flow frequency is calculated to judge the degree of interference, and alarm information is generated, the problems of mismetering and no alarm in the prior art are solved, and the accuracy and reliability of measurement are improved.
Patent Information
- Application Number
- CN202210851225.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-20
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2042-07-20
AI Technical Summary
When existing vortex flowmeters are strong mechanical vibration or fluctuating in the pipeline, they cannot identify whether the pulse signal is disturbed, resulting in mismetering and no alarm information.
By collecting the output signals of two piezoelectric sensors at the same time, amplification, differential amplification and shaping filtering are performed, the absolute and relative deviations of the main flow frequency and the auxiliary flow frequency are calculated, the degree of interference is judged, and alarm information is generated.
Effectively identify and process flow signal interference of vortex flowmeters, reduce mismetering, provide relevant alarm information, and improve the accuracy and reliability of measurement.
Smart Images

Figure CN115183832B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of flow meter flow signal processing, and in particular to a flow signal interference diagnosis and processing method, device, electronic equipment and storage medium for a vortex flow meter. Background Art
[0002] Vortex flowmeters mainly include vortex flowmeters and vortex flowmeters, which are mainly used for the measurement of natural gas, steam, liquid and other media in oil and gas fields. Most of these two products use piezoelectric sensors and their signal amplification processing modules to detect the frequency of fluid vibration, which is proportional to the flow rate under the measurement conditions of the flowmeter. Because piezoelectric sensors are easily affected by pipeline vibration and medium pressure pulsation in the pipeline, this type of product has the weakness of poor resistance to mechanical vibration and pressure fluctuation. To overcome this shortcoming, most products use two piezoelectric sensors installed on the meter body or a differential sensor (with two piezoelectric sensitive elements installed inside), and suppress the common-mode interference signal caused by pipeline vibration and medium pressure pulsation by differentially amplifying the output signals of the two sensors, thereby improving the anti-interference performance of this type of flowmeter. However, if only this technology is used, when there is strong mechanical vibration or medium pressure fluctuation in the pipeline, the flowmeter will be unable to identify whether the received pulse signal is a normal flow signal or a severely interfered interference signal, resulting in mismeasurement, thereby resulting in a large measurement error. Some products use a method of comparing the phases of two pulse signals obtained by amplifying the signals output by two sensors respectively to determine the degree of interference of the flow signal. Although this method has a good interference identification effect, it only stops measuring when there is strong interference, while measuring normally in other states, and does not provide relevant alarm information, which may cause users to misjudge the state of the flow meter and affect normal use. Summary of the invention
[0003] In view of the above problems, an embodiment of the present invention provides a flow signal interference diagnosis and processing method, device and electronic equipment for a vortex flowmeter, which solves the technical problem that when there is strong interference in the existing vortex flowmeter, the flow signal abnormality cannot be identified, resulting in mismeasurement and no relevant alarm information is provided.
[0004] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0005] In a first aspect, the present invention provides a method for diagnosing and processing flow signal interference for a vortex flowmeter, the method comprising:
[0006] At the same time, the output signals of the two piezoelectric sensors located in the vortex flowmeter are collected to obtain a first original signal S1 and a second original signal S2 respectively;
[0007] Amplify the first original signal S1 to obtain a first amplified signal S3;
[0008] Amplifying the second original signal S2 to obtain a second amplified signal S4;
[0009] The first amplified signal S3 and the second amplified signal S4 are differentially amplified and shaped and filtered to obtain a main flow frequency F1;
[0010] Select the first original signal S1 or the second original signal S2 to amplify, shape and filter, and obtain the auxiliary flow frequency F2;
[0011] According to the main flow frequency F1 and the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation between the two are calculated;
[0012] The interference degree of the main flow frequency F1 is judged according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation, and the calculation basis of the flow Q is determined according to the interference degree of the main flow frequency F1;
[0013] Generate interference alarm information according to the interference degree.
[0014] In one embodiment, after obtaining the first amplified signal S3 and the second amplified signal S4, the update time of the main flow frequency F1 and the auxiliary flow frequency F2 is configured, and the number of pulses counted in each update time interval is at least 50.
[0015] In one embodiment, judging the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation includes:
[0016] When the main flow frequency F1 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≤ the first percentage threshold B,
[0017] Or when the second frequency threshold C≤main flow frequency F1<first frequency threshold A, and the absolute value of the absolute deviation Δ≤third frequency threshold D, the interference degree of the main flow frequency F1 is determined to be no interference, and the flow Q is calculated based on the main flow frequency F1.
[0018] In one embodiment, judging the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation further includes:
[0019] When the main flow frequency F1 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≤ the second percentage threshold E,
[0020] Or when the second frequency threshold C≤main flow frequency F1<first frequency threshold A, and the absolute value of the absolute deviation Δ≤fourth frequency threshold F, the interference degree of the main flow frequency F1 is determined to be weak interference, and the flow Q is calculated based on the main flow frequency F1.
[0021] In one embodiment, judging the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation further includes:
[0022] When the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the auxiliary flow frequency F2 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≥ the third percentage threshold G,
[0023] Or the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and when the auxiliary flow frequency F2> the main flow frequency F1, the second frequency threshold C≤auxiliary flow frequency F2<the first frequency threshold A, and the absolute value of the absolute deviation Δ≥half of the value of the auxiliary flow frequency F2, it is determined that the degree of interference with the main flow frequency F1 is strong interference, and the flow Q is counted as zero.
[0024] In one embodiment, judging the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation further includes:
[0025] When the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the auxiliary flow frequency F2 ≥ the first frequency threshold A, the second percentage threshold E< the absolute value of the relative deviation δ< the third percentage threshold G,
[0026] Or when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the second frequency threshold C≤ the auxiliary flow frequency F2< the first frequency threshold A, and the absolute value of the absolute deviation Δ< half of the auxiliary flow frequency F2 value,
[0027] Or when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2< the main flow frequency F1, the main flow frequency> the first frequency threshold A,
[0028] Or when the absolute value of the relative deviation δ>the second percentage threshold E, the absolute value of the absolute deviation Δ>the fourth frequency threshold F, and the auxiliary flow frequency F2<the main flow frequency F1, the second frequency threshold C≤the main flow frequency F1<the first frequency threshold A, and the absolute value of the absolute deviation Δ≥half of the value of the auxiliary flow frequency F2, the interference degree of the main flow frequency F1 is determined to be general interference, and the flow Q is calculated based on the main flow frequency F1 and recorded separately.
[0029] In one embodiment, judging the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation further includes:
[0030] When the main flow frequency F1 < the second frequency threshold C, or the auxiliary flow frequency F2 < the second frequency threshold C, the flow Q is counted as zero.
[0031] In one embodiment, generating interference alarm information according to the interference degree includes:
[0032] generating a weak interference flag according to the weak interference;
[0033] generating a general interference flag based on the general interference;
[0034] A strong interference flag is generated based on the strong interference.
[0035] In a second aspect, the present invention provides a flow signal interference diagnosis and processing device for a vortex flowmeter, the device comprising:
[0036] A first piezoelectric sensor is installed to collect a first original signal S1 output by the vortex flowmeter;
[0037] A second piezoelectric sensor is installed to collect the second original signal S2 output by the vortex flowmeter;
[0038] A first amplifier, used to amplify the first original signal S1 to obtain a first amplified signal S3;
[0039] A second amplifier, used to amplify the second original signal S2 to obtain a second amplified signal S4;
[0040] A differential amplifier, used for differentially amplifying the first amplified signal S3 and the second amplified signal S4;
[0041] A first shaping filter; used for shaping and filtering the output signal of the differential amplifier to obtain a main flow frequency F1;
[0042] A third amplifier, used for selecting the first original signal S1 or the second original signal S2 for amplification;
[0043] A first shaping filter; used for shaping and filtering the output signal of the third amplifier to obtain an auxiliary flow frequency F2;
[0044] The microprocessor is used to calculate the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation between the main flow frequency F1 and the auxiliary flow frequency F2 according to the main flow frequency F1 and the auxiliary flow frequency F2; judge the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation, and determine the calculation basis of the flow Q according to the interference degree of the main flow frequency F1; generate interference alarm information according to the interference degree.
[0045] In one embodiment, the microprocessor is further configured to:
[0046] After obtaining the first amplified signal S3 and the second amplified signal S4, the update time of the main flow frequency F1 and the auxiliary flow frequency F2 is configured, and the number of pulses counted in each update time interval is at least 50.
[0047] In one embodiment, the microprocessor is further configured to:
[0048] When the main flow frequency F1 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≤ the first percentage threshold B,
[0049] Or when the second frequency threshold C≤main flow frequency F1<first frequency threshold A, and the absolute value of the absolute deviation Δ≤third frequency threshold D, the interference degree of the main flow frequency F1 is determined to be no interference, and the flow Q is calculated based on the main flow frequency F1.
[0050] In one embodiment, the microprocessor is further configured to:
[0051] When the main flow frequency F1 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≤ the second percentage threshold E,
[0052] Or when the second frequency threshold C≤main flow frequency F1<first frequency threshold A, and the absolute value of the absolute deviation Δ≤fourth frequency threshold F, the interference degree of the main flow frequency F1 is determined to be weak interference, and the flow Q is calculated based on the main flow frequency F1.
[0053] In one embodiment, the microprocessor is further configured to:
[0054] When the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the auxiliary flow frequency F2 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≥ the third percentage threshold G,
[0055] Or when the absolute value of the relative deviation δ>the second percentage threshold E, the absolute value of the absolute deviation Δ>the fourth frequency threshold F, and the auxiliary flow frequency F2>the main flow frequency F1, the second frequency threshold C≤auxiliary flow frequency F2<the first frequency threshold A, and the absolute value of the absolute deviation Δ≥half of the value of the auxiliary flow frequency F2, the interference degree of the main flow frequency F1 is determined to be strong interference, and the flow Q is counted as zero.
[0056] In one embodiment, the microprocessor is further configured to:
[0057] When the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the auxiliary flow frequency F2 ≥ the first frequency threshold A, the second percentage threshold E< the absolute value of the relative deviation δ< the third percentage threshold G,
[0058] Or when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the second frequency threshold C≤ the auxiliary flow frequency F2< the first frequency threshold A, and the absolute value of the absolute deviation Δ< half of the auxiliary flow frequency F2 value,
[0059] Or when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2< the main flow frequency F1, the main flow frequency> the first frequency threshold A,
[0060] Or when the absolute value of the relative deviation δ>the second percentage threshold E, the absolute value of the absolute deviation Δ>the fourth frequency threshold F, and the auxiliary flow frequency F2<the main flow frequency F1, the second frequency threshold C≤the main flow frequency F1<the first frequency threshold A, and the absolute value of the absolute deviation Δ≥half of the value of the auxiliary flow frequency F2, the interference degree of the main flow frequency F1 is determined to be general interference, and the flow Q is calculated based on the main flow frequency F1 and recorded separately.
[0061] In one embodiment, the microprocessor is further configured to: when the main flow frequency F1 < the second frequency threshold C, or the auxiliary flow frequency F2 < the second frequency threshold C, the flow Q is counted as zero.
[0062] In one embodiment, the microprocessor is further configured to:
[0063] generating a weak interference flag according to the weak interference;
[0064] generating a general interference flag based on the general interference;
[0065] A strong interference flag is generated based on the strong interference.
[0066] In a third aspect, the present invention provides an electronic device, comprising:
[0067] processor, memory, and an interface for communicating with a gateway;
[0068] The memory is used to store programs and data, and the processor calls the program stored in the memory to execute a flow signal interference diagnosis and processing method for a vortex flowmeter provided in any one of the first aspects.
[0069] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a program, and when the program is executed by a processor, the program is used to execute a flow signal interference diagnosis and processing method for a vortex flowmeter provided in any one of the first aspects.
[0070] From the above description, it can be seen that the embodiments of the present invention provide a flow signal interference diagnosis and processing method, device, electronic device and storage medium for a vortex flowmeter. The present invention adopts a main and auxiliary flow signal frequency design, wherein the main flow signal frequency is the differential amplification output of two piezoelectric sensors, and the auxiliary flow signal is directly amplified and output by one of the piezoelectric sensors. According to different flow signal frequency bands, the absolute value δ of the relative deviation between the main flow frequency F1 and the auxiliary flow frequency F2 and the absolute value Δ of the absolute deviation are used to judge the interference of mechanical vibration and pressure fluctuation of the vortex flowmeter during use, and provide relevant interference alarm information, as well as the judgment process and processing method of interference of different intensities. Allow users to understand the operating status of the flowmeter in a timely manner and take relevant measures. Through the above measures, it is possible to solve the problem of mismeasurement during strong interference, effectively improve the accuracy and reliability of measurement, and further expand the application scenarios of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 The figure is a flowchart of a method for diagnosing and processing flow signal interference for a vortex flowmeter provided by an embodiment of the present invention;
[0072] Figure 2 The figure is a flow chart of a method for diagnosing and processing flow signal interference for a vortex flowmeter provided by an embodiment of the present invention;
[0073] Figure 3 The figure is a schematic diagram of the structure of a flow signal interference diagnosis and processing device for a vortex flowmeter provided by an embodiment of the present invention;
[0074] Figure 4 FIG. 1 is a schematic structural diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical solution and advantages of the present invention clearer and more understandable, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0076] Based on the shortcomings of the prior art, the embodiment of the present invention provides a specific implementation method of a flow signal interference diagnosis and processing method for a vortex flowmeter, such as Figure 1 As shown, the method specifically includes:
[0077] Step S110: simultaneously collecting output signals of two piezoelectric sensors located in the vortex flowmeter to obtain a first original signal S1 and a second original signal S2 respectively;
[0078] Step S120: amplify the first original signal S1 to obtain a first amplified signal S3;
[0079] Step S130: amplify the second original signal S2 to obtain a second amplified signal S4;
[0080] Step S140: differentially amplify the first amplified signal S3 and the second amplified signal S4 and perform shaping and filtering to obtain a main flow frequency F1;
[0081] Step S150: Select the first original signal S1 or the second original signal S2 to amplify, shape and filter, and obtain the auxiliary flow frequency F2;
[0082] Step S160: Calculate the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation between the main flow frequency F1 and the auxiliary flow frequency F2 according to the two;
[0083] Step S170: judging the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation, and determining the calculation basis of the flow Q according to the interference degree of the main flow frequency F1;
[0084] Step S180: Generate interference alarm information according to the interference degree.
[0085] In this embodiment, a main and auxiliary flow signal frequency design is adopted, wherein the main flow signal frequency is the differentially amplified output of two piezoelectric sensors, and the auxiliary flow signal is the directly amplified output of one of the piezoelectric sensors. According to different flow signal frequency bands, the absolute value δ of the relative deviation between the main flow frequency F1 and the auxiliary flow frequency F2 and the absolute value Δ of the absolute deviation are used to judge the interference of mechanical vibration and pressure fluctuation of the vortex flowmeter during use, and provide relevant interference alarm information, as well as the judgment process and processing method of interference of different intensities. Allow users to understand the operating status of the flowmeter in a timely manner and take relevant measures. Through the above measures, it is possible to solve the problem of mismeasurement during strong interference, effectively improve the accuracy and reliability of measurement, and further expand the application scenarios of the product.
[0086] In one embodiment of the present invention, after obtaining the first amplified signal S3 and the second amplified signal S4, it is necessary to configure the update time of the main flow frequency F1 and the auxiliary flow frequency F2, and the number of pulses counted in each update time interval is at least 50. For example, the update time is configured to be 2s, and the number of pulses counted within this 2s time is at least 50, so as to ensure the integrity of the data and improve the accuracy of subsequent data processing.
[0087] It should be noted that the absolute value Δ of the absolute deviation is obtained by the following formula:
[0088] Δ=|F1-F2|, its unit is Hz;
[0089] The absolute value of the relative deviation δ is obtained by the following formula:
[0090] The result is a percentage.
[0091] In one embodiment of the present invention, Figure 2 As shown, step S170 includes determining whether there is no interference with the main flow frequency F1, and the specific determination steps are as follows:
[0092] When the main flow frequency F1 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≤ the first percentage threshold B,
[0093] Or when the second frequency threshold C≤main flow frequency F1<first frequency threshold A, and the absolute value of the absolute deviation Δ≤third frequency threshold D, the interference degree of the main flow frequency F1 is determined to be no interference, and the flow Q is calculated based on the main flow frequency F1.
[0094] This embodiment is to judge the situation of no interference of the main flow frequency F1. Generally, the first frequency threshold A is greater than the second frequency threshold C. For example, the first frequency threshold A can be configured as 50Hz, the first percentage threshold B can be configured as 2%, the second frequency threshold C can be configured as 10Hz, and the third frequency threshold D can be configured as 2Hz. And judging from the two angles of absolute deviation and relative deviation respectively, the result is more reliable; the judgment process only sets the comparison of four threshold parameters, and the judgment speed is faster.
[0095] Based on the above embodiments, in this embodiment, if Figure 2 As shown, step S170 also includes determining the weak interference situation of the main flow frequency F1, and the specific determination steps are as follows:
[0096] When the main flow frequency F1 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≤ the second percentage threshold E,
[0097] Or when the second frequency threshold C≤main flow frequency F1<first frequency threshold A, and the absolute value of the absolute deviation Δ≤fourth frequency threshold F, the interference degree of the main flow frequency F1 is determined to be weak interference, and the flow Q is calculated based on the main flow frequency F1.
[0098] This embodiment is to judge the weak interference of the main flow frequency F1. In the judgment of the no interference of the main flow frequency F1, the range of the thresholds to be compared is increased. Generally, the fourth frequency threshold F is greater than the third frequency threshold D, and the second percentage threshold E is greater than the first percentage threshold B, indicating that the interference of the main flow frequency F1 is strengthened. For example, the second percentage threshold E can be configured to 5%, and the fourth frequency threshold F can be configured to 5Hz. Similarly, the judgment is made from the two perspectives of absolute deviation and relative deviation to improve the credibility of the results; the judgment process only sets the comparison of four threshold parameters to improve the judgment speed.
[0099] Based on the above embodiments, in this embodiment, if Figure 2 As shown, step S170 also includes determining whether the main flow frequency F1 is strongly interfered with, and the specific determination steps are as follows:
[0100] When the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the auxiliary flow frequency F2 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≥ the third percentage threshold G,
[0101] Or the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and when the auxiliary flow frequency F2> the main flow frequency F1, the second frequency threshold C≤auxiliary flow frequency F2<the first frequency threshold A, and the absolute value of the absolute deviation Δ≥half of the value of the auxiliary flow frequency F2, it is determined that the degree of interference with the main flow frequency F1 is strong interference, and the flow Q is counted as zero.
[0102] This embodiment is to judge the strong interference of the main flow frequency F1. Generally, the third percentage threshold G is greater than the second percentage threshold E, indicating that the interference of the main flow frequency F1 is further strengthened. For example, the third percentage threshold G can be configured as 50%. It also has the advantages of higher credibility of the result and faster judgment speed.
[0103] Based on the above embodiments, in this embodiment, if Figure 2 As shown, step S170 also includes determining the general interference situation of the main flow frequency F1, and the specific determination steps are as follows:
[0104] When the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the auxiliary flow frequency F2 ≥ the first frequency threshold A, the second percentage threshold E< the absolute value of the relative deviation δ< the third percentage threshold G,
[0105] Or when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the second frequency threshold C≤ the auxiliary flow frequency F2< the first frequency threshold A, and the absolute value of the absolute deviation Δ< half of the auxiliary flow frequency F2 value,
[0106] Or when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2< the main flow frequency F1, the main flow frequency> the first frequency threshold A,
[0107] Or when the absolute value of the relative deviation δ>the second percentage threshold E, the absolute value of the absolute deviation Δ>the fourth frequency threshold F, and the auxiliary flow frequency F2<the main flow frequency F1, the second frequency threshold C≤the main flow frequency F1<the first frequency threshold A, and the absolute value of the absolute deviation Δ≥half of the value of the auxiliary flow frequency F2, the interference degree of the main flow frequency F1 is determined to be general interference, and the flow Q is calculated based on the main flow frequency F1 and recorded separately.
[0108] In this embodiment, general interference situations of the main flow frequency F1 can be fully identified, and the flow Q calculated based on the main flow frequency F1 can be recorded separately, which is convenient for historical tracing.
[0109] Based on the above embodiments, in this embodiment, if Figure 2 As shown, step S170 also includes determining whether there is no interference with the main flow frequency F1, and the specific determination steps are as follows:
[0110] When the main flow frequency F1 < the second frequency threshold C, or the auxiliary flow frequency F2 < the second frequency threshold C, the flow Q is counted as zero.
[0111] It can be understood that the above-mentioned first frequency threshold A, first percentage threshold B, second frequency threshold C, third frequency threshold D, second percentage threshold E, fourth frequency threshold F and third percentage threshold G can be adjusted according to specific conditions.
[0112] In one embodiment of the present invention, Figure 2 As shown, according to the interference degree of the main flow frequency F1 determined in step S170, a weak interference flag is generated according to weak interference, a general interference flag is generated according to general interference, and a strong interference flag is generated according to strong interference, so as to reflect the operation status of the flow meter to the user in a more intuitive way.
[0113] Based on the same inventive concept, the embodiment of the present application also provides a flow signal interference diagnosis and processing device for a vortex flowmeter, which can be used to implement a flow signal interference diagnosis and processing method for a vortex flowmeter described in the above embodiment, as described in the following embodiment. Since the principle of solving the problem by a flow signal interference diagnosis and processing device for a vortex flowmeter is similar to that of a flow signal interference diagnosis and processing method for a vortex flowmeter, the implementation of a flow signal interference diagnosis and processing device for a vortex flowmeter can refer to the implementation of a flow signal interference diagnosis and processing method for a vortex flowmeter, and the repeated parts will not be repeated. As used below, the term unit or module can be a combination of software and / or hardware that implements the predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0114] The present invention provides a flow signal interference diagnosis and processing device for a vortex flowmeter, such as Figure 3 As shown, the device comprises:
[0115] A first piezoelectric sensor 210 is installed to collect a first original signal S1 output by the vortex flowmeter;
[0116] The second piezoelectric sensor 220 is installed to collect the second original signal S2 output by the vortex flowmeter;
[0117] A first amplifier 230, configured to amplify the first original signal S1 to obtain a first amplified signal S3;
[0118] The second amplifier 240 is used to amplify the second original signal S2 to obtain a second amplified signal S4;
[0119] The differential amplifier 250 is used to differentially amplify the first amplified signal S3 and the second amplified signal S4;
[0120] The first shaping filter 260 is used to shape and filter the output signal of the differential amplifier to obtain the main flow frequency F1;
[0121] The third amplifier 270 is used to select the first original signal S1 or the second original signal S2 for amplification;
[0122] A first shaping filter 280; used for shaping and filtering the output signal of the third amplifier to obtain an auxiliary flow frequency F2;
[0123] The microprocessor 290 is used to calculate the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation between the main flow frequency F1 and the auxiliary flow frequency F2 according to the main flow frequency F1 and the auxiliary flow frequency F2; determine the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation, and determine the calculation basis of the flow Q according to the interference degree of the main flow frequency F1; and generate interference alarm information according to the interference degree.
[0124] The microprocessor 290 in this embodiment can be understood by those skilled in the art that the microprocessor 290 can be a DSP (Digital Signal Processing) digital signal processor, an FPGA (Field-Programmable Gate Array) field programmable gate array, an MCU (Microcontroller Unit) system board, an SoC (system on a chip) system board, or a PLC (Programmable Logic Controller) minimum system including I / O. The above functions of the microprocessor 290 can be realized by presetting the control logic.
[0125] According to an embodiment of the present invention, a flow signal interference diagnosis and processing device for a vortex flowmeter is provided. The microprocessor 290 is further used to configure the update time of the main flow frequency F1 and the auxiliary flow frequency F2 after obtaining the first amplified signal S3 and the second amplified signal S4, and the number of pulses counted in each update time interval is at least 50.
[0126] In an embodiment of the present invention, a flow signal interference diagnosis and processing device for a vortex flowmeter is provided, wherein the microprocessor 290 is further configured to: when the main flow frequency F1 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≤ the first percentage threshold B,
[0127] Or when the second frequency threshold C≤main flow frequency F1<first frequency threshold A, and the absolute value of the absolute deviation Δ≤third frequency threshold D, the interference degree of the main flow frequency F1 is determined to be no interference, and the flow Q is calculated based on the main flow frequency F1.
[0128] In an embodiment of the present invention, a flow signal interference diagnosis and processing device for a vortex flowmeter is provided, wherein the microprocessor 290 is further configured to: when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the main flow frequency F1 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ≤ the second percentage threshold E,
[0129] Or when the absolute value of the relative deviation δ>the second percentage threshold E, the absolute value of the absolute deviation Δ>the fourth frequency threshold F, and the second frequency threshold C≤main flow frequency F1<first frequency threshold A, and the absolute value of the absolute deviation Δ≤fourth frequency threshold F, it is determined that the degree of interference with the main flow frequency F1 is weak interference, and the flow Q is calculated based on the main flow frequency F1.
[0130] In one embodiment of the present invention, a flow signal interference diagnosis and processing device for a vortex flowmeter is provided, wherein the microprocessor 290 is further configured to: when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the auxiliary flow frequency F2≥ the first frequency threshold A, and the absolute value of the relative deviation δ≥ the third percentage threshold G,
[0131] Or when the absolute value of the relative deviation δ>the second percentage threshold E, the absolute value of the absolute deviation Δ>the fourth frequency threshold F, and the auxiliary flow frequency F2>the main flow frequency F1, the second frequency threshold C≤auxiliary flow frequency F2<the first frequency threshold A, and the absolute value of the absolute deviation Δ≥half of the value of the auxiliary flow frequency F2, the interference degree of the main flow frequency F1 is determined to be strong interference, and the flow Q is counted as zero.
[0132] In one embodiment of the present invention, a flow signal interference diagnosis and processing device for a vortex flowmeter is provided, wherein the microprocessor 290 is further configured to: when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the auxiliary flow frequency F2 ≥ the first frequency threshold A, and the second percentage threshold E< the absolute value of the relative deviation δ< the third percentage threshold G,
[0133] Or when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the second frequency threshold C≤ the auxiliary flow frequency F2< the first frequency threshold A, and the absolute value of the absolute deviation Δ< half of the auxiliary flow frequency F2 value,
[0134] Or when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2< the main flow frequency F1, the main flow frequency> the first frequency threshold A,
[0135] Or when the absolute value of the relative deviation δ>the second percentage threshold E, the absolute value of the absolute deviation Δ>the fourth frequency threshold F, and the auxiliary flow frequency F2<the main flow frequency F1, the second frequency threshold C≤the main flow frequency F1<the first frequency threshold A, and the absolute value of the absolute deviation Δ≥half of the value of the auxiliary flow frequency F2, the interference degree of the main flow frequency F1 is determined to be general interference, and the flow Q is calculated based on the main flow frequency F1 and recorded separately.
[0136] In an embodiment of the present invention, a flow signal interference diagnosis and processing device for a vortex flowmeter is provided. The microprocessor 290 is further configured to: when the main flow frequency F1 < the second frequency threshold C, or the auxiliary flow frequency F2 < the second frequency threshold C, the flow Q is measured as zero.
[0137] In an embodiment of the present invention, a flow signal interference diagnosis and processing device for a vortex flowmeter is provided, wherein the microprocessor 290 is further configured to: generate a weak interference flag according to the weak interference;
[0138] generating a general interference flag based on the general interference;
[0139] A strong interference flag is generated based on the strong interference.
[0140] The embodiments of the present application also provide a specific implementation of an electronic device that can implement all the steps in the method in the above embodiments, see Figure 4 , the electronic device 300 specifically includes the following contents:
[0141] Processor 310, memory 320, communication unit 330 and bus 340;
[0142] The processor 310 , the memory 320 , and the communication unit 330 communicate with each other via the bus 340 ; the communication unit 330 is used to implement information transmission between server-side devices and terminal devices and other related devices.
[0143] The processor 310 is used to call the computer program in the memory 320. When the processor executes the computer program, all the steps in the method for diagnosing and processing flow signal interference for a vortex flowmeter in the above embodiment are implemented.
[0144] Those skilled in the art should understand that the memory can be, but is not limited to, random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (EEPROM), etc.
[0145] The memory is used to store programs, and the processor executes the programs after receiving the execution instructions. Furthermore, the software programs and modules in the above-mentioned memory may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
[0146] The processor may be an integrated circuit chip having the ability to process signals. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0147] The present application also provides a computer-readable storage medium, which includes a program. When the program is executed by a processor, it is used to execute the method provided by any of the aforementioned embodiments of the flow signal interference diagnosis and processing method for a vortex flowmeter.
[0148] Those skilled in the art should 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, magnetic disk or optical disk, etc., various media that can store program codes, and the specific media type is not limited in this application.
[0149] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for diagnosing and processing flow signal interference for a vortex flowmeter, characterized in that: The method comprises: At the same time, the output signals of the two piezoelectric sensors located in the vortex flowmeter are collected to obtain a first original signal S1 and a second original signal S2 respectively; Amplify the first original signal S1 to obtain a first amplified signal S3; Amplifying the second original signal S2 to obtain a second amplified signal S4; The first amplified signal S3 and the second amplified signal S4 are differentially amplified and shaped and filtered to obtain a main flow frequency F1; Select the first original signal S1 or the second original signal S2 to amplify, shape and filter, and obtain the auxiliary flow frequency F2; According to the main flow frequency F1 and the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation between the two are calculated; The interference degree of the main flow frequency F1 is judged according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation, and the calculation basis of the flow Q is determined according to the interference degree of the main flow frequency F1; The method of judging the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation includes: When the main flow frequency F1 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≤ the first percentage threshold B, Or when the second frequency threshold C≤main flow frequency F1<first frequency threshold A, and the absolute value of the absolute deviation Δ≤third frequency threshold D, it is determined that the interference degree of the main flow frequency F1 is no interference, and the flow Q is calculated based on the main flow frequency F1; Generate interference alarm information according to the interference degree.
2. A method for diagnosing and processing flow signal interference for a vortex flowmeter according to claim 1, characterized in that: After obtaining the first amplified signal S3 and the second amplified signal S4, the update time of the main flow frequency F1 and the auxiliary flow frequency F2 is configured, and the number of pulses counted in each update time interval is at least 50.
3. A method for diagnosing and processing flow signal interference for a vortex flowmeter according to claim 1, characterized in that: The method of judging the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation also includes: When the main flow frequency F1 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≤ the second percentage threshold E, Or when the second frequency threshold C≤main flow frequency F1<first frequency threshold A, and the absolute value of the absolute deviation Δ≤fourth frequency threshold F, the interference degree of the main flow frequency F1 is determined to be weak interference, and the flow Q is calculated based on the main flow frequency F1.
4. A method for diagnosing and processing flow signal interference for a vortex flowmeter as claimed in claim 1, characterized in that: The method of judging the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation also includes: When the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the auxiliary flow frequency F2 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≥ the third percentage threshold G, Or when the absolute value of the relative deviation δ>the second percentage threshold E, the absolute value of the absolute deviation Δ>the fourth frequency threshold F, and the auxiliary flow frequency F2>the main flow frequency F1, the second frequency threshold C≤auxiliary flow frequency F2<the first frequency threshold A, and the absolute value of the absolute deviation Δ≥half of the value of the auxiliary flow frequency F2, the interference degree of the main flow frequency F1 is determined to be strong interference, and the flow Q is counted as zero.
5. A method for diagnosing and processing flow signal interference for a vortex flowmeter as claimed in claim 1, characterized in that: The method of judging the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation also includes: When the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2> the main flow frequency F1, the auxiliary flow frequency F2 ≥ the first frequency threshold A, the second percentage threshold E< the absolute value of the relative deviation δ< the third percentage threshold G, Or the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and when the auxiliary flow frequency F2> the main flow frequency F1, the second frequency threshold C≤ the auxiliary flow frequency F2< the first frequency threshold A, the absolute value of the absolute deviation Δ< half of the auxiliary flow frequency F2 value, Or when the absolute value of the relative deviation δ> the second percentage threshold E, the absolute value of the absolute deviation Δ> the fourth frequency threshold F, and the auxiliary flow frequency F2<the main flow frequency F1, the main flow frequency F1> the first frequency threshold A, Or when the absolute value of the relative deviation δ>the second percentage threshold E, the absolute value of the absolute deviation Δ>the fourth frequency threshold F, and the auxiliary flow frequency F2<the main flow frequency F1, the second frequency threshold C≤main flow frequency F1<the first frequency threshold A, and the absolute value of the absolute deviation Δ≥half of the value of the auxiliary flow frequency F2, the interference degree of the main flow frequency F1 is determined to be general interference, and the flow Q is calculated based on the main flow frequency F1 and recorded separately.
6. A method for diagnosing and processing flow signal interference for a vortex flowmeter as claimed in claim 1, characterized in that: The method of judging the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation also includes: When the main flow frequency F1 < the second frequency threshold C, or the auxiliary flow frequency F2 < the second frequency threshold C, the flow Q is counted as zero.
7. A method for diagnosing and processing flow signal interference for a vortex flowmeter as claimed in claim 1, characterized in that: Generating interference alarm information according to the interference degree includes: generating a weak interference flag according to the weak interference; generating a general interference flag based on the general interference; A strong interference flag is generated based on the strong interference.
8. A flow signal interference diagnosis and processing device for a vortex flowmeter, characterized in that: The device comprises: A first piezoelectric sensor is installed to collect a first original signal S1 output by the vortex flowmeter; A second piezoelectric sensor is installed to collect the second original signal S2 output by the vortex flowmeter; A first amplifier, used to amplify the first original signal S1 to obtain a first amplified signal S3; A second amplifier, used to amplify the second original signal S2 to obtain a second amplified signal S4; A differential amplifier, used for differentially amplifying the first amplified signal S3 and the second amplified signal S4; A first shaping filter; used for shaping and filtering the output signal of the differential amplifier to obtain a main flow frequency F1; A third amplifier, used for selecting the first original signal S1 or the second original signal S2 for amplification; A first shaping filter; used for shaping and filtering the output signal of the third amplifier to obtain an auxiliary flow frequency F2; The microprocessor is used to calculate the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation between the main flow frequency F1 and the auxiliary flow frequency F2 according to the main flow frequency F1 and the auxiliary flow frequency F2; determine the interference degree of the main flow frequency F1 according to the main flow frequency F1, the auxiliary flow frequency F2, the absolute value Δ of the absolute deviation and the absolute value δ of the relative deviation, and determine the calculation basis of the flow Q according to the interference degree of the main flow frequency F1; generate interference alarm information according to the interference degree; The microprocessor is also used for: After obtaining the first amplified signal S3 and the second amplified signal S4, the update time of the main flow frequency F1 and the auxiliary flow frequency F2 is configured, and the number of pulses counted in each update time interval is at least 50; The microprocessor is also used for: When the main flow frequency F1 ≥ the first frequency threshold A, and the absolute value of the relative deviation δ ≤ the first percentage threshold B, Or when the second frequency threshold C≤main flow frequency F1<first frequency threshold A, and the absolute value of the absolute deviation Δ≤third frequency threshold D, the interference degree of the main flow frequency F1 is determined to be no interference, and the flow Q is calculated based on the main flow frequency F1.
9. An electronic device, characterized in that: include: processor, memory, and an interface for communicating with a gateway; The memory is used to store programs and data, and the processor calls the program stored in the memory to execute the flow signal interference diagnosis and processing method for a vortex flowmeter as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Anti-interference signal processing method and system based on vortex shedding flowmeter
CN106679741A
Vortex street flowmeter digital signal processing system based on vortex street amplitude-frequency characteristic interference resistance
CN113029258A