Electromagnetic flowmeter, flow measuring method, device, equipment and medium thereof

By designing sensor modules, converter modules and flow display units in the electromagnetic flowmeter, identifying and correcting abnormal data, and calculating the comprehensive flow data, the accuracy and robustness of the electromagnetic flowmeter when measuring small flow under large R values ​​are solved, and high-precision and reliable flow measurement are achieved.

CN119618325APending Publication Date: 2025-03-14CHONGQING CHUANYI AUTOMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411987418.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

When existing electromagnetic flowmeters perform small flow measurements under large R value conditions, the measurement results are affected by the fluid flow rate and lack effective means to distinguish the causes of abnormal situations, which affects the accuracy of flow measurement and the robustness and reliability of the system.

Method used

An electromagnetic flowmeter is designed, including a sensor module, a converter module and a flow display unit. By acquiring the flow sampling signal, identifying the data status, correcting abnormal data, and calculating the comprehensive flow data based on the preset weight ratio to determine the flow value of the fluid.

Benefits of technology

It improves the accuracy of small flow point measurement, enhances the overall performance of flow measurement, ensures accurate flow measurements even under weak signal conditions, and improves the robustness and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119618325A_ABST
    Figure CN119618325A_ABST
Patent Text Reader

Abstract

The invention provides an electromagnetic flowmeter flow measurement method, device and equipment, a medium and an electromagnetic flowmeter. The method comprises the steps that at least two kinds of flow sampling signals are obtained and converted into corresponding flow sampling data, the data state of the flow sampling data is recognized, and when it is recognized that the flow sampling data are in an abnormal state, the flow sampling data are sent to the electromagnetic flowmeter. Correcting the flow sampling data in the abnormal state to obtain corrected effective sampling data, and calculating the target sampling data based on a preset weight proportion to obtain comprehensive flow data so as to determine the flow value of the electromagnetic flowmeter. The target sampling data comprises flow sampling data with an effective original data state and corrected effective sampling data; double-principle calculation is carried out on the flow data through the two sampling signals, and abnormal flow data is corrected, so that the accuracy and robustness of a flow measurement result are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent instruments, and in particular to a flow measurement method, device, equipment, medium, and electromagnetic flowmeter. Background Art

[0002] In the application of electromagnetic flowmeters, the breadth of the measurement range is an important performance indicator. For example, the electromagnetic water meter in the electromagnetic flowmeter product type is a large-range metering device. The value of the common flow rate to the minimum flow rate of the electromagnetic water meter (referred to as R value) is the key parameter to measure this performance. Common R values ​​on the market include R160, R250, R400, R630, etc. For electromagnetic water meters of the same caliber, the common flow rate is usually fixed; in order to increase the measurement range of the electromagnetic water meter (that is, increase the R value), the only way is to reduce the minimum flow rate. However, as the minimum flow rate continues to decrease, the measurement difficulty increases: when the flow rate is very small, the generated signal will also become very weak, which makes it more difficult to accurately measure small flow points.

[0003] Especially when measuring small flow rates under large R values, the measurement results of electromagnetic water meters are affected by the flow velocity of the fluid, which is easily affected by external environmental factors. Existing electromagnetic water meter measurement methods usually lack effective means to distinguish the causes of abnormal conditions and cannot properly correct such abnormal flow data. This not only affects the accuracy of flow measurement, but also reduces the robustness and reliability of the system. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, the present application provides an electromagnetic flowmeter flow measurement method, device, equipment, medium, and electromagnetic flowmeter to solve the above-mentioned technical problems.

[0005] The present application provides an electromagnetic flowmeter, which includes: a sensor module, used to collect an initial flow signal of the fluid of the electromagnetic flowmeter, wherein the initial flow signal includes an electromagnetic flow signal and a resistance flow signal; a converter module, used to process the initial flow signal to obtain flow data of the electromagnetic flowmeter; wherein the converter module includes: an electromagnetic induction processing unit, used to process the electromagnetic flow signal based on electromagnetic parameters to obtain electromagnetic flow data; a resistance change processing unit, used to process the resistance flow signal based on resistance parameters to obtain resistance flow data; a comparison and analysis unit, used to analyze and calculate the electromagnetic flow data and the resistance flow data to obtain the flow value of the fluid flowing through the electromagnetic flowmeter; and a flow display unit, used to display the flow value.

[0006] The present application provides a flow measurement method of an electromagnetic flowmeter, which is applied to the electromagnetic flowmeter as described above, and the method includes: acquiring a flow sampling signal and converting the flow sampling signal into corresponding flow sampling data; identifying a data state of the flow sampling data, wherein the data state includes valid and abnormal; when it is identified that the flow sampling data is in an abnormal state, correcting the flow sampling data in the abnormal state to obtain corrected valid sampling data; calculating the target sampling data based on a preset weight ratio to obtain comprehensive flow data to determine the flow value of the fluid of the electromagnetic flowmeter, wherein the target sampling data includes flow sampling data whose original data state is valid and corrected valid sampling data.

[0007] In one embodiment of the present application, the flow sampling signal includes an electromagnetic sampling signal and a resistance sampling signal sampled by the sensor at the same time, the electromagnetic sampling signal is used to generate electromagnetic sampling data, and the resistance sampling signal is used to generate resistance sampling data.

[0008] In one embodiment of the present application, the method also includes, before correcting the flow sampling data in an abnormal state, determining the electromagnetic flowmeter fault type according to the data category of the flow sampling data in the abnormal state, so as to select different processing strategies based on different fault types to process the target sampling data.

[0009] In one embodiment of the present application, the processing strategy includes: when only the resistance sampling data or the electromagnetic sampling data is in an abnormal state, it is determined that the fault type of the electromagnetic flowmeter is a meter body fault, a fault report is generated, and the fault report is sent to the control terminal; when both the electromagnetic sampling data and the resistance sampling data are in an abnormal state, it is determined that the fault type of the electromagnetic flowmeter is external interference, and weighted calculation is performed on the electromagnetic sampling data and the resistance sampling data in the target sampling data based on preset weights.

[0010] In one embodiment of the present application, identifying the data state of the flow sampling data includes: obtaining flow sampling signals corresponding to three consecutive sampling periods, and recording the corresponding flow sampling data as previous sampling data, current sampling data and next sampling data; when the data state of the previous sampling data is valid, calculating the difference between the previous sampling data and the current sampling data to obtain a first difference, and calculating the difference between the current sampling data and the next sampling data to obtain a second difference; if any of the following conditions is met, the data state of the current sampling data is determined to be abnormal: the first difference exceeds a preset first threshold; the first difference is greater than the second difference, and the second difference is less than a preset second threshold, and the second threshold is less than the first threshold.

[0011] In one embodiment of the present application, the flow sampling data in an abnormal state is corrected, including: obtaining the next electromagnetic sampling data and the next resistance sampling data corresponding to the next sampling period based on the next sampling data; calculating the average of the next electromagnetic field sampling data and the next resistance sampling data to determine the average as the corrected flow sampling data, the corrected effective sampling data, and the effective sampling data is the electromagnetic sampling data or the resistance sampling data.

[0012] The present application provides an electromagnetic flowmeter flow measurement device, the device comprising: a data acquisition module, used to obtain a flow sampling signal and convert the flow sampling signal into corresponding flow sampling data; a data state identification module, used to identify the data state of the flow sampling data, the data state including valid and abnormal; a data correction module, used to correct the flow sampling data in the abnormal state when it is identified that the flow sampling data is in an abnormal state, so as to obtain corrected valid sampling data; a flow value determination module, used to calculate the flow sampling data confirmed as valid based on a preset weight ratio, obtain comprehensive flow data, so as to determine the flow value of the fluid of the electromagnetic flowmeter, the flow sampling data determined as valid includes flow sampling data with an original data state of valid and corrected flow sampling data.

[0013] The present application provides an electronic device, including a processor, a memory and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute a computer program stored in the memory to implement the electromagnetic flowmeter flow measurement method as described above.

[0014] The present application provides a computer-readable storage medium, characterized in that a computer program is stored thereon, and the computer program is used to enable a computer to execute the electromagnetic flowmeter flow measurement method as described above.

[0015] Beneficial effects of the present application: The electromagnetic flowmeter flow measurement method proposed in the present application obtains the flow sampling signal and converts it into corresponding flow sampling data, identifies the state of these data, and corrects the data in abnormal state to ensure that the final calculated comprehensive flow data is accurate and reliable. This method effectively corrects the flow sampling data in abnormal state, ensuring that even weak signals can be correctly interpreted and processed, thereby greatly improving the accuracy of small flow point measurement; by calculating the target sampling data (including the original valid flow sampling data and the corrected valid sampling data) based on the preset weight ratio, the data from different sources are given appropriate weights according to the actual situation, thereby improving the overall performance of flow measurement.

[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0018] Figure 1 is a schematic diagram of the structure of an electromagnetic flowmeter shown in an exemplary embodiment of the present application;

[0019] Figure 2 It is a schematic diagram of the structure of an electromagnetic flowmeter and its connection relationship shown in an exemplary embodiment of the present application;

[0020] Figure 3 is a flowchart of a method for measuring flow rate using an electromagnetic flowmeter, shown in an exemplary embodiment of the present application;

[0021] Figure 4 is a schematic diagram of the excitation and driving cycle of an electromagnetic flowmeter shown in an exemplary embodiment of the present application;

[0022] Figure 5 is a schematic diagram of flow measurement results of electromagnetic flow shown in an exemplary embodiment of the present application;

[0023] Figure 6 is a schematic diagram of flow measurement results of electromagnetic flow shown in another exemplary embodiment of the present application;

[0024] Figure 7 is a block diagram of an electromagnetic flowmeter flow measurement device shown in an exemplary embodiment of the present application;

[0025] Figure 8 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.

[0027] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0028] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.

[0029] Figure 1 It is a schematic diagram of the structure of an electromagnetic flowmeter shown in an exemplary embodiment of the present application.

[0030] like Figure 1 As shown, the electromagnetic flowmeter includes a sensor module and a converter module, and the sensor module includes electrodes and pipes. Among them, the motor is installed inside the pipe or embedded in the pipe wall, and is used to detect the induced electromotive force generated by the conductive fluid flowing through the pipe, so as to calculate the flow through the pipe through Faraday's law of electromagnetic induction, and detect the change law of resistance at the same time; the pipe serves as a channel for fluid transmission, and provides an installation location for electrodes and other sensor components. In addition, the converter module is responsible for processing the data from the sensor, performing the necessary signal conditioning, data acquisition and calculation work, including processing the flow obtained by the electromagnetic induction principle, and calculating another set of flow by "the law of resistance change of flowing liquid", and comparing the difference between the two to determine whether the flow is normal.

[0031] Figure 2 It is a schematic diagram of the electromagnetic flowmeter structure and its connection relationship shown in an exemplary embodiment of the present application.

[0032] like Figure 2 As shown, the electromagnetic flowmeter structure specifically includes a sensor module and a converter module, wherein the sensor module includes electrodes, a magnetic field B, and a schematic diagram of the direction of flow velocity v, wherein the electrodes are arranged in the pipeline for detecting electrical signals in the fluid; the magnetic field B is vertically downward for forming electromagnetic induction in the fluid; and the direction of the fluid velocity v is perpendicular to the paper surface and inward.

[0033] The converter module specifically includes a wire, an electromagnetic induction processing module (electromagnetic induction processing unit), a resistance change processing module (resistance change processing unit), a comparison analysis processing module (comparison analysis unit), and a flow display unit. Among them, wires 1 and 2 connect the sensor and the converter to transmit electrical signals; the electromagnetic induction processing module is used to process the electromagnetic induction signal transmitted by the sensor to obtain electromagnetic flow data; the resistance change processing module is used to process the resistance change signal caused by fluid flow in the sensor to obtain resistance flow data; the flow Q a and flow rate Q b They respectively represent the electromagnetic flow signal and the resistance flow signal passing through the flowmeter; the comparison and analysis processing module is used to compare and analyze the signals from the electromagnetic induction processing module and the resistance change processing module to measure the flow more accurately; the flow display unit is used to display the measured fluid flow value.

[0034] In a specific embodiment of the present application, the velocity v of the fluid is detected by electrodes, and the electromagnetic flow data Q is calculated using Faraday's law of electromagnetic induction. a And indirectly obtain the resistance flow data Q by monitoring the change of the resistance value of the flowing liquid b Among them, the electromagnetic flow data Q a The expression is as follows:

[0035] Q a =v·S Formula (1)

[0036] Among them, Q a is the electromagnetic flow data, v is the flow velocity of the fluid, and S is the cross-sectional area of ​​the pipe. S is a standard value determined based on the electromagnetic flowmeter.

[0037] Resistance flow data Q b The expression is as follows:

[0038] R = k 1 ·v

[0039] Q b =k 2 R = k 1 ·k 2 ·v formula (2)

[0040] Among them, Q b is the resistance flow data, R is the resistance of the flowing liquid, v is the flow rate of the fluid, k 1 is the sensor constant, k 2 is the converter constant. k 1 and k 2 All are standard values ​​determined based on electromagnetic flowmeters.

[0041] Then, the electromagnetic flow data Qa and resistance flow data Q b Data status identification and correction calculation are performed to obtain electromagnetic flow data and resistance flow data with valid data status, and then the actual flow value of the electromagnetic flowmeter is calculated based on the valid data.

[0042] Figure 3 It is a flowchart of the steps of a flow measurement method of an electromagnetic flowmeter shown in an exemplary embodiment of the present application.

[0043] like Figure 3 As shown, in an exemplary embodiment, the electromagnetic flowmeter flow measurement method includes at least steps S310 to S340, which are described in detail as follows:

[0044] Step S310, acquiring a flow sampling signal, and converting the flow sampling signal into corresponding flow sampling data.

[0045] In one embodiment of the present application, the flow sampling signal includes an electromagnetic sampling signal and a resistance sampling signal obtained by sampling at the same time based on the sensor. The electromagnetic sampling signal is used to generate electromagnetic sampling data, and the resistance sampling signal is used to generate resistance sampling data.

[0046] It should be noted that the "electromagnetic sampling signal and resistance sampling signal sampled at the same time" mentioned in the above embodiment can be an electromagnetic meter signal collected by the same sensor, which is processed separately by different processing units to obtain the electromagnetic sampling signal and resistance sampling signal.

[0047] In a specific embodiment of the present application, the electromagnetic water meter is composed of a sensor module and a converter module. The sensor module includes an electrode installed in the pipeline (for detecting the fluid velocity) and an additional integrated resistance measuring device (for detecting the resistance value of the flowing liquid). At a certain time t, the induced electromotive force generated by the conductive fluid flowing through the pipeline is detected by the electrode. The electromotive force signal reflects the velocity v of the fluid, and then according to Faraday's law of electromagnetic induction, as shown in formula (1), its flow velocity is converted into the corresponding electromagnetic flow data Q a At the same time, the resistance value change of the flowing liquid is monitored by the resistance measuring device, and the collected resistance value is converted into resistance flow data Q by the calculation method as shown in formula (2): b .

[0048] It should be noted that in order to ensure that the two sampling signals can accurately correspond to the flow status at the same time point, the flow measurement system needs to adopt a strict synchronization mechanism to ensure that the electromagnetic sampling signal and the resistance sampling signal are collected at the same time. However, due to technical problems, it is impossible to achieve the same time. Therefore, the "same time" mentioned in this embodiment does not require to be absolutely the same time. As long as it is within the acceptable error range, it will be regarded as the same time. The error range is determined based on the specific measurement accuracy requirements. This application does not impose any restrictions on its determination method and specific value.

[0049] Step S320, identifying the data status of the traffic sampling data, where the data status includes valid and abnormal.

[0050] Figure 4 It is a schematic diagram of the excitation and driving cycle of an electromagnetic flowmeter shown in an exemplary embodiment of the present application.

[0051] like Figure 4 As shown, in a measurement cycle (T 0 -T 2 ), first in T 0 to T 1 During this period, the coil is powered (excitation for short) to generate a magnetic field, so that the electrode can receive the potential signal, and the electromagnetic induction processing module further converts the potential signal into the corresponding electromagnetic flow data Q a ; Then, after excitation, T 1 -T 2 During this period, the signal electrode is driven to form an electrical circuit between "pipeline liquid-electrode-wire-converter", and then the resistance value R of the fluid is calculated, and its resistance value is converted into the corresponding resistance flow data Q through the resistance change module. b . After that, T 3 -T 5 , T n -T n+2 is the subsequent repeated measurement cycle. It should be noted that due to T 0 -T 1 , and T 1 -T 2 The time period between them is very short, which can reach the millisecond level, and the electromagnetic induction measurement and resistance measurement are adjacent cycles. Therefore, it can be considered that the measurement is performed under the same transient conditions in the pipeline, that is, the electromagnetic sampling signal and the resistance sampling signal are collected at the same time. In addition, since the power supply of the electromagnetic flowmeter is alternating current, the current direction of two consecutive measurement cycles is different, but it does not affect the measurement results.

[0052] Given that the sampling cycle of the electromagnetic water meter and the time interval between adjacent cycles can reach the millisecond level, it should be considered that the flow rate remains basically constant or changes only slightly within several consecutive sampling cycles. Based on this premise, if there is a significant difference in the flow data recorded by the same sensor module in two consecutive samplings, these data are considered abnormal. Furthermore, considering the consistency of the flow rate change trend in a very short period of time, the flow rate change should be smooth and continuous within a very short period of time, without abrupt jumps. Therefore, the difference between two adjacent samples should be smaller than the difference between two samples separated by one sampling cycle.

[0053] Therefore, in one embodiment of the present application, identifying the data state of flow sampling data includes: obtaining flow sampling signals corresponding to three consecutive sampling periods, and recording the corresponding flow sampling data as previous sampling data, current sampling data and next sampling data; when the data state of the current sampling data is valid, calculating the difference between the previous sampling data and the current sampling data to obtain a first difference, and calculating the difference between the current sampling data and the next sampling data to obtain a second difference; if any of the following conditions is met, determining that the data state of the current sampling data is abnormal: the first difference exceeds a preset first threshold; the first difference is greater than the second difference, and the second difference is less than a preset second threshold, and the second threshold is less than the first threshold.

[0054] In a specific embodiment of the present application, in order to identify the data state of the flow sampling data, a flow sampling signal analysis method based on three consecutive sampling periods is adopted. First, the flow sampling signals corresponding to the three consecutive sampling periods are obtained, and the flow sampling data at these three moments are recorded as the previous sampling data D t-1 , current sampling data D t and the next sample data D t+1 , the current sampling data D t-1 If the data state is confirmed to be valid, the previous sampling data D is further calculated. t-1 and the current sampling data D t The difference between the first difference Δ 1 , calculate the previous sampling data D t-1 and the next sample data D t+1 The second difference Δ 2 . Further, the first difference Δ 1 and the preset first threshold θ 1 Compare the first difference Δ 1 and the second difference Δ 2 Compare and convert the second difference Δ 2 and the second threshold θ 2 Make a comparison.

[0055] When the first difference Δ1 Greater than the first threshold θ 1 , which means that compared with the previous moment, the current moment's flow has undergone an unusually large change, so the current sampling number D is determined t The data status is abnormal.

[0056] When the first difference Δ 1 Greater than the second difference Δ 2 , and the second difference Δ 2 Less than the second threshold θ 2 , it indicates that there may be an instantaneous drastic change during the measurement process, rather than a smooth transition, so the current sampling number D is also determined. t The data status is abnormal.

[0057] When the first difference Δ 1 Less than the first threshold θ 1 , and the first difference Δ 1 Less than the second difference Δ 2 , it indicates that the flow rate change of the electromagnetic flowmeter is very small and smooth during the measurement process, so the current sampling number D is determined t The data status is valid.

[0058] It should be noted that the solution proposed in this embodiment can effectively identify abnormal flow sampling data caused by external interference or other factors, ensuring that the data used in subsequent processing and calculation is more accurate and reliable. It effectively improves the accuracy of electromagnetic water meter measurement results, thereby enhancing the robustness and reliability of the system.

[0059] In addition, considering that the state of the electromagnetic water meter should remain consistent at the same time, the electromagnetic sampling data and the resistance sampling data collected at the same time should theoretically be the same. However, due to factors such as differences in data accuracy of different sensors and losses during signal transmission, a very small error between the two is allowed, but the error should be very small. Therefore, if the difference in flow sampling data collected by different sampling modules at the same time exceeds the preset range, it is considered a data anomaly, and further analysis is required based on the method proposed in the above embodiment to determine whether there is a problem with the electromagnetic sampling data or the resistance sampling data, or whether both data points are abnormal.

[0060] Step S330, when it is identified that the flow sampling data is in an abnormal state, the flow sampling data in the abnormal state is corrected to obtain corrected valid sampling data.

[0061] In one embodiment of the present application, before correcting the flow sampling data in an abnormal state, the method further includes determining the electromagnetic flowmeter fault type according to the data category of the flow sampling data in the abnormal state, so as to select different processing strategies based on different fault types to process the target sampling data. Specifically, when only the resistance sampling data or the electromagnetic sampling data is in an abnormal state, it is determined that the fault type of the electromagnetic flowmeter is a meter body fault, a fault report is generated, and the fault report is sent to the control terminal; when both the electromagnetic sampling data and the resistance sampling data are in an abnormal state, it is determined that the fault type of the electromagnetic flowmeter is external interference, and a weighted calculation is performed on the electromagnetic sampling data and the resistance sampling data in the target sampling data based on the preset weight.

[0062] Therefore, if it is determined that the fault type of the electromagnetic flowmeter is a meter body fault, a specific fault report is generated based on the fault phenomenon and sent to the control terminal so that relevant staff can know the fault status and take corresponding measures. If it is determined that the fault type of the magnetic flowmeter is external interference, the abnormal data is further corrected, and then the corrected valid data is calculated based on the preset ratio to obtain more accurate flow data. The correction method is as follows:

[0063] In one embodiment of the present application, the flow sampling data in an abnormal state is corrected, including: obtaining the next electromagnetic sampling data and the next resistance sampling data corresponding to the next sampling period based on the next sampling data; calculating the average of the next electromagnetic field sampling data and the next resistance sampling data to determine the average as the corrected flow sampling data, the corrected valid sampling data, and the valid sampling data is the electromagnetic sampling data or the resistance sampling data.

[0064] In a specific embodiment of the present application, in order to correct the flow sampling data in an abnormal state, a method of calculating the data mean value based on the next sampling period is adopted. First, the next electromagnetic sampling data D corresponding to the next sampling period is obtained. e,t+1 And the next resistor sampling data Dr,t+1 , the next electromagnetic sampling data D e,t+1 And the next resistor sampling data Dr,t+1 are the sampling data corresponding to the sampling signals collected at the same time point from the electromagnetic processing module and the resistance processing module. Then, the next electromagnetic sampling data D is calculated. e,t+1 And the next resistor sampling data D r,t+1 The mean of the traffic sampling data is determined as the corrected traffic sampling data, and the corrected valid sampling data is used to replace the traffic sampling data previously identified as abnormal.

[0065] It should be noted that the corrected valid sampling data may be electromagnetic sampling data or resistance sampling data, depending on whether there is an abnormality in which data source. Regardless of which data has the abnormality, it can be corrected based on the same correction method.

[0066] It can be understood that the solution proposed based on this embodiment can effectively correct the abnormal flow sampling data, ensuring that the data used for subsequent processing and calculations are more accurate and reliable, thereby improving the overall performance and measurement accuracy of the electromagnetic water meter.

[0067] Step S340, calculating the target sampling data based on a preset weight ratio to obtain comprehensive flow data to determine the flow value of the fluid of the electromagnetic flowmeter, the target sampling data includes flow sampling data with valid original data status and corrected valid sampling data.

[0068] In one embodiment of the present application, when only the resistance sampling data or the electromagnetic sampling data is in an abnormal state, it is determined that the fault type of the electromagnetic flowmeter is a meter body fault, and a fault report is generated and sent to the control terminal; when both the electromagnetic sampling data and the resistance sampling data are in an abnormal state, it is determined that the fault type of the electromagnetic flowmeter is external interference, and a weighted calculation is performed on the electromagnetic sampling data and the resistance sampling data in the target sampling data based on preset weights.

[0069] Since external interference can easily affect the flow rate of the fluid, from equations (1) and (2), we can know the change of the fluid flow rate, which will affect the electromagnetic flow data Q a and resistance flow data Q b Therefore, when only electromagnetic flow data Q a Or resistance flow data Q b When the data status of is abnormal, it indicates that the problem may occur in the sensor module itself rather than external factors. Therefore, the fault type is determined to be a meter body fault, that is, the electromagnetic flowmeter itself has a fault; and when the electromagnetic flow data Q a and resistance flow data Q b If the data status is abnormal, it means that external environmental factors (such as pipeline vibration or unstable pump power, etc.) have caused the fluid flow rate to change, rather than internal problems of the equipment. Therefore, the fault type is determined to be external interference, that is, the external environment has interfered with the flow rate of the electromagnetic flowmeter.

[0070] Figure 5 is a schematic diagram of flow measurement results of electromagnetic flow shown in an exemplary embodiment of the present application; Figure 6 It is a schematic diagram of flow measurement results of electromagnetic flow shown in another exemplary embodiment of the present application.

[0071] In a specific embodiment of the present application, T0 -T 2 Considered as the previous sampling period, T 3 -T 5 is regarded as the current sampling period, T 6 -T 8 is regarded as the next sampling period. Figure 5 As shown, the flow sampling data corresponding to the previous sampling cycle and the flow sampling data of the next sampling cycle are basically the same, while the flow sampling data corresponding to the current sampling cycle has a data value that is significantly different from the values ​​of the sampling data corresponding to the previous sampling cycle and the next sampling cycle. Therefore, the fault category of the electromagnetic flowmeter is a meter body fault.

[0072] Considering that the meter body failure of the electromagnetic flowmeter is usually caused by problems with the sensor module itself or the internal circuit, and its failure does not occur or end instantaneously, therefore, if the sampling data at the current sampling moment is abnormal, the subsequent sampling data will also mostly be abnormal. Therefore, after determining that the fault type is a meter body failure, there is no need to process its subsequent sampling data, but a corresponding fault report should be generated to notify relevant staff to inspect or dismantle its electromagnetic flowmeter.

[0073] In another specific embodiment of the present application, T 0 -T 2 Considered as the previous sampling period, T 3 -T 5 is regarded as the current sampling period, T 6 -T 8 is regarded as the next sampling period. Figure 6 As shown in the figure, the flow sampling data corresponding to the previous sampling cycle and the flow sampling data of the next sampling cycle are basically the same, while the data values ​​of the two sampling data in the flow sampling data corresponding to the current sampling cycle are obviously different from the values ​​of the sampling data corresponding to the previous sampling cycle and the next sampling cycle. Therefore, the fault category of the electromagnetic flowmeter is external interference.

[0074] In another specific embodiment of the present application, after determining that the fault type is external interference, the system performs weighted calculation on the electromagnetic sampling data and the resistance sampling data in the target sampling data according to the preset weights. Assume that the weights of the electromagnetic sampling data and the resistance sampling data are equal, that is, the weight of each data source is 0.5. Therefore, the weighted formula is as follows:

[0075] D c =0.5·D e +0.5·D r Formula (3)

[0076] Among them, D c is the corrected current sampling data, D eis the electromagnetic sampling data of the next sampling period, D r The resistance sampling data for the next sampling cycle.

[0077] It should be noted that the equal weights of the electromagnetic sampling data and the resistance sampling data mentioned in the above embodiment are only for illustrative purposes. In actual application scenarios, the weights of the electromagnetic sampling data and the resistance sampling data may be set to be unequal based on different background reasons, and this application does not impose any specific restrictions on this.

[0078] In addition, after the fault type of the electromagnetic flowmeter is determined, corresponding troubleshooting measures can be taken based on the fault type to ensure the rapid recovery and stable operation of the system. For example, when the fault type of the electromagnetic flowmeter is determined to be a meter body fault, it usually means that the problem occurs in the sensor module itself or the internal circuit. You can check whether the physical connection of the electrodes and other sensor components is firm to ensure that there is no looseness or poor contact; recalibrate the electrodes and resistance measuring devices to ensure that they accurately respond to fluid changes within the normal working range; if a sensor component (such as an electrode or resistance measuring device) is found to be obviously damaged or degraded, replace the corresponding parts in time to ensure that the system returns to normal operation; and check and update the firmware or software version in the converter module to ensure that the latest repair patch has been applied, and try to restart the device to clear possible temporary faults. When the fault type of the electromagnetic water meter is determined to be external interference, especially those factors that affect the speed, such as pipeline vibration or unstable pump power, the impact of external mechanical vibration can be reduced by strengthening the physical isolation of the equipment. For example, try to avoid high-vibration areas when choosing the installation location, or use vibration reduction devices to absorb unnecessary vibrations; or for flow rate fluctuations caused by unstable pump power, optimize the pump control strategy, such as using a frequency converter to maintain a constant output power of the pump, thereby stabilizing the fluid speed.

[0079] This application does not impose any restrictions on its specific troubleshooting measures.

[0080] It is understandable that based on the scheme proposed in the above embodiment, the flow measurement method of the electromagnetic flowmeter can be dynamically adjusted according to the abnormal situation actually detected, thereby improving the reliability and stability of the flow measurement. This method is suitable for application scenarios that require high-precision measurement, ensuring stable and reliable flow monitoring even in complex and changing working environments.

[0081] Finally, it should be noted that the electromagnetic flowmeter flow measurement method proposed in this application can more comprehensively reflect the actual flow state by acquiring electromagnetic sampling data and resistance sampling data at the same time, combining the measurement results of two different principles, and reducing the error that may be caused by a single measurement principle; when abnormal sampling data is detected, the data mean at the next sampling moment is used for correction, ensuring that stable and reliable measurement results can be provided even in a complex and changeable working environment. Through the state analysis of electromagnetic sampling data and resistance sampling data, the system can effectively distinguish between meter body failure and external interference, so as to take appropriate correction measures and enhance the anti-interference ability and self-repair ability of the system; in addition, the weight ratio of electromagnetic sampling data and resistance sampling data is dynamically adjusted according to different fault types, and more reliable data sources are used for correction first, further improving the stability and reliability of the system. In summary, the electromagnetic flowmeter flow measurement method proposed in this application not only inherits the advantages of traditional electromagnetic water meters, but also realizes more accurate and reliable flow measurement by introducing advanced dual-principle sampling, abnormal data identification and correction mechanism, and weighted calculation method based on fault type, which not only improves the measurement accuracy of electromagnetic water meters and the robustness of the system, but also provides a solid technical foundation for realizing intelligent diagnosis and automatic correction.

[0082] Figure 7 FIG. 1 is a block diagram of an electromagnetic flowmeter flow measurement device according to an exemplary embodiment of the present application. The device can be configured as follows: Figure 1 In the electromagnetic flowmeter device shown, this embodiment does not limit the applicable implementation environment of the device.

[0083] like Figure 7 As shown, the exemplary electromagnetic flowmeter flow measurement device includes: a data acquisition module 710, a data state identification module 720, a data correction module 730, and a flow value determination module 740.

[0084] Among them, the data acquisition module 710 is used to obtain the flow sampling signal and convert the flow sampling signal into corresponding flow sampling data; the data state identification module 720 is used to identify the data state of the flow sampling data, and the data state includes valid and abnormal; the data correction module 730 is used to correct the flow sampling data in the abnormal state when it is identified that the flow sampling data is in an abnormal state to obtain the corrected valid sampling data; the flow value determination module 740 is used to calculate the target sampling data based on a preset weight ratio to obtain the comprehensive flow data to determine the flow value of the fluid of the electromagnetic flowmeter, and the target sampling data includes the flow sampling data whose original data state is valid and the corrected valid sampling data.

[0085] It should be noted that the electromagnetic flowmeter flow measurement device provided in the above embodiment and the electromagnetic flowmeter flow measurement method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In practical applications, the electromagnetic flowmeter flow measurement device provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0086] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the electromagnetic flowmeter flow measurement method provided in the above-mentioned embodiments.

[0087] Figure 8 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 8 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0088] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 808 to the random access memory (RAM) 803, such as executing the method described in the above embodiment. In the RAM 803, various programs and data required for system operation are also stored. The CPU 801, ROM 802 and RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0089] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.

[0090] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 809, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit (CPU) 801, various functions defined in the system of the present application are executed.

[0091] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0092] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0093] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0094] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the electromagnetic flowmeter flow measurement method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0095] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the electromagnetic flowmeter flow measurement method provided in each of the above embodiments.

[0096] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A flow measurement method using an electromagnetic flowmeter, characterized in that: The method is applied to the electromagnetic flowmeter according to claim 1, and the method comprises: Acquire at least two flow sampling signals, and convert the flow sampling signals into corresponding flow sampling data; Identify the data status of the traffic sampling data, where the data status includes valid and abnormal; When it is identified that the flow sampling data is in an abnormal state, the flow sampling data in the abnormal state is corrected to obtain corrected valid sampling data; The target sampling data is calculated based on a preset weight ratio to obtain comprehensive flow data to determine the flow value of the fluid of the electromagnetic flowmeter. The target sampling data includes flow sampling data with valid original data status and corrected valid sampling data.

2. The electromagnetic flowmeter flow measurement method according to claim 1, characterized in that: The flow sampling signal includes an electromagnetic sampling signal and a resistance sampling signal obtained by sampling at the same time based on the sensor. The electromagnetic sampling signal is used to generate electromagnetic sampling data, and the resistance sampling signal is used to generate resistance sampling data.

3. The electromagnetic flowmeter flow measurement method according to claim 2, characterized in that: Before correcting the flow sampling data in an abnormal state, the method further includes: The fault type of the electromagnetic flowmeter is determined according to the data category of the flow sampling data in the abnormal state, so as to select different processing strategies based on different fault types to process the target sampling data.

4. The electromagnetic flowmeter flow measurement method according to claim 3, characterized in that: The processing strategy includes: When only the resistance sampling data or the electromagnetic sampling data is in an abnormal state, it is determined that the fault type of the electromagnetic flowmeter is a meter body fault, and a fault report is generated and sent to the control terminal; When both the electromagnetic sampling data and the resistance sampling data are in an abnormal state, it is determined that the fault type of the electromagnetic flowmeter is external interference, and weighted calculation is performed on the electromagnetic sampling data and the resistance sampling data in the target sampling data based on preset weights.

5. The electromagnetic flowmeter flow measurement method according to claim 1, characterized in that: Identifying the data status of the traffic sampling data includes: Obtaining flow sampling signals corresponding to three consecutive sampling periods, and recording the corresponding flow sampling data as previous sampling data, current sampling data, and next sampling data; When the data state of the previous sampling data is valid, the difference between the previous sampling data and the current sampling data is calculated to obtain a first difference, and the difference between the current sampling data and the next sampling data is calculated to obtain a second difference; If any of the following conditions is met, the data state of the current sampling data is determined to be abnormal: The first difference exceeds a preset first threshold; The first difference is greater than the second difference, and the second difference is less than a preset second threshold, and the second threshold is less than the first threshold.

6. The electromagnetic flowmeter flow measurement method according to any one of claims 2 to 5, characterized in that: Correct the traffic sampling data in abnormal state, including: Based on the next sampling data, obtain the next electromagnetic sampling data and the next resistance sampling data corresponding to the next sampling period; The average of the next electromagnetic field sampling data and the next resistance sampling data is calculated to determine the average as the corrected flow sampling data, the corrected effective sampling data, and the effective sampling data is the electromagnetic sampling data or the resistance sampling data.

7. An electromagnetic flowmeter flow measurement device, characterized in that: The device comprises: A data acquisition module, used to obtain a flow sampling signal and convert the flow sampling signal into corresponding flow sampling data; A data status identification module, used to identify the data status of the flow sampling data, wherein the data status includes valid and abnormal; A data correction module is used to correct the flow sampling data in an abnormal state when it is identified that the flow sampling data is in an abnormal state, so as to obtain corrected valid sampling data; The flow value determination module is used to calculate the target sampling data based on a preset weight ratio to obtain comprehensive flow data to determine the flow value of the fluid of the electromagnetic flowmeter. The target sampling data includes flow sampling data with valid original data status and corrected valid sampling data.

8. An electromagnetic flowmeter, characterized in that the electromagnetic flowmeter comprises: A sensor module, used for collecting an initial flow signal of the fluid of the electromagnetic flowmeter, wherein the initial flow signal includes an electromagnetic flow signal and a resistance flow signal; A converter module, used for processing the initial flow signal to obtain flow data of the electromagnetic flowmeter; The converter module includes: An electromagnetic induction processing unit, used for processing the electromagnetic flow signal based on electromagnetic parameters to obtain electromagnetic flow data; A resistance change processing unit, used for processing the resistance flow signal based on the resistance parameter to obtain resistance flow data; A comparison and analysis unit, used for analyzing and calculating the electromagnetic flow data and the resistance flow data to obtain a flow value of the fluid flowing through the electromagnetic flowmeter; The flow display unit is used to display the flow value.

9. An electronic device, characterized in that: It comprises a processor, a memory and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute the computer program stored in the memory to implement the electromagnetic flowmeter flow measurement method as described in any one of claims 1-6.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is used to enable a computer to execute the electromagnetic flowmeter flow measurement method as described in any one of claims 1-6.