Method and system for extracting polarization voltage signal of electromagnetic flowmeter
By calculating and interpolation processing of electromagnetic flowmeter signals and extracting polarized voltage signals, the problem that the prior art cannot extract polarized voltage signals is solved, and accurate measurement of electromagnetic flowmeters is achieved, and the occurrence of amplifier saturation is avoided.
Patent Information
- Application Number
- CN202411290992.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-09-14
AI Technical Summary
The prior art cannot effectively extract the polarized voltage signal in the electromagnetic flowmeter, resulting in the amplifier saturation during the measurement work and the flow cannot be accurately measured.
By obtaining the electrode output signal output from the electromagnetic flowmeter signal acquisition circuit, calculating the polarization voltage signal amplitude during the excitation period, performing interpolation processing to form the polarization voltage signal curve of the electrode output signal, solving the random drift of the polarization voltage signal and Problems that cannot be described in quantifiable.
The polarized voltage signal in the output signal of the electromagnetic flowmeter electrode is effectively extracted, making up for the gaps in the existing technology, providing a reference for studying the characteristics and suppression methods of polarized voltage signals, and avoiding the occurrence of amplifier saturation.
Smart Images

Figure CN119085803A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electromagnetic flowmeters, and in particular to a method and system for extracting polarization voltage signals of an electromagnetic flowmeter. Background Art
[0002] Electromagnetic flowmeter is an instrument that uses Faraday's law of electromagnetic induction to measure the flow rate of conductive liquids. It is widely used in water supply, petroleum, chemical, papermaking, metallurgy and other industries.
[0003] Polarization voltage signal (also called polarization noise) is a kind of electrode interference signal unique to electromagnetic flowmeter. It is superimposed with induced potential signal, picked up by electrode and output, which causes great difficulties for the measurement of electromagnetic flowmeter. Polarization voltage signal is generated by electrochemical reaction between electrode and conductive liquid. Whether the electromagnetic flowmeter adopts DC excitation or AC excitation, polarization voltage signal exists. The amplitude of polarization voltage signal usually varies from several millivolts to hundreds of millivolts, and changes with time. It is not a fixed superposition noise. The amplitude of induced potential signal is usually tens to hundreds of microvolts corresponding to unit flow rate. Therefore, if the signal output by sensor electrode is directly amplified and filtered, it is easy to cause saturation of amplifier, making it impossible for electromagnetic flowmeter to measure accurately.
[0004] However, there is currently no method to extract the polarization voltage signal. Summary of the invention
[0005] 1. Technical issues to be solved
[0006] In view of the deficiencies in the prior art, the present invention provides a method and system for extracting polarization voltage signals of an electromagnetic flowmeter, which fills the gap that there is no method for extracting polarization voltage signals in the prior art.
[0007] (II) Technical solution
[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0009] In a first aspect, the present invention provides a method for extracting a polarization voltage signal of an electromagnetic flowmeter, comprising:
[0010] Acquire the electrode output signal output by the signal acquisition circuit of the electromagnetic flowmeter during a period of time when measuring the flow of the conductive liquid;
[0011] A complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle within a period of time is selected in time sequence, and the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle is calculated; a complete excitation cycle signal consisting of a negative half excitation cycle and a positive half excitation cycle is selected in time sequence, and the polarization voltage signal amplitude of the excitation current stable segment of the negative half excitation cycle is calculated; the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle is added to the polarization voltage signal amplitude of the excitation current stable segment of the negative half excitation cycle, and then the average value is taken to obtain the amplitude of the polarization voltage signal of the excitation current stable segment of an excitation cycle; and so on, each time sliding back by half the length of the excitation cycle signal, the amplitude of the polarization voltage signal of each excitation current stable segment is calculated, and an amplitude sequence is formed in time sequence;
[0012] The amplitude sequence is interpolated so that the length of the interpolated amplitude sequence is equal to the length of the electrode output signal after discretization. The interpolated amplitude sequence is a polarization voltage signal curve of the electrode output signal.
[0013] Preferably, the method of selecting a complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle within a period of time in chronological order and calculating the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle includes:
[0014] The expression of the electrode output signal in the stable section of the excitation current in the positive half excitation cycle is:
[0015] Ep=BvD+e zp +e np (1a)
[0016] The expression of the electrode output signal in the stable section of the excitation current in the negative half excitation cycle is:
[0017] En=-BvD+e zn +e nn (2a)
[0018] Among them, Ep represents the output signal of the electrode in the stable section of the excitation current in the positive half cycle, e zp It represents the polarization voltage signal in the stable section of the excitation current in the positive half cycle, e np represents the Gaussian noise signal in the stable section of the excitation current in the positive half cycle, En represents the electrode output signal in the stable section of the excitation current in the negative half cycle, and e zn represents the polarization voltage signal in the stable section of the excitation current in the negative half cycle, e nn Represents the Gaussian noise signal in the stable section of the excitation current in the negative half cycle;
[0019] Adding equation (1a) and equation (2a), the result is expressed as equation (3a):
[0020] Ep+En=e zp +e np +e zn +e nn (3a)
[0021] Since an excitation cycle lasts only tens to hundreds of milliseconds, according to the slow-changing characteristics of the polarization voltage, e zp Approximately equal to e zn , e np and e nn All of them obey the Gaussian distribution with a mean of zero, so we get formula (4a):
[0022] mean(Ep+En)=2*e zp (4a)
[0023] The amplitude of the polarization voltage signal in the stable segment of the excitation current in the positive half excitation cycle is calculated according to formula (4a).
[0024] Preferably, the interpolation processing of the amplitude sequence includes:
[0025] Perform cubic spline interpolation on the amplitude sequence; or, perform linear interpolation on the amplitude sequence; or, perform polynomial interpolation on the amplitude sequence.
[0026] In a second aspect, the present invention provides a system for extracting a polarization voltage signal of an electromagnetic flowmeter, comprising:
[0027] A signal acquisition module, used to acquire the electrode output signal output by the electromagnetic flowmeter through the signal acquisition circuit within a period of time when measuring the flow of conductive liquid;
[0028] The amplitude calculation module is used to select a complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle within a period of time in a time sequence, and calculate the amplitude of the polarization voltage signal of the excitation current stable segment of the positive half excitation cycle; select a complete excitation cycle signal consisting of a negative half excitation cycle and a positive half excitation cycle in a time sequence, and calculate the amplitude of the polarization voltage signal of the excitation current stable segment of the negative half excitation cycle; add the amplitude of the polarization voltage signal of the excitation current stable segment of the positive half excitation cycle and the amplitude of the polarization voltage signal of the excitation current stable segment of the negative half excitation cycle, and then take the average value to obtain the amplitude of the polarization voltage signal of the excitation current stable segment of an excitation cycle; and so on, each time sliding back by half the length of the excitation cycle signal, calculate the amplitude of the polarization voltage signal of each excitation current stable segment, and form an amplitude sequence in time sequence;
[0029] The interpolation module is used to perform interpolation processing on the amplitude sequence so that the length of the interpolated amplitude sequence is equal to the length of the electrode output signal after discretization. The interpolated amplitude sequence is the polarization voltage signal curve of the electrode output signal.
[0030] Preferably, the method of selecting a complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle within a period of time in chronological order and calculating the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle includes:
[0031] The expression of the electrode output signal in the stable section of the excitation current in the positive half excitation cycle is:
[0032] Ep=BvD+e zp +e np (1a)
[0033] The expression of the electrode output signal in the stable section of the excitation current in the negative half excitation cycle is:
[0034] En=-BvD+e zn +e nn (2a)
[0035] Among them, Ep represents the output signal of the electrode in the stable section of the excitation current in the positive half cycle, e zp It represents the polarization voltage signal in the stable section of the excitation current in the positive half cycle, e np represents the Gaussian noise signal in the stable section of the excitation current in the positive half cycle, En represents the electrode output signal in the stable section of the excitation current in the negative half cycle, and e zn represents the polarization voltage signal in the stable section of the excitation current in the negative half cycle, e nn Represents the Gaussian noise signal in the stable section of the excitation current in the negative half cycle;
[0036] Adding equation (1a) and equation (2a), the result is expressed as equation (3a):
[0037] Ep+En=e zp +e np +e zn +e nn (3a)
[0038] Since an excitation cycle lasts only tens to hundreds of milliseconds, according to the slow-changing characteristics of the polarization voltage, e zp Approximately equal to e zn , e np and e nn All of them obey the Gaussian distribution with a mean of zero, so we get formula (4a):
[0039] mean(Ep+En)=2*e zp(4a)
[0040] The amplitude of the polarization voltage signal in the stable segment of the excitation current in the positive half excitation cycle is calculated according to formula (4a).
[0041] Preferably, the interpolation processing of the amplitude sequence includes:
[0042] Perform cubic spline interpolation on the amplitude sequence; or, perform linear interpolation on the amplitude sequence; or, perform polynomial interpolation on the amplitude sequence.
[0043] In a third aspect, the present invention provides a computer-readable storage medium storing a computer program for extracting a polarization voltage signal of an electromagnetic flowmeter, wherein the computer program enables a computer to execute the method for extracting a polarization voltage signal of an electromagnetic flowmeter as described above.
[0044] In a fourth aspect, the present invention provides an electronic device, comprising:
[0045] One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the programs include a method for extracting the polarization voltage signal of the electromagnetic flowmeter as described above.
[0046] (III) Beneficial effects
[0047] The present invention provides a method and system for extracting polarization voltage signals of an electromagnetic flowmeter. Compared with the prior art, the present invention has the following beneficial effects:
[0048] In order to solve the problem of random drift and non-quantitative description of polarization voltage signals, the present invention effectively extracts the polarization voltage signal from the electrode output signal of the electromagnetic flowmeter, making up for the lack of a method for extracting polarization voltage signals in the prior art, and providing a reference for studying the characteristics of polarization voltage signals, studying methods for suppressing polarization voltage signals, and simulating the electrode output signal of the electromagnetic flowmeter. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 It is a block diagram of a method for extracting polarization voltage signals of an electromagnetic flowmeter according to an embodiment of the present invention;
[0051] Figure 2It is a schematic diagram of the excitation current curve and induced potential signal curve of the electromagnetic flowmeter using square wave excitation;
[0052] Figure 3 It is a schematic diagram of the signal waveform output by the electromagnetic flowmeter electrode;
[0053] Figure 4 It is a schematic diagram of the signal waveform details of the electromagnetic flowmeter electrode output;
[0054] Figure 5 is the extracted polarization voltage signal curve;
[0055] Figure 6 It is the electrode output signal curve after removing the polarization voltage signal. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are 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.
[0057] The embodiments of the present application provide a method and system for extracting the polarization voltage signal of an electromagnetic flowmeter, thereby filling the gap in the prior art in that there is no method for extracting the polarization voltage signal, and effectively extracting the polarization voltage signal from the electrode output signal of the electromagnetic flowmeter, providing a reference for studying the characteristics of the polarization voltage signal, studying the method for suppressing the polarization voltage signal, and simulating the electrode output signal of the electromagnetic flowmeter.
[0058] The technical solution in the embodiment of the present application is to solve the above technical problems, and the overall idea is as follows:
[0059] The polarization voltage signal is an unavoidable interference signal in the measurement of the electromagnetic flowmeter. It is an interference signal that must be considered when designing the signal conditioning circuit of the electromagnetic flowmeter and must be overcome when studying the measurement algorithm. The polarization voltage signal is a random signal with low-frequency drift and cannot be described quantitatively. In order to have an intuitive understanding of the polarization voltage, to provide a reference for studying the characteristics of the polarization voltage signal, studying the suppression method of the polarization voltage signal and simulating the output signal of the electrode of the electromagnetic flowmeter, the embodiment of the present invention proposes a method for extracting the polarization voltage signal of the electromagnetic flowmeter based on square wave excitation. The method for extracting the polarization voltage signal is based on the slow-changing characteristics of the polarization voltage signal, that is, the amplitude of the polarization voltage signal within an excitation cycle can be considered to be approximately equal. When the electromagnetic flowmeter is measuring, the signal output by the electrode contains an induced potential signal, a differential interference signal, a series mode interference, a common mode interference, a polarization voltage signal and a Gaussian noise signal. After the signal conditioning circuit, the series mode interference and the common mode interference are effectively suppressed. The differential interference signal is mainly distributed in the rising section of the excitation current. The induced potential signal has the best signal-to-noise ratio in the stable section of the excitation current. The polarization voltage signal is a randomly drifting signal with a large signal amplitude, which is distributed throughout each excitation cycle. The amplitude of the Gaussian noise signal is very small, and like the polarization voltage signal, it is distributed throughout each excitation cycle. The magnitude of the polarization voltage signal of the stable segment of the excitation current of an excitation cycle is equal to the sum of the signal of the stable segment of the positive half cycle of the excitation current and the signal of the stable segment of the negative half cycle of the excitation current in this excitation cycle and the average value. According to the method of calculating the amplitude of the polarization voltage signal of the stable segment of the excitation current of an excitation cycle, the amplitude of the polarization voltage signal of the stable segment of the excitation current of all excitation cycles can be calculated by analogy. The polarization voltage signal exists not only in the stable segment of the excitation current, but also in the rising segment of the excitation current. Therefore, the polarization voltage signal amplitude of the calculated stable segment of the excitation current is used as a sample, and cubic spline interpolation is performed on it to calculate the polarization voltage signal of the electrode output signal of the electromagnetic flowmeter sensor. The amplitudes of the polarization voltage signals of the excitation current stable segments of all excitation cycles are calculated to form an amplitude sequence in time order, and the composed amplitude sequence is interpolated by cubic spline, so that the length of the interpolated amplitude sequence is equal to the length of the amplitude of the electrode output signal after discretization. In this way, the curve of the polarization voltage signal of the electrode output signal is obtained.
[0060] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0061] An embodiment of the present invention provides a method for extracting a polarization voltage signal of an electromagnetic flowmeter, the extraction method comprising:
[0062] S1, obtaining the electrode output signal output by the signal acquisition circuit of the electromagnetic flowmeter during a period of time when measuring the flow rate of the conductive liquid;
[0063] S2. Select a complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle within a period of time in chronological order, and calculate the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle; select a complete excitation cycle signal consisting of a negative half excitation cycle and a positive half excitation cycle in chronological order, and calculate the polarization voltage signal amplitude of the excitation current stable segment of the negative half excitation cycle; add the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle and the polarization voltage signal amplitude of the excitation current stable segment of the negative half excitation cycle, and then take the average value to obtain the amplitude of the polarization voltage signal of the excitation current stable segment of an excitation cycle; and so on, slide back half the length of the excitation cycle signal each time, calculate the amplitude of the polarization voltage signal of each excitation current stable segment, and form an amplitude sequence in chronological order;
[0064] S3. Interpolate the amplitude sequence so that the length of the interpolated amplitude sequence is equal to the length of the electrode output signal after discretization, and the interpolated amplitude sequence is a polarization voltage signal curve of the electrode output signal.
[0065] In order to solve the problem of random drift and non-quantitative description of polarization voltage signals, the embodiments of the present invention can effectively extract polarization voltage signals from the output signals of electromagnetic flowmeter electrodes, thus filling the gap that there is no method for extracting polarization voltage signals in the prior art, and providing a reference for studying the characteristics of polarization voltage signals, studying the method for suppressing polarization voltage signals and simulating the output signals of electromagnetic flowmeter electrodes.
[0066] Before describing each step in detail, the excitation current curve and induced potential signal curve of the electromagnetic flowmeter are explained:
[0067] Figure 2 The excitation current curve and induced potential signal curve of the electromagnetic flowmeter using square wave excitation are shown in the figure below. The waveform of the induced potential signal of the electromagnetic flowmeter is determined by the waveform of the excitation current. When the flow rate of the conductive liquid flowing through the sensor pipe remains unchanged, the excitation current curve and induced potential signal curve of the electromagnetic flowmeter using square wave excitation are shown in the figure below. Figure 2 As shown in the figure, the figure contains the excitation current curves and induced potential signal curves of two complete excitation cycles. Square wave excitation is a realization of AC excitation. Each excitation cycle of square wave excitation consists of a positive half excitation cycle and a negative half excitation cycle. The excitation current curves of the positive half excitation cycle and the negative half excitation cycle have the same change process except that the polarity is opposite. Since the excitation current cannot change suddenly, the excitation current includes a rising section and a stable section regardless of the positive half excitation cycle or the negative half excitation cycle, as shown in Figure 1. Figure 2 t in r and t sThe electromagnetic flowmeter is measured in the stable section of the excitation current, because in the stable section of the excitation current, the signal-to-noise ratio of the induced potential signal in the electrode output signal is the best.
[0068] The following is a detailed description of each step:
[0069] In one embodiment, S1, obtaining the electrode output signal output by the signal acquisition circuit of the electromagnetic flowmeter during a period of time when measuring the flow of the conductive liquid. Specifically includes:
[0070] In the embodiment of the present invention, in order to more intuitively understand the signal output by the electrode of the electromagnetic flowmeter, the actual signal is combined for observation and analysis. The signal of a period of 450 seconds is collected and saved. The signal is output by the signal acquisition circuit of the electromagnetic flowmeter under a fixed flow rate. The saved electrode output signal is plotted without any processing. The time domain diagram of the electrode output signal under a fixed flow rate is as follows: Figure 3 It should be noted that, in the specific implementation process, the signal in the non-fixed flow rate state can also be used as the signal for observation and analysis. In the embodiment of the present invention, the electrode output signal in the fixed flow rate state is used as the material for detailed description.
[0071] When the electromagnetic flowmeter is actually used, in addition to the induced potential signal which is proportional to the flow rate, the signal output by the electrode also contains differential interference signals, cross-mode interference, common mode interference, polarization voltage signals and Gaussian noise signals, which can be expressed by formula (1).
[0072]
[0073] Wherein, E represents the signal output by the electrode, B represents the magnetic field strength in the sensor pipe, v represents the flow rate of the conductive liquid in the sensor pipe, D represents the diameter of the sensor pipe, and BvD represents the induced potential signal proportional to the flow rate. represents the differential interference signal, e c represents the common mode interference signal, e d Indicates the cross-mode interference signal, e z represents the polarization voltage signal, e nRepresents Gaussian noise signal. Differential interference signals mainly exist in the rising section of the excitation current, while the electromagnetic flowmeter mainly uses the induced potential signal in the stable section of the excitation current. Therefore, the electromagnetic flowmeter can avoid the influence of differential interference signals on the measurement. Common-mode interference signals and series-mode interference signals can be effectively suppressed by adopting signal conditioning circuits designed with differential and high common-mode rejection ratio amplifier circuits and good grounding. The polarization voltage signal is a low-frequency drift interference signal. Its amplitude is much larger than the induced potential signal related to the flow rate. Its frequency is also very close to the excitation frequency of the electromagnetic flowmeter, which is only a few hertz to more than ten hertz. It is difficult to separate it from the induced potential signal through hardware circuits, which seriously affects the extraction of the induced potential signal. Gaussian noise is a random noise with a zero-mean Gaussian distribution in amplitude. Multiple signal points can be collected in the stable section of the excitation current, and then the average of multiple signal points can be taken for effective suppression.
[0074] In one embodiment, S2, select a complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle within a period of time in time sequence, and calculate the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle; select a complete excitation cycle signal consisting of a negative half excitation cycle and a positive half excitation cycle in time sequence, and calculate the polarization voltage signal amplitude of the excitation current stable segment of the negative half excitation cycle; add the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle and the polarization voltage signal amplitude of the excitation current stable segment of the negative half excitation cycle, and then take the average value to obtain the amplitude of the polarization voltage signal of the excitation current stable segment of an excitation cycle; and so on, each time sliding back half the length of the excitation cycle signal, calculate the amplitude of the polarization voltage signal of each excitation current stable segment, and form an amplitude sequence in time sequence. Specifically including:
[0075] In one excitation cycle, first calculate the average value of the output signal of the electrode in the stable segment of the excitation current in the positive half cycle of the excitation current; then calculate the average value of the output signal of the electrode in the stable segment of the excitation current in the negative half cycle of the excitation current; then, average the two calculated average values; finally, the magnitude of the polarization voltage signal output by the electrode in one excitation cycle can be obtained. The magnitude of the polarization voltage calculated from a complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle is called the amplitude of the polarization voltage signal in the stable segment of the excitation current in the positive half excitation cycle. The magnitude of the polarization voltage calculated from a complete excitation cycle signal consisting of a negative half excitation cycle and a positive half excitation cycle is called the amplitude of the polarization voltage signal in the stable segment of the excitation current in the negative half excitation cycle. Similarly, each time the length of the half excitation cycle signal is slid backward, the amplitude of the polarization voltage signal in each stable segment of the excitation current is calculated, and an amplitude sequence is formed in chronological order.
[0076] Figure 4This is a schematic diagram of the signal waveform details of the electromagnetic flowmeter electrode output. Figure 3 The induced potential signal containing two complete excitation cycles is obtained by local amplification. The details of the electrode output time domain signal are shown in the figure below. Figure 4 As shown. Figure 4 It is obvious to observe the differential interference signal and induced potential signal in the electrode output signal. In the rising section of the excitation current, the electrode output signal is mainly the differential interference; in the stable section of the excitation current, the electrode output signal is mainly the induced potential signal. The amplitude of the Gaussian noise signal is very small and is distributed throughout each excitation cycle. Figure 4 The polarization voltage signal cannot be clearly seen because, compared with the induced potential signal, the polarization voltage signal is a slow-changing signal and no obvious changes can be seen in a short period of time. Figure 3 It can be clearly seen that there is a polarization voltage signal in the electrode output signal, which drifts randomly with the induced potential signal. If the electromagnetic flowmeter detects that the signal amplitude entering the signal conditioning circuit is too large, it will compensate the electrode output signal in time to ensure that the electrode output signal does not saturate the amplifier in the signal conditioning circuit.
[0077] exist Figure 4 In the figure, the signal of a complete excitation cycle consisting of the positive half excitation cycle where the dotted box a is located and the negative half excitation cycle where the dotted box b is located can be used to calculate the amplitude of the polarization voltage signal of the stable segment of the positive half excitation cycle where the dotted box a is located. The signal of a complete excitation cycle consisting of the negative half excitation cycle where the dotted box b is located and the positive half excitation cycle where the dotted box c is located can be used to calculate the amplitude of the polarization voltage signal of the stable segment of the negative half excitation cycle where the dotted box b is located. The method for calculating the amplitude of the polarization voltage signal of the stable segment of the excitation current of the positive half excitation cycle where the dotted box a is located is as follows.
[0078] The signal of the electrode output signal in the excitation current stable section of the positive half excitation cycle can be expressed by equation (2). The signal of the electrode output signal in the excitation current stable section of the negative half cycle can be expressed by equation (3).
[0079] Ep=BvD+e zp +e np (2)
[0080] En=-BvD+e zn +e nn (3)
[0081] Among them, Ep represents the output signal of the electrode in the stable section of the excitation current in the positive half cycle, e zp It represents the polarization voltage signal in the stable section of the excitation current in the positive half cycle, e nprepresents the Gaussian noise signal in the stable section of the excitation current in the positive half cycle, En represents the electrode output signal in the stable section of the excitation current in the negative half cycle, and e zn represents the polarization voltage signal in the stable section of the excitation current in the negative half cycle, e nn represents the Gaussian noise signal in the stable section of the excitation current in the negative half cycle. Adding equation (2) and equation (3), the result is expressed as equation (4):
[0082] Ep+En=e zp +e np +e zn +e nn (4)
[0083] Since an excitation cycle lasts only tens to hundreds of milliseconds, according to the slow-changing characteristics of the polarization voltage, e zp can be approximately equal to e zn , e np and e nn All of them obey the Gaussian distribution with a mean of zero, then we can get formula (5).
[0084] mean(Ep+En)=2*e zp (5)
[0085] According to formula (5), the amplitude of the polarization voltage signal of the excitation current stable segment of the positive half excitation cycle where the dotted box a is located can be calculated, which is equal to the average value of the electrode output signal of the excitation current stable segment of the positive half excitation cycle where the dotted box a is located and the electrode output signal of the excitation current stable segment of the negative half excitation cycle where the dotted box b is located. Similarly, the amplitude of the polarization voltage signal of the excitation current stable segment of the negative half excitation cycle where the dotted box b is located can be calculated.
[0086] Therefore, the magnitude of the polarization voltage signal in the stable segment of the excitation current in an excitation cycle is equal to the sum of the signal of the stable segment of the positive half-cycle of the excitation current and the signal of the stable segment of the negative half-cycle of the excitation current in this excitation cycle and the average value thereof.
[0087] Then calculate the amplitude of the polarization voltage signal of the excitation current stable section of all excitation cycles. According to the method of calculating the amplitude of the polarization voltage signal of the excitation current stable section of one excitation cycle, the amplitude of the polarization voltage signal of the excitation current stable section of all excitation cycles can be calculated by analogy.
[0088] In one embodiment, S3, interpolation processing is performed on the amplitude sequence, so that the length of the interpolated amplitude sequence is equal to the length of the electrode output signal after discretization, and the interpolated amplitude sequence is a polarization voltage signal curve of the electrode output signal. Specifically including:
[0089] The polarization voltage signal exists not only in the stable section of the excitation current, but also in the rising section of the excitation current. Therefore, the polarization voltage signal amplitude of the calculated stable section of the excitation current is used as a sample, and cubic spline interpolation is performed on it to calculate the polarization voltage signal of the electrode output signal of the electromagnetic flowmeter sensor. The amplitudes of the polarization voltage signals of the stable section of the excitation current of all excitation cycles calculated are combined into an amplitude sequence in time order, and cubic spline interpolation is performed on the composed amplitude sequence so that the length of the interpolated amplitude sequence is equal to the length of the amplitude of the electrode output signal after discretization. In this way, the curve of the polarization voltage signal of the electrode output signal is obtained. It should be noted that in the specific implementation process, the interpolation processing method also includes linear interpolation, polynomial interpolation and other methods.
[0090] Figure 5 is the extracted polarization voltage signal curve. The calculation method of polarization voltage signal based on cubic spline interpolation is used to extract Figure 3 The electrode output signal in the figure, the extracted polarization voltage signal curve is as follows Figure 5 As shown, it can be seen that the variation trend of the extracted polarization voltage signal curve is consistent with the variation trend of the signal output by the sensor electrode.
[0091] Figure 6 is the electrode output signal curve after the polarization voltage signal is removed. If the polarization voltage signal in the sensor electrode output signal is removed, the electrode output signal after the polarization voltage signal is removed is as follows: Figure 6 As shown. It can be seen that the electrode output signal after removing the polarization voltage signal is evenly distributed on both sides of the straight line with an amplitude of 0. Therefore, the proposed calculation method of the polarization voltage signal based on cubic spline interpolation can effectively extract the polarization voltage signal from the electrode output signal of the electromagnetic flowmeter sensor.
[0092] The embodiment of the present invention further provides a system for extracting polarization voltage signals of an electromagnetic flowmeter, comprising:
[0093] A signal acquisition module, used to acquire the electrode output signal output by the electromagnetic flowmeter through the signal acquisition circuit within a period of time when measuring the flow of conductive liquid;
[0094] The amplitude calculation module is used to select a complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle within a period of time in a time sequence, and calculate the amplitude of the polarization voltage signal of the excitation current stable segment of the positive half excitation cycle; select a complete excitation cycle signal consisting of a negative half excitation cycle and a positive half excitation cycle in a time sequence, and calculate the amplitude of the polarization voltage signal of the excitation current stable segment of the negative half excitation cycle; add the amplitude of the polarization voltage signal of the excitation current stable segment of the positive half excitation cycle and the amplitude of the polarization voltage signal of the excitation current stable segment of the negative half excitation cycle, and then take the average value to obtain the amplitude of the polarization voltage signal of the excitation current stable segment of an excitation cycle; and so on, each time sliding back by half the length of the excitation cycle signal, calculate the amplitude of the polarization voltage signal of each excitation current stable segment, and form an amplitude sequence in time sequence;
[0095] The interpolation module is used to perform interpolation processing on the amplitude sequence so that the length of the interpolated amplitude sequence is equal to the length of the electrode output signal after discretization. The interpolated amplitude sequence is the polarization voltage signal curve of the electrode output signal.
[0096] It is understandable that the system for extracting the polarization voltage signal of the electromagnetic flowmeter provided in the embodiment of the present invention corresponds to the method for extracting the polarization voltage signal of the electromagnetic flowmeter mentioned above. The explanations, examples, beneficial effects and other parts of the relevant contents can refer to the corresponding contents in the method for extracting the polarization voltage signal of the electromagnetic flowmeter, and will not be repeated here.
[0097] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program for extracting a polarization voltage signal of an electromagnetic flowmeter, wherein the computer program enables a computer to execute the method for extracting a polarization voltage signal of an electromagnetic flowmeter as described above.
[0098] An embodiment of the present invention also provides an electronic device, comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the program includes a method for extracting the polarization voltage signal of the electromagnetic flowmeter as described above.
[0099] In summary, compared with the prior art, the present invention has the following beneficial effects:
[0100] In order to solve the problem of random drift and non-quantitative description of polarization voltage signals, the embodiments of the present invention can effectively extract polarization voltage signals from the output signals of electromagnetic flowmeter electrodes, thus filling the gap that there is no method for extracting polarization voltage signals in the prior art, and providing a reference for studying the characteristics of polarization voltage signals, studying the method for suppressing polarization voltage signals and simulating the output signals of electromagnetic flowmeter electrodes.
[0101] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0102] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for extracting polarization voltage signals of an electromagnetic flowmeter, characterized in that: include: Acquire the electrode output signal output by the signal acquisition circuit of the electromagnetic flowmeter during a period of time when measuring the flow of the conductive liquid; A complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle within a period of time is selected in time sequence, and the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle is calculated; a complete excitation cycle signal consisting of a negative half excitation cycle and a positive half excitation cycle is selected in time sequence, and the polarization voltage signal amplitude of the excitation current stable segment of the negative half excitation cycle is calculated; the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle is added to the polarization voltage signal amplitude of the excitation current stable segment of the negative half excitation cycle, and then the average value is taken to obtain the amplitude of the polarization voltage signal of the excitation current stable segment of an excitation cycle; and so on, each time sliding back by half the length of the excitation cycle signal, the amplitude of the polarization voltage signal of each excitation current stable segment is calculated, and an amplitude sequence is formed in time sequence; The amplitude sequence is interpolated so that the length of the interpolated amplitude sequence is equal to the length of the electrode output signal after discretization. The interpolated amplitude sequence is a polarization voltage signal curve of the electrode output signal.
2. The method for extracting the polarization voltage signal of an electromagnetic flowmeter according to claim 1, characterized in that: The method of selecting a complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle within a period of time in a time sequence and calculating the polarization voltage signal amplitude of the excitation current stable section of the positive half excitation cycle includes: The expression of the electrode output signal in the stable section of the excitation current in the positive half excitation cycle is: Ep6BvD+e zp +e np (1a) The expression of the electrode output signal in the stable section of the excitation current in the negative half excitation cycle is: En=-BvD+e zn +e nn (2nd) Among them, Ep represents the output signal of the electrode in the stable section of the excitation current in the positive half cycle, e zp It represents the polarization voltage signal in the stable section of the excitation current in the positive half cycle, e np represents the Gaussian noise signal in the stable section of the excitation current in the positive half cycle, En represents the electrode output signal in the stable section of the excitation current in the negative half cycle, and e zn represents the polarization voltage signal in the stable section of the excitation current in the negative half cycle, e nn Represents the Gaussian noise signal in the stable section of the excitation current in the negative half cycle; Adding equation (1a) and equation (2a), the result is expressed as equation (3a): Ep+En=e zp +e np +e zn +e nn (3a) Since an excitation cycle lasts only tens to hundreds of milliseconds, according to the slow-changing characteristics of the polarization voltage, e zp Approximately equal to e zn , e np and e nn All of them obey the Gaussian distribution with a mean of zero, so we get formula (4a): mean(Ep+En)=2*e zp (4a) The amplitude of the polarization voltage signal in the stable segment of the excitation current in the positive half excitation cycle is calculated according to formula (4a).
3. The method for extracting the polarization voltage signal of an electromagnetic flowmeter according to claim 1 or 2, characterized in that: The interpolation processing of the amplitude sequence comprises: Perform cubic spline interpolation on the amplitude sequence; or, perform linear interpolation on the amplitude sequence; or, perform polynomial interpolation on the amplitude sequence.
4. A system for extracting polarization voltage signals of an electromagnetic flowmeter, characterized in that: include: A signal acquisition module, used to acquire the electrode output signal output by the electromagnetic flowmeter through the signal acquisition circuit within a period of time when measuring the flow of conductive liquid; The amplitude calculation module is used to select a complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle within a period of time in a time sequence, and calculate the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle; select a complete excitation cycle signal consisting of a negative half excitation cycle and a positive half excitation cycle in a time sequence, and calculate the polarization voltage signal amplitude of the excitation current stable segment of the negative half excitation cycle; add the polarization voltage signal amplitude of the excitation current stable segment of the positive half excitation cycle and the polarization voltage signal amplitude of the excitation current stable segment of the negative half excitation cycle, and then take the average value to obtain the amplitude of the polarization voltage signal of the excitation current stable segment of an excitation cycle; and so on, each time sliding back half the length of the excitation cycle signal, calculate the amplitude of the polarization voltage signal of each excitation current stable segment, and form an amplitude sequence in time sequence; The interpolation module is used to perform interpolation processing on the amplitude sequence so that the length of the interpolated amplitude sequence is equal to the length of the electrode output signal after discretization. The interpolated amplitude sequence is the polarization voltage signal curve of the electrode output signal.
5. The system for extracting polarization voltage signals of an electromagnetic flowmeter according to claim 4, characterized in that: The method of selecting a complete excitation cycle signal consisting of a positive half excitation cycle and a negative half excitation cycle within a period of time in a time sequence and calculating the polarization voltage signal amplitude of the excitation current stable section of the positive half excitation cycle includes: The expression of the electrode output signal in the stable section of the excitation current in the positive half excitation cycle is: Ep6BvD+e zp +e np (1a) The expression of the electrode output signal in the stable section of the excitation current in the negative half excitation cycle is: En=-BvD+e zn +e nn (2nd) Among them, Ep represents the output signal of the electrode in the stable section of the excitation current in the positive half cycle, e zp It represents the polarization voltage signal in the stable section of the excitation current in the positive half cycle, e np represents the Gaussian noise signal in the stable section of the excitation current in the positive half cycle, En represents the electrode output signal in the stable section of the excitation current in the negative half cycle, and e zn represents the polarization voltage signal in the stable section of the excitation current in the negative half cycle, e nn Represents the Gaussian noise signal in the stable section of the excitation current in the negative half cycle; Adding equation (1a) and equation (2a), the result is expressed as equation (3a): Ep+En=e zp +e np +e zn +e nn (3a) Since an excitation cycle lasts only tens to hundreds of milliseconds, according to the slow-changing characteristics of the polarization voltage, e zp Approximately equal to e zn , e np and e nn All of them obey the Gaussian distribution with a mean of zero, so we get formula (4a): mean(Ep+En)=2*e zp (4a) The amplitude of the polarization voltage signal in the stable segment of the excitation current in the positive half excitation cycle is calculated according to formula (4a).
6. The system for extracting polarization voltage signals of an electromagnetic flowmeter according to claim 4 or 5, characterized in that: The interpolation processing of the amplitude sequence comprises: Perform cubic spline interpolation on the amplitude sequence; or, perform linear interpolation on the amplitude sequence; or, perform polynomial interpolation on the amplitude sequence.
7. A computer-readable storage medium, characterized in that: It stores a computer program for extracting polarization voltage signals of an electromagnetic flowmeter, wherein the computer program enables a computer to execute the method for extracting polarization voltage signals of an electromagnetic flowmeter as claimed in any one of claims 1 to 3.
8. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the programs include a method for executing the extraction method of the polarization voltage signal of the electromagnetic flowmeter as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Constantly magnetic type electromagnetic flowmeter
CN105547384A
Electromagnetic water meter transmitter based on intermittent excitation and digital signal processing
CN109186698A
Electromagnetic flowmeter system based on double-frequency excitation and signal extraction method
CN109781195A
Electromagnetic flowmeter system based on dynamic offset compensation and measuring method
CN113188615A
Laser radar ranging method based on pulse position modulation technology and ranging system thereof
CN115877394A
