Signal processing method and device and electronic equipment
By correcting the bias voltage, peak noise cancellation and filtering processing of the electromagnetic flow monitoring device, combined with cross-correlation technology, the measurement inaccuracy problem caused by noise interference is solved, and the accuracy of fluid characteristic measurement is improved.
Patent Information
- Application Number
- CN202510763735.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2045-06-06
AI Technical Summary
In industrial production or complex working conditions, the measurement results of electromagnetic flow monitoring equipment are disturbed by noise, which affects the measurement accuracy.
By correcting the bias voltage of the original voltage information of the electromagnetic flow monitoring device at different sampling points, identifying and eliminating spike noise, performing filtering, and then performing cross-correlation processing when the cross-correlation processing conditions are met to extract effective voltage information.
It effectively suppresses noise interference and improves the accuracy of measurement results of electromagnetic flow monitoring equipment, especially the measurement accuracy of fluid characteristics.
Smart Images

Figure CN120274838A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing technology, and in particular to a signal processing method, device and electronic device. Background Art
[0002] Electromagnetic flow monitoring equipment, such as electromagnetic flowmeter, refers to a flow measurement device based on the law of electromagnetic induction, which can be used to obtain fluid characteristic information such as flow velocity and flow rate of the fluid flowing through the device. Electromagnetic flow monitoring equipment usually has advantages such as no mechanical parts, corrosion resistance and high precision, so it can be widely used in industrial and civil fields to measure the flow of the measured object such as conductive liquid.
[0003] In practical applications, especially in industrial production or complex working conditions, various noise interferences are often encountered. These noises will be mixed into the measurement signal of the electromagnetic flow monitoring equipment, thereby affecting the accuracy of the measurement results output by the electromagnetic flow monitoring equipment. Therefore, how to effectively suppress noise interference to improve the accuracy of the measurement results output by the electromagnetic flow monitoring equipment is a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, the present application provides a signal processing method, device and electronic device to improve the accuracy of the measurement results output by the electromagnetic flow monitoring equipment.
[0005] The present application provides a signal processing method, which is applied to an electromagnetic flow monitoring device. The method includes: The original voltage information of the measured object collected by the electromagnetic flow monitoring device at different sampling points is subjected to bias voltage correction, so that the voltage information corresponding to each sampling point under the first group of sampling points and the voltage information corresponding to each sampling point under the second group of sampling points in the same sampling period are symmetrically distributed based on the preset baseline voltage center; the first group of sampling points includes the sampling points in the upper half of the sampling period, and the second group of sampling points includes the sampling points in the lower half of the sampling period; Identify abnormal sampling points with spike noise from the different sampling points, and perform spike interference elimination processing on voltage information at each abnormal sampling point; The voltage information at each abnormal sampling point and the voltage information at normal sampling points other than the abnormal sampling points are filtered to obtain the voltage information corresponding to each target sampling point; the voltage information at each target sampling point matches the output signal characteristics of the electromagnetic flow monitoring device; When it is determined that the current total sampling duration meets the preset cross-correlation processing condition, perform cross-correlation processing on the voltage information corresponding to the target sampling points within the set range and the standard voltage signal currently matched by the electromagnetic flow monitoring device, so as to obtain effective voltage information from the voltage information corresponding to the target sampling points within the set range based on the cross-correlation result; the effective voltage information is used to determine the fluid characteristics of the object under test.
[0006] An embodiment of the present application further provides a signal processing device, which is applied to an electromagnetic flow monitoring device. The device includes: A correction module, configured to correct the offset voltage of the original voltage information of the object under test collected by the electromagnetic flow monitoring device at each different sampling point, so that the voltage information corresponding to each sampling point in the first group of sampling points and the voltage information corresponding to each sampling point in the second group of sampling points within the same sampling period are symmetrically distributed around the preset baseline voltage center; the first group of sampling points includes the sampling points in the upper half period of the sampling period, and the second group of sampling points includes the sampling points in the lower half period of the sampling period; An elimination module, configured to identify abnormal sampling points with spike noise from the different sampling points, and perform spike interference elimination processing on the voltage information at each abnormal sampling point; A filtering module, configured to filter the voltage information at each abnormal sampling point and the voltage information at normal sampling points other than each abnormal sampling point, so as to obtain the voltage information corresponding to each target sampling point; the voltage information at each target sampling point matches the output signal characteristics of the electromagnetic flow monitoring device; A cross-correlation module, configured to perform cross-correlation processing on the voltage information corresponding to the target sampling points within the set range and the standard voltage signal currently matched by the electromagnetic flow monitoring device when it is determined that the current total sampling duration meets the preset cross-correlation processing condition, so as to obtain effective voltage information from the voltage information corresponding to the target sampling points within the set range based on the cross-correlation result; the effective voltage information is used to determine the fluid characteristics of the object under test.
[0007] An embodiment of the present application further provides an electronic device, which includes: A processor; and A computer-readable storage medium, in which computer program instructions are stored. When the computer program instructions are run by the processor, the processor executes the steps of the above method.
[0008] An embodiment of the present application further provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are run by the processor, the processor executes the steps in the above method.
[0009] As can be seen from the above technical solutions, in the embodiments of the present application, when obtaining the original voltage information of the object under test collected by the electromagnetic flow monitoring device at different sampling points, the original voltage information at different sampling points is corrected for the offset voltage to eliminate the voltage offset interference, and the abnormal sampling points with spike noise are identified from different sampling points to eliminate the spike interference. Then, the voltage information at different sampling points is filtered to eliminate the noise interference information other than the voltage information that matches the output signal characteristics of the electromagnetic flow monitoring device, that is, the voltage information corresponding to each target sampling point. Based on this, when it is determined that the preset cross-correlation processing conditions are currently met, the voltage information corresponding to the target sampling points within the set range and the standard voltage signal are cross-correlated to extract the effective voltage information for measuring the fluid characteristics of the object under test. In this way, a large amount of noise interference in the collected original voltage information is effectively suppressed, and the accuracy of the measurement result output by the electromagnetic flow monitoring device, that is, the above-mentioned fluid characteristics, is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings herein are incorporated into the specification and form a part of this application, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application.
[0011] Figure 1 It is a schematic flowchart of the method provided by the embodiments of the present application.
[0012] Figure 2 It is a schematic diagram of the signal before the offset voltage correction provided by the embodiments of the present application.
[0013] Figure 3 It is a schematic diagram of the signal after the offset voltage correction provided by the embodiments of the present application.
[0014] Figure 4 It is a schematic diagram for realizing the filtering convergence effect provided by the embodiments of the present application.
[0015] Figure 5 It is a schematic diagram of the device structure provided by the embodiments of the present application.
[0016] Figure 6 It is a schematic diagram of the electronic device structure provided by the embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0017] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application and make the above objects, features, and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0018] See Figure 1 , Figure 1The flowchart of the method provided by the embodiments of this application. This method is applied to electromagnetic flow monitoring devices. In this embodiment, as an example, the electromagnetic flow monitoring device can be a measuring device such as an electromagnetic flowmeter, and this embodiment does not specifically limit this.
[0019] As Figure 1 shown, this process may include the following steps: Step 101, perform offset voltage correction on the original voltage information of the measured object collected by the electromagnetic flow monitoring device at different sampling points, so that the voltage information corresponding to each sampling point under the first set of sampling points and the voltage information corresponding to each sampling point under the second set of sampling points within the same sampling period are symmetrically distributed about the preset baseline voltage center; the first set of sampling points includes the sampling points in the first half cycle of the sampling period, and the second set of sampling points includes the sampling points in the second half cycle of the sampling period.
[0020] In this embodiment, the triggering timing for triggering the offset voltage correction is not specifically limited. For example, as an example, the triggering timing can be when the electromagnetic flow monitoring device collects the original voltage information of a set number of sampling periods; based on this, the original voltage information collected at different sampling points in this step can refer to the original voltage information of the set number of sampling periods. Optionally, the set number can be 1, 2, or 3, etc., and this is not specifically limited here.
[0021] In practical applications, due to external interferences such as physical circuit connections in the electromagnetic flow monitoring device, the original voltage information of the measured object collected by the electromagnetic flow monitoring device will have an offset voltage phenomenon, and the occurrence of the offset voltage phenomenon will affect the accuracy of the measurement results output by the electromagnetic flow monitoring device. The offset voltage phenomenon can refer to the fact that the voltage information corresponding to the sampling points in the first half cycle within the same sampling period and the voltage information corresponding to the sampling points in the second half cycle are not symmetrically distributed about the preset baseline voltage center, that is to say, the baseline voltage based on which the central symmetry distribution is made is not the preset baseline voltage. Optionally, the preset baseline voltage here can be 0V, and this embodiment does not specifically limit it.
[0022] Based on this, in order to avoid the influence of the offset voltage phenomenon on the measurement of the electromagnetic flow monitoring device, when the electromagnetic flow monitoring device obtains the original voltage information of the measured object collected at different sampling points, it will perform offset voltage correction on the original voltage information at different sampling points, so that the voltage information corresponding to each sampling point under the first set of sampling points and the voltage information corresponding to each sampling point under the second set of sampling points within the same sampling period are symmetrically distributed about the preset baseline voltage center. Among them, the first set of sampling points includes the sampling points in the first half cycle of the sampling period, and the second set of sampling points includes the sampling points in the second half cycle of the sampling period.
[0023] Exemplarily, asFigure 2 The signal schematic diagram before offset voltage correction as shown. Between the voltage information corresponding to the sampling points in the upper half cycle and the voltage information corresponding to the sampling points in the lower half cycle within the same sampling period, the baseline voltage (i.e., the actual baseline voltage) based on the central symmetric distribution is not the preset baseline voltage (i.e., 0V). Based on this, as Figure 3 The signal schematic diagram after offset voltage correction as shown. After the offset voltage correction, between the voltage information corresponding to the sampling points in the upper half cycle and the voltage information corresponding to the sampling points in the lower half cycle within the same sampling period, the baseline voltage based on the central symmetric distribution is the preset baseline voltage. Among them, Figure 2 and Figure 3 The signal amplitude in can be understood as the voltage information collected at the sampling point.
[0024] As for how to specifically perform offset voltage correction on the original voltage information of the measured object collected by the electromagnetic flow monitoring device at each different sampling point in this step, examples will be described below and will not be elaborated here for the time being.
[0025] Step 102: Identify abnormal sampling points with spike noise from each different sampling point, and perform spike interference elimination processing on the voltage information at each abnormal sampling point.
[0026] In this embodiment, spike noise interference will cause errors in the measurement of the electromagnetic flow monitoring device, thereby reducing the measurement accuracy. Therefore, to avoid the influence of spike noise interference on the measurement of the electromagnetic flow monitoring device, this embodiment can first identify abnormal sampling points with spike noise from each different sampling point, and then perform spike interference elimination processing on the voltage information at each abnormal sampling point to effectively eliminate the spike noise existing in the original voltage information collected by the electromagnetic flow monitoring device, thereby improving the measurement accuracy of the electromagnetic flow monitoring device.
[0027] As for how to specifically identify abnormal sampling points with spike noise from each different sampling point and perform spike interference elimination processing on the voltage information at each abnormal sampling point in this step, examples will be described below and will not be elaborated here for the time being.
[0028] Step 103: Filter the voltage information at each abnormal sampling point and the voltage information at normal sampling points other than each abnormal sampling point to obtain the voltage information corresponding to each target sampling point; the voltage information at each target sampling point matches the output signal characteristics of the electromagnetic flow monitoring device.
[0029] In this embodiment, the output signal characteristic of the electromagnetic flow monitoring device may refer to the signal characteristic representing the output signal of the electromagnetic flow monitoring device. For example, assume that the electromagnetic flow monitoring device is a flow monitoring device based on rectangular wave excitation. Then its output signal is usually a rectangular wave signal, and the rectangular wave signal is composed of odd harmonics. Based on this, the characteristic of the rectangular wave signal can be odd harmonics. In this case, the odd harmonics can be used as the signal characteristic representing the rectangular wave signal. Based on this, the output signal characteristic of the electromagnetic flow monitoring device can be odd harmonics. It should be noted that this is only an exemplary illustration, and this embodiment does not specifically limit this.
[0030] In this embodiment, the voltage information matching the output signal characteristic of the electromagnetic flow monitoring device is the voltage information associated with the measurement of the electromagnetic flow monitoring device. And the voltage information other than the voltage information matching the output signal characteristic of the electromagnetic flow monitoring device can be considered as noise, which will affect the measurement of the electromagnetic flow monitoring device. For example, assume that the output signal characteristic of the electromagnetic flow monitoring device is odd harmonics. Then the voltage information matching even harmonics (which may include, for example, low frequency, power frequency, and multiple frequencies) can be considered as noise and needs to be eliminated.
[0031] Based on this, in order to eliminate the above noise, this embodiment can filter the voltage information at each abnormal sampling point and the voltage information at normal sampling points other than each abnormal sampling point, so that the voltage information to be retained, that is, the voltage information corresponding to each target sampling point, is retained, and the voltage information that does not need to be retained, that is, the noise, is attenuated to a large extent, thereby obtaining the voltage information corresponding to each target sampling point; among them, the voltage information at each target sampling point matches the output signal characteristic of the electromagnetic flow monitoring device.
[0032] This embodiment eliminates the noise in the voltage information collected by the electromagnetic flow monitoring device through filtering to reduce the influence of the noise on the measurement of the electromagnetic flow monitoring device. Moreover, before filtering, this embodiment also performs offset voltage correction and spike interference elimination processing on the voltage information collected by the electromagnetic flow monitoring device, which can effectively avoid problems such as the filtered signal being difficult to converge and having residual spike noise caused by the offset voltage phenomenon and spike interference, thereby improving the measurement accuracy of the electromagnetic flow monitoring device.
[0033] As for how to specifically filter the voltage information at each abnormal sampling point and the voltage information at normal sampling points other than each abnormal sampling point in this step, it will be described by examples below and will not be elaborated here for the time being.
[0034] Step 104, when it is determined that the current meets the preset cross-correlation processing condition according to the total duration of the current sampling, perform cross-correlation processing on the voltage information corresponding to the target sampling points within the set range and the standard voltage signal currently matched by the electromagnetic flow monitoring device, so as to obtain effective voltage information from the voltage information corresponding to the target sampling points within the set range based on the cross-correlation result; the effective voltage information is used to determine the fluid characteristics of the object under test.
[0035] In this embodiment, as an example, for the standard voltage signal currently matched by the electromagnetic flow monitoring device, its signal excitation frequency and signal sampling frequency are the same as the signal excitation frequency and signal sampling frequency used when the electromagnetic flow monitoring device collects voltage information. Optionally, the amplitude of the standard voltage signal can be flexibly set according to actual application requirements. For example, it can be 1V or 2V, etc., and it is not specifically limited here.
[0036] In this embodiment, based on the periodic change characteristic of the effective voltage information and the random change characteristic of the noise in the voltage information collected by the electromagnetic flow monitoring device, the standard voltage signal currently matched by the electromagnetic flow monitoring device can be used as a reference voltage signal. By performing cross-correlation processing on the voltage information corresponding to the target sampling points within the set range and the standard voltage signal currently matched by the electromagnetic flow monitoring device, effective voltage information can be obtained from the voltage information corresponding to the target sampling points within the set range based on the cross-correlation result, where the effective voltage information is used to determine the fluid characteristics of the object under test, so as to complete the measurement of the fluid characteristics of the object under test. As for how to specifically implement this step, it will be described by way of example below and will not be elaborated here for the time being.
[0037] In this embodiment, if the voltage information collected within a short duration is used for cross-correlation processing, it will affect the reliability of the cross-correlation processing. Therefore, in order to ensure the reliability of the cross-correlation processing, it can be determined whether cross-correlation processing can be performed currently through the total duration of the current sampling, that is, it can be determined whether the current meets the preset cross-correlation processing condition according to the total duration of the current sampling.
[0038] Specifically, as an example, the above determination that the current meets the preset cross-correlation processing condition according to the total duration of the current sampling can be implemented as follows: if the total duration of the current sampling is greater than or equal to the set duration, and the total duration of the current sampling reaches an integer multiple of the half period corresponding to the electromagnetic flow monitoring device, it is determined that the current meets the preset cross-correlation processing condition.
[0039] In this embodiment, the above half period refers to any half period in the sampling period corresponding to the electromagnetic flow monitoring device. Among them, the sizes of the two half periods in the sampling period corresponding to the electromagnetic flow monitoring device are the same.
[0040] Optionally, the above-mentioned set duration can be flexibly set according to actual application requirements. For example, the above-mentioned set duration can be the sum of the sizes of 20 sampling periods, or can be the sum of the sizes of 30 sampling periods, etc. This embodiment does not specifically limit it.
[0041] Based on the above description, in this embodiment, the above-mentioned set range can also be flexibly set according to actual application requirements. For example, as an embodiment, the above-mentioned set range can be a period of time with the current moment as the end moment and the duration as the set duration.
[0042] Exemplarily, assuming that the above-mentioned set duration is the sum of the sizes of 20 sampling periods, the voltage information corresponding to the target sampling points within the set range can be understood as the voltage information corresponding to the target sampling points within the latest obtained 20 sampling periods.
[0043] In this embodiment, the above-mentioned cross-correlation processing can refer to determining the statistical dependence (i.e., correlation) between two different random variables. Based on this, the above-mentioned cross-correlation result can indicate the correlation between the voltage information corresponding to each target sampling point and the standard voltage signal currently matched by the electromagnetic flow monitoring device.
[0044] In this embodiment, through cross-correlation processing, the above-mentioned standard voltage signal is used as a reference voltage signal for filtering out effective voltage information, so as to further filter out residual noise and obtain relatively pure effective voltage information from the voltage information corresponding to each target sampling point. Based on this, using this effective voltage information to measure the fluid characteristics of the object to be measured can effectively improve the measurement accuracy.
[0045] So far, the Figure 1 shown process
[0046] is completed Figure 1As can be seen from the shown process, in the embodiment of the present application, when obtaining the original voltage information of the object under measurement collected by the electromagnetic flow monitoring device at different sampling points, the offset voltage correction is performed on the original voltage information at different sampling points to eliminate the voltage offset interference, and the abnormal sampling points with spike noise are identified from different sampling points to eliminate the spike interference. Then, the voltage information at different sampling points is filtered to eliminate the noise interference information except for the voltage information that matches the output signal characteristics of the electromagnetic flow monitoring device, that is, the voltage information corresponding to each target sampling point. Based on this, when it is determined that the preset cross-correlation processing condition is currently satisfied, the voltage information corresponding to the target sampling points within the set range and the standard voltage signal are cross-correlated to extract the effective voltage information for measuring the fluid characteristics of the object under measurement. In this way, a large amount of noise interference in the collected original voltage information is effectively suppressed, and the accuracy of the measurement result output by the electromagnetic flow monitoring device, that is, the above-mentioned fluid characteristics, is improved.
[0047] The following describes how to perform offset voltage correction on the original voltage information of the object under measurement collected by the electromagnetic flow monitoring device at different sampling points.
[0048] As an embodiment, the above-mentioned offset voltage correction of the original voltage information of the object under measurement collected by the electromagnetic flow monitoring device at different sampling points can be specifically implemented as follows: First, based on the original voltage information collected at at least two different reference sampling points belonging to the same sampling period, the voltage correction parameter corresponding to this sampling period is determined, where the reference sampling point is one of the different sampling points; then, the offset voltage correction is performed on the original voltage information at different sampling points based on the voltage correction parameters corresponding to each sampling period.
[0049] In this embodiment, the original voltage information collected at different sampling points is voltage information with noise, and the original voltage information of the sampling points within the same sampling period will have fluctuating changes. For example, the voltage information within the sampling point range with large noise will also have large fluctuations. Based on prior knowledge, it is known that within any half period of the same sampling period, the fluctuating changes of the original voltage information corresponding to the sampling points in the second half of this half period are relatively stable; therefore, in order to minimize the influence of noise interference on the offset voltage correction, this embodiment can use the original voltage information corresponding to the sampling points in the second half of each half period within the same sampling period to determine the voltage correction parameter for the offset voltage correction of the original voltage information within this sampling period.
[0050] Based on this, as an embodiment, the above-mentioned at least two different reference sampling points belonging to the same sampling period can be, for example, the sampling points in the second half of each half period of this sampling period.
[0051] Exemplarily, assume that the above-mentioned different sampling points are sampling points for at least one sampling period, and each sampling period includes N sampling points (N>1). Then, for each sampling period, at least two different reference sampling points belonging to this sampling period, for example, can be the sampling points in the second half of the first half period and the second half of the second half period of this sampling period, that is, the sampling points within the sampling point ranges [N / 4, 2 / N] and [N3 / 4, N] in this sampling period.
[0052] In this embodiment, as an example, determining the voltage correction parameter corresponding to this sampling period based on the original voltage information collected under at least two different reference sampling points belonging to the same sampling period can be specifically implemented as follows: First, based on each reference sampling point belonging to the same sampling period, determine the offset voltage parameter corresponding to each reference sampling point pair in this sampling period; then, select at least one offset voltage parameter from the offset voltage parameters corresponding to each reference sampling point pair, and perform a specified arithmetic process on the selected offset voltage parameters to determine the voltage correction parameter corresponding to this sampling period according to the processing result.
[0053] In this embodiment, any reference sampling point pair includes two reference sampling points in different half periods, and the two reference sampling points in this reference sampling point pair differ by half a sampling period. For example, assume that one of the reference sampling points in a reference sampling point pair is the N / 4th sampling point in the sampling period to which it belongs, then the other reference sampling point is the N3 / 4th sampling point in the sampling period to which it belongs, that is, the two reference sampling points differ by half a sampling period, namely N / 2.
[0054] In this embodiment, the offset voltage parameter corresponding to any reference sampling point pair depends on the original voltage information corresponding to the two reference sampling points in this reference sampling point pair. For example, as an example, the difference between the original voltage information corresponding to the two reference sampling points in this reference sampling point pair can be determined as the offset voltage parameter corresponding to this reference sampling point pair.
[0055] In this embodiment, there are many implementation manners for selecting at least one offset voltage parameter from the offset voltage parameters corresponding to each reference sampling point pair, and this embodiment does not specifically limit them.
[0056] For example, as an example, the offset voltage parameters corresponding to each reference sampling point pair can be sorted first in a specified order, such as from small to large, and then the offset voltage parameters within the set sorting range are selected from the sorting result. Here, the setting of the set sorting range is not specifically limited and can be flexibly set according to actual application requirements.
[0057] For another example, as another embodiment, a voltage range can also be preset based on prior knowledge, and the bias voltage parameters within this voltage range can be selected from the bias voltage parameters corresponding to each reference sampling point. Or, the bias voltage parameters corresponding to each reference sampling point can be directly used as the selected bias voltage parameters, and so on.
[0058] Based on this, as an embodiment, for the above-mentioned selected bias voltage parameters, specific arithmetic processing is performed to determine the voltage correction parameter corresponding to this sampling period according to the processing result. In specific implementation, for example, it can be: performing an average operation on the selected bias voltage parameters to obtain the processing result, that is, the average value obtained by the average operation, and determining this processing result as the voltage correction parameter corresponding to this sampling period.
[0059] In this embodiment, as an embodiment, for the above-mentioned bias voltage correction of the original voltage information at each different sampling point based on the voltage correction parameter corresponding to each sampling period, there are many implementation methods in specific implementation: For example, as an embodiment, for any sampling period, after obtaining the voltage correction parameter corresponding to this sampling period, if there is no recorded voltage correction parameter currently, record the voltage correction parameter corresponding to this sampling period, and subtract the voltage correction parameter corresponding to this sampling period (that is, the recorded voltage correction parameter) from the original voltage information corresponding to the sampling points within each sampling period to achieve the bias voltage correction of the original voltage information corresponding to the sampling points within this sampling period.
[0060] If there is a recorded voltage correction parameter currently, check whether the difference between the voltage correction parameter corresponding to this sampling period and the recorded voltage correction parameter is greater than or equal to the set difference. If so, update the recorded voltage correction parameter to the voltage correction parameter corresponding to this sampling period, and subtract the voltage correction parameter corresponding to this sampling period from the original voltage information corresponding to the sampling points within each sampling period. If not, subtract the recorded voltage correction parameter from the original voltage information corresponding to the sampling points within each sampling period to achieve the bias voltage correction of the original voltage information corresponding to the sampling points within this sampling period.
[0061] For another example, as an embodiment, subtract the voltage correction parameter corresponding to each sampling period from the original voltage information corresponding to the sampling points within each sampling period to achieve the bias voltage correction of the original voltage information corresponding to the sampling points within this sampling period.
[0062] So far, the description of how to perform bias voltage correction on the original voltage information of the measured object collected by the electromagnetic flow monitoring device at each different sampling point is completed.
[0063] The following describes how to identify abnormal sampling points with spike noise from different sampling points and perform spike interference elimination processing on the voltage information under each abnormal sampling point.
[0064] In this embodiment, as an example, the implementation of identifying abnormal sampling points with spike noise from different sampling points can be, for example: for each sampling point in the same sampling point group, based on the voltage information under this sampling point and the voltage information corresponding to this sampling point group, determine the voltage difference corresponding to this sampling point, and, based on the voltage information under the neighboring sampling points adjacent to this sampling point, determine the voltage change amount corresponding to this sampling point; then, if the voltage difference and voltage change amount corresponding to this sampling point meet the spike noise condition, determine that this sampling point is an abnormal sampling point with spike noise.
[0065] Optionally, the above sampling point group is determined based on the sampling points in the first half cycle of a sampling period, or based on the sampling points in the second half cycle of a sampling period.
[0066] In this embodiment, the voltage information corresponding to any sampling point group is determined based on the voltage information under each sampling point in this sampling point group. For example, as an example, for any sampling point group, the mean value of the voltage information under each sampling point in this sampling point group can be determined as the voltage information corresponding to this sampling point group.
[0067] In this embodiment, as an example, the implementation of determining the voltage difference corresponding to this sampling point based on the voltage information under this sampling point and the voltage information corresponding to this sampling point group can be, for example: the difference between the voltage information under this sampling point and the voltage information corresponding to this sampling point group is determined as the voltage difference corresponding to this sampling point.
[0068] In this embodiment, as an example, the implementation of determining the voltage change amount corresponding to this sampling point based on the voltage information under the neighboring sampling points adjacent to this sampling point can be, for example: the difference between the voltage information under this sampling point and the voltage information under the neighboring sampling points adjacent to this sampling point is determined as the voltage change amount corresponding to this sampling point.
[0069] The following describes how to determine whether the voltage difference and voltage change amount corresponding to any sampling point meet the spike noise condition: In this embodiment, as an example, for any sampling point, if the voltage difference corresponding to this sampling point is greater than or equal to the first set threshold, and the voltage change amount corresponding to this sampling point is greater than or equal to the second set threshold, it is determined that the voltage difference and voltage change amount corresponding to this sampling point meet the spike noise condition; otherwise, it is determined that the voltage difference and voltage change amount corresponding to this sampling point do not meet the spike noise condition.
[0070] As for the first set threshold and the second set threshold in this embodiment, they can be flexibly set based on actual application requirements, and this embodiment does not specifically limit them.
[0071] The following describes how to perform spike interference elimination processing on the voltage information at each abnormal sampling point: In this embodiment, as an example, the above-mentioned spike interference elimination processing on the voltage information at each abnormal sampling point includes: for each abnormal sampling point, determining the normal sampling point closest to the abnormal sampling point, and then adjusting the voltage information at the abnormal sampling point based on the voltage information at the determined normal sampling point, so that the adjusted voltage information has no spike interference.
[0072] In this embodiment, as an example, the above-mentioned adjustment of the voltage information at the abnormal sampling point based on the voltage information at the determined normal sampling point can be specifically implemented as follows: If only one normal sampling point is determined, the voltage information at the abnormal sampling point can be adjusted to the voltage information at the normal sampling point, so that the adjusted voltage information has no spike interference.
[0073] If two normal sampling points are determined, the voltage information at the abnormal sampling point can be adjusted to the voltage information at one of the normal sampling points, or the voltage information at the abnormal sampling point can also be adjusted to the average value of the voltage information at the two normal sampling points, so that the adjusted voltage information has no spike interference.
[0074] The following describes how to filter the voltage information at each abnormal sampling point and the voltage information at the normal sampling points other than each abnormal sampling point.
[0075] In this embodiment, as an example, the above-mentioned filtering of the voltage information at each abnormal sampling point and the voltage information at the normal sampling points other than each abnormal sampling point can be specifically implemented as follows: determining the currently to-be-used cascaded band-pass filter according to the signal excitation frequency and the signal sampling frequency used by the electromagnetic flow monitoring device to collect the measured object; using the cascaded band-pass filter to filter the voltage information at each abnormal sampling point and the voltage information at the normal sampling points other than each abnormal sampling point.
[0076] In this embodiment, the above-mentioned cascaded bandpass filter to be used is determined based on the signal excitation frequency and signal sampling frequency used by the electromagnetic flow monitoring device when collecting data on the object to be measured. In specific implementation, for example, it can be: based on the signal excitation frequency and signal sampling frequency used by the electromagnetic flow monitoring device when collecting data on the object to be measured, the order of the cascaded bandpass filter is determined, and based on preset filter parameters such as passband bandwidth, passband maximum attenuation, etc., each bandpass filter in the cascaded bandpass filter is determined; wherein, the above-mentioned order refers to the number of cascaded bandpass filters, for example, if the order is 4, it means that the cascaded bandpass filter is composed of 4 bandpass filters cascaded. Based on this, the bandpass filters of the order can be cascaded to form the cascaded bandpass filter to be used currently.
[0077] Optionally, each band-pass filter in the cascaded band-pass filter is an identical band-pass filter, that is, a band-pass filter determined based on the same filter parameters.
[0078] As for how to determine the order of the cascaded bandpass filter based on the signal excitation frequency and signal sampling frequency used by the electromagnetic flow monitoring device when collecting data on the object being measured, the following will give an example and will not be elaborated here.
[0079] The following describes how to perform cross-correlation processing on the voltage information corresponding to the target sampling point within the set range and the standard voltage signal currently matched by the electromagnetic flow monitoring device.
[0080] In this embodiment, as described above, the voltage information corresponding to each target sampling point is obtained by filtering the voltage information at each abnormal sampling point and the voltage information at the normal sampling point except the abnormal sampling point. After filtering, the voltage information except the voltage information corresponding to each target sampling point is not completely deleted, but the voltage information except the voltage information corresponding to each target sampling point is attenuated to a large extent to minimize the influence of the voltage information as noise on subsequent measurements.
[0081] Based on this, as an embodiment, the voltage information corresponding to the target sampling points within the set range and the standard voltage signal currently matched by the electromagnetic flow monitoring device are cross-correlated. In a specific implementation, for example, the voltage information corresponding to the target sampling points within the set range and the voltage information other than the voltage information corresponding to each target sampling point after filtering (that is, the voltage signal within the set range) and the standard voltage signal are input as input parameters of the preset cross-correlation function into the cross-correlation function for cross-correlation processing, and then the cross-correlation result can be output. Here, the cross-correlation result indicates the correlation between the voltage signal within the set range and the standard voltage signal.
[0082] The following describes how to obtain the effective voltage information from the voltage information corresponding to the target sampling points within the set range based on the cross-correlation result.
[0083] In this embodiment, as an example, obtaining the effective voltage information from the voltage information corresponding to the target sampling points within the set range based on the cross-correlation result may be specifically implemented as follows: performing a cross-correlation operation on the noisy voltage signal currently matched by the electromagnetic flow monitoring device and the standard voltage signal to obtain an operation result; the operation result includes a parameter for indicating the effective voltage information; and then a specified operation may be performed based on the operation result and the cross-correlation result to obtain the effective voltage information.
[0084] Optionally, the noisy voltage signal currently matched by the electromagnetic flow monitoring device may include a preset effective signal and a noise signal.
[0085] In this embodiment, as an example, the above-mentioned preset effective signal may be considered to refer to the voltage signal that the electromagnetic flow monitoring device should output in a noise-free environment, which may depend on the signal excitation frequency and signal sampling frequency used by the electromagnetic flow monitoring device when collecting the object to be measured. That is to say, the signal excitation frequency and signal sampling frequency of the preset effective signal are the same as those used by the electromagnetic flow monitoring device when collecting the object to be measured. Among them, the amplitude of the preset effective signal is the effective voltage information to be obtained in this embodiment, which can be replaced by a parameter for indicating the effective voltage information such as Vs. Based on this, the signal expression of the above-mentioned preset effective signal can be determined.
[0086] Since the noise signal does not need to expand the signal expression in the cross-correlation operation, the noise signal can be replaced by a characterization parameter such as n(t).
[0087] Based on the above description, as an example, performing a cross-correlation operation on the noisy voltage signal currently matched by the electromagnetic flow monitoring device and the standard voltage signal to obtain an operation result may be considered to mean performing a cross-correlation operation on the signal expressions of the noisy voltage signal currently matched by the electromagnetic flow monitoring device and the standard voltage signal according to a preset cross-correlation function to obtain an operation result including a parameter for indicating the effective voltage information, so as to be used for subsequent determination of the effective voltage information in combination with the cross-correlation result obtained by cross-correlation processing when actually collecting voltage information. As for how to specifically determine the effective voltage information, it will be described by examples below and will not be elaborated here for the time being.
[0088] To facilitate understanding of the specific implementation process of the above signal processing method, the following will be described by specific examples.
[0089] In this embodiment, the specific implementation process of the above signal processing method is as follows: 1. First, correct the offset voltage of the signal of the measured object collected by the electromagnetic flow monitoring device: Assume that the signal excitation frequency used by the electromagnetic flow monitoring device when collecting the measured object is , the sampling frequency is , and the periodic sampling points are ; the original signal sampling sequence collected by the electromagnetic flow monitoring device when collecting the measured object is , the original signal sampling sequence of the th period is , , , where is greater than or equal to 1. Taking as an example for illustrative purposes, first take the original voltage information corresponding to the sampling points in the stationary section (i.e., the second half of each half cycle) of to perform voltage reference statistics, then the real-time offset signal can be obtained through the following formula: ; where ; can be considered to refer to the voltage correction parameter corresponding to the reference sampling point pair composed of the th reference sampling point and the th reference sampling point.
[0090] There may be noise or other unknown interferences in the obtained real-time offset signal. Therefore, in order to obtain a more accurate reference offset , the obtained can be sorted in ascending order to obtain the sorting result . Then, select the within the sorting range [m1, m2] from the sorting result, and determine the mean value of the selected as , that is, obtain according to the following formula: : ; where both m1 and m2 are within and can be flexibly set based on actual application requirements.
[0091] Based on this, the offset voltage of can be corrected according to the following correction formula so that the voltage information corresponding to the sampling points in the upper half cycle of is centrosymmetrically distributed with respect to the voltage information corresponding to the sampling points in the lower half cycle based on the preset baseline voltage of 0V: - ; Among them, is the signal after the offset voltage correction for .
[0092] In this embodiment, as an example, when obtaining , if there is no recorded currently, the currently obtained can be recorded, and the offset voltage correction is performed using the currently obtained .
[0093] If there is a recorded currently, and the difference between the currently obtained and the recorded is greater than or equal to the set difference, it indicates that there is a signal mutation in the relevant circuit of the electromagnetic flow monitoring device due to active regulation or unknown working conditions, etc. In this case, the recorded can be updated to the currently obtained , and the offset voltage correction is performed using the currently obtained .
[0094] If there is a recorded currently, and the difference between the currently obtained and the recorded is less than the set difference, the recorded can be directly used for offset voltage correction.
[0095] In this embodiment, the offset voltage correction can effectively alleviate the influence of the offset voltage on the subsequent signal filtering convergence. As shown in Figure 4 , it takes a long time for the filtering to converge before the offset correction, while the filtering can converge faster after the offset correction, thus avoiding the influence of the filtering convergence on the measurement of the electromagnetic flow monitoring device.
[0096] II. Elimination of the above spike interference: First, extract the suspected noise signal in according to the following formula: ; Among them, according to the formula, it can be known that the voltage information corresponding to each sampling point of
[0097] For the above , take the derivative of to determine based on the derivative formula The noise variation corresponding to each sampling point, where The derivative formula for taking the derivative is as follows: ; Among them, the noise variation corresponding to each sampling point can be considered as the voltage variation between each sampling point and its adjacent neighbor sampling point.
[0098] Based on this, for each sampling point corresponding to, if the voltage information corresponding to this sampling point in is greater than or equal to (that is, the above first set threshold), and the noise variation corresponding to this sampling point is greater than or equal to (that is, the above second set threshold), then it is determined that this sampling point is an abnormal sampling point with spike noise. In this case, the voltage information under this abnormal sampling point can be adjusted to the voltage information under the normal sampling point closest to this abnormal sampling point, so that the adjusted voltage information has no spike interference. In this embodiment, after eliminating the above spike interference, the signal is obtained.
[0099] It should be noted that the normal sampling point closest to the abnormal sampling point can be the normal sampling point on the left side of the abnormal sampling point or the normal sampling point on the right side of the abnormal sampling point.
[0100] III. Clutter elimination: In this embodiment, the cascaded band-pass filter to be currently used can be determined according to the above signal excitation frequency of and the sampling frequency of . Among them, the frequency-domain transfer function of the cascaded band-pass filter is as follows: .
[0101] Converting the above frequency-domain transfer function into a time-domain difference equation, this time-domain difference equation is as follows: .
[0102] Among them, refers to the order of the cascaded band-pass filter, that is, the number of band-pass filters in the cascaded band-pass filter. Assuming that the output signal characteristic of the current electromagnetic flow monitoring device is the odd harmonic components to be retained in a rectangular wave signal, then since these odd harmonic components are evenly distributed within , to ensure that the number of band-pass filters can equally divide into reserved frequency point intervals (that is, can correspond one-to-one with the odd harmonic components within ), so as to retain as much as possible Odd harmonics within it, while attenuating clutter signals other than odd harmonic components), the Can be determined by the following formula: .
[0103] Refers to the signal after filtering through the above cascaded band-pass filter.
[0104] and Are the filtering parameters of the cascaded band-pass filter, which can be determined according to , the preset band-pass bandwidth (such as 1 Hz, etc.), and the preset maximum attenuation in the passband (such as -3 dB, etc.). As for how to specifically determine , the preset band-pass bandwidth (such as 1 Hz, etc.), and the preset maximum attenuation in the passband (such as -3 dB, etc.) to determine and , this embodiment does not specifically limit.
[0105] IV. Effective signal extraction: In this embodiment, cross-correlation is used to extract the effective signal. First, briefly introduce the working principle of cross-correlation: The cross-correlation function can refer to the statistical dependence (i.e., correlation) between two different random variables. The cross-correlation function is as follows: ; Among them, represents the time delay (also called time offset) between two signals and ; T can represent the integration time; represents the time variable.
[0106] When it indicates that the two signals are independent and uncorrelated. Assuming when obtains the maximum value, it means that the two signals have the strongest correlation and the greatest waveform similarity at this time.
[0107] Based on this, assume that the output signal of the electromagnetic flow monitoring device (i.e., the noisy voltage signal currently matched by the above electromagnetic flow monitoring device) is: , among which, represents the noise-free effective signal, represents the noise signal. The standard voltage signal used as the reference signal in the cross-correlation processing is: .
[0108] Substitute and Perform cross-correlation processing to obtain the following formula: = + 。
[0109] Among them, represents and The cross-correlation result between; represents and The cross-correlation result between.
[0110] When And the frequencies between the two signals (i.e., the signal excitation frequency) are the same, , in this case, Can be extracted, and then In the Detected.
[0111] Based on the above description, in this embodiment, taking the output signal of the electromagnetic flow monitoring device as a rectangular wave signal as an example, assuming , , then:
[0112] 。
[0113] Among them, Is an integer; Is the angular frequency, ; Is And The phase difference between; Is In the effective signal Amplitude, that is, the effective voltage information to be obtained above.
[0114] If the integration time is set long enough, during the integration process, the Corresponding to the above formula High-frequency signals will be filtered out, resulting in the following formula (i.e., the above operation result): ; Based on this, the formula can be used to deduce . Specifically, such as , can be substituted into the voltage signal (denoted as ) collected by the electromagnetic flow monitoring device in actual application and processed by the above noise reduction, and the known standard voltage signal The cross-correlation result therebetween (i.e., the maximum cross-correlation result value, assumed to be g). And , it may refer to the above-mentioned , as can be known from the previous description, after cross-correlation processing . And, because the phase difference between the two signals , the cross-correlation result value between the two signals is the largest.
[0115] Therefore, it is possible to utilize to calculate and obtain the effective voltage information .
[0116] For example, as an embodiment, when and in the starting half cycle are both positive half cycles or negative half cycles, then it can be determined that and when the phase difference between them, the cross-correlation result value between the two signals is the largest (i.e., the maximum result value of positive correlation), that is , based on this, it can be calculated and obtained . Correspondingly, when the starting half cycle is a positive half cycle, the starting half cycle is a negative half cycle, or when the starting half cycle is a negative half cycle, the starting half cycle is a positive half cycle, then it can be determined that and when the phase difference between them, the cross-correlation result value between the two signals is the largest (i.e., the maximum result value of negative correlation), that is , based on this, it can be calculated and obtained , and the obtained at this time is a positive value. Based on this, if the starting half cycle in is a positive half cycle, then this is the finally determined effective voltage information. If the starting half cycle in is a negative half cycle, then is the finally determined effective voltage information.
[0117] In this embodiment, it should be noted that if the signal characteristic of the above noise signal is an even harmonic, its cross-correlation result with the standard voltage signal is 0; if the signal characteristic of the above noise signal is an odd harmonic, the cross-correlation result is one odd number of the fundamental wave amplitude, such as 2 / π for the fundamental wave and 2 / 3π for the third harmonic, and so on, and so forth; if the above noise signal The noise with a certain frequency band will have noise interference at a specific frequency. The above cross-correlation processing cannot effectively filter out this type of noise signal, resulting in an increase in the equivalent noise bandwidth and a decrease in the output signal-to-noise ratio. Therefore, in this embodiment, a cascaded band-pass filter is used to filter out irrelevant harmonics other than odd harmonics before the cross-correlation processing, that is, the voltage information other than the voltage information matching the output signal characteristics of the electromagnetic flow monitoring device is filtered out, so as to effectively reduce the influence of noise on the cross-correlation processing.
[0118] V. Determination of the fluid characteristics of the object to be measured: In this embodiment, amplitude demodulation can be performed based on the effective voltage information obtained above to obtain information such as the flow velocity and flow rate of the object to be measured, which are the fluid characteristics of the object to be measured.
[0119] For example, as an embodiment, this embodiment can use the three-point demodulation method to determine the fluid characteristics of the object to be measured. According to the related technology based on the three-point demodulation method, three effective voltage information are required for calculation. Specifically, check whether the number of the currently obtained effective voltage information is greater than or equal to a preset threshold (such as 3). If so, when the starting half-cycle in all the signals collected by the electromagnetic flow monitoring device is the positive half-cycle, the reference parameter for calculating the fluid characteristics can be calculated using the following formula : .
[0120] When the starting half-cycle in all the signals collected by the electromagnetic flow monitoring device is the negative half-cycle, the reference parameter for calculating the fluid characteristics can be calculated using the following formula : .
[0121] Wherein, , , respectively refer to the obtained th , th , th , that is, the latest obtained three effective voltage information. represents the th to be calculated, , initially .
[0122] Based on this, the fluid characteristics of the object to be measured can be obtained by inputting the obtained above as input parameters into a preset fluid characteristic calculation function. Specifically, for example, the Input it into a preset flow velocity calculation function as an input parameter to obtain the flow velocity of the object to be measured; and, by using the obtained above as an input parameter and inputting it into a preset flow rate calculation function to obtain the flow rate of the object to be measured.
[0123] Optionally, the above-mentioned preset flow velocity calculation function can be, for example: , where represents the flow velocity, represents the flow velocity coefficient. The above-mentioned preset flow rate calculation function can be, for example: , where represents the flow rate, represents the flow rate coefficient. and can be flexibly set based on actual application requirements, and this embodiment does not specifically limit them.
[0124] So far, the description of the method provided by the embodiments of the present application is completed. Next, the device provided by the embodiments of the present application will be described: Refer to Figure 5 , Figure 5 which is a schematic structural diagram of a signal processing device provided by an embodiment of the present application. This device is applied to an electromagnetic flow monitoring device. As Figure 5 shown, the signal processing device 500 includes: A correction module 501, configured to correct the offset voltage of the original voltage information of the object to be measured collected by the electromagnetic flow monitoring device at different sampling points, so that the voltage information corresponding to each sampling point in the first group of sampling points and the voltage information corresponding to each sampling point in the second group of sampling points within the same sampling period are centrosymmetrically distributed based on a preset baseline voltage; the first group of sampling points includes the sampling points in the upper half period of the sampling period, and the second group of sampling points includes the sampling points in the lower half period of the sampling period; An elimination module 502, configured to identify abnormal sampling points with spike noise from the different sampling points, and perform spike interference elimination processing on the voltage information at each abnormal sampling point; A filtering module 503, configured to filter the voltage information at each abnormal sampling point and the voltage information at normal sampling points except for each abnormal sampling point to obtain the voltage information corresponding to each target sampling point; the voltage information at each target sampling point matches the output signal characteristics of the electromagnetic flow monitoring device; A cross-correlation module 504, configured to perform cross-correlation processing on the voltage information corresponding to target sampling points within a set range and the standard voltage signal currently matched by the electromagnetic flow monitoring device when it is determined that the current meets a preset cross-correlation processing condition according to the total duration of the current sampling, so as to obtain effective voltage information from the voltage information corresponding to the target sampling points within the set range based on the cross-correlation result; the effective voltage information is used to determine the fluid characteristics of the object under test.
[0125] As an embodiment, the correction module 501 is specifically configured to: Based on the original voltage information collected at at least two different reference sampling points belonging to the same sampling period, determine the voltage correction parameter corresponding to this sampling period; the reference sampling point is one of the different sampling points; Perform offset voltage correction on the original voltage information at each different sampling point based on the voltage correction parameter corresponding to each sampling period.
[0126] As an embodiment, the determining the voltage correction parameter corresponding to this sampling period based on the original voltage information collected at at least two different reference sampling points belonging to the same sampling period includes: Based on each reference sampling point belonging to the same sampling period, determine the offset voltage parameter corresponding to each reference sampling point pair in this sampling period; any reference sampling point pair includes two reference sampling points in different half-cycles, and the two reference sampling points in this reference sampling point pair differ by half a sampling period; the offset voltage parameter corresponding to any reference sampling point pair depends on the original voltage information corresponding to the two reference sampling points in this reference sampling point pair. Select at least one offset voltage parameter from the offset voltage parameters corresponding to each reference sampling point pair, and perform specified arithmetic processing on the selected offset voltage parameters to determine the voltage correction parameter corresponding to this sampling period according to the processing result.
[0127] As an embodiment, when the elimination module 502 executes to identify abnormal sampling points with spike noise from the different sampling points, it is specifically configured to: For each sampling point in the same sampling point group, based on the voltage information at this sampling point and the voltage information corresponding to this sampling point group, determine the voltage difference corresponding to this sampling point, and based on the voltage information at the neighboring sampling points adjacent to this sampling point, determine the voltage change amount corresponding to this sampling point; the voltage information corresponding to this sampling point group is determined based on the voltage information at each sampling point in this sampling point group, and the sampling point group is determined based on the sampling points in the first half cycle of a sampling period, or based on the sampling points in the second half cycle of a sampling period; If the voltage difference and voltage change amount corresponding to the sampling point satisfy the spike noise condition, then determine that the sampling point is an abnormal sampling point with spike noise.
[0128] As an embodiment, when the elimination module 502 performs spike interference elimination processing on the voltage information at each abnormal sampling point, it is specifically used for: For each abnormal sampling point, determine the normal sampling point closest to the abnormal sampling point, and then adjust the voltage information at the abnormal sampling point according to the voltage information at the determined normal sampling point, so that the adjusted voltage information has no spike interference.
[0129] As an embodiment, the filtering module 503 is specifically used for: Determine the current cascade band-pass filter to be used according to the signal excitation frequency and signal sampling frequency adopted by the electromagnetic flow monitoring device when collecting the object to be measured; Use the cascade band-pass filter to filter the voltage information at each abnormal sampling point and the voltage information at normal sampling points other than each abnormal sampling point.
[0130] As an embodiment, the determination that the current satisfies the preset cross-correlation processing condition according to the total duration of the current sampling includes: If the total duration of the current sampling is greater than or equal to the set duration and the total duration of the current sampling reaches an integer multiple of the half cycle corresponding to the electromagnetic flow monitoring device, then determine that the current satisfies the preset cross-correlation processing condition; the half cycle refers to any half cycle in the sampling cycle corresponding to the electromagnetic flow monitoring device.
[0131] As an embodiment, when the cross-correlation module 504 obtains the effective voltage information from the voltage information corresponding to the target sampling points within the set range based on the cross-correlation result, it is specifically used for: Perform a cross-correlation operation on the noisy voltage signal currently matched by the electromagnetic flow monitoring device and the standard voltage signal to obtain an operation result; the operation result includes a parameter for indicating the effective voltage information; Perform a specified operation based on the operation result and the cross-correlation result to obtain the effective voltage information.
[0132] So far, the Figure 5 structural description of the shown device is completed.
[0133] For the implementation processes of the functions and roles of each module in the above device, please refer to the implementation processes of the corresponding steps in the above method for details, which will not be elaborated here.
[0134] For the device embodiments, since they basically correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant parts. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this application. A person of ordinary skill in the art can understand and implement it without creative effort.
[0135] Please refer to Figure 6 , which is a schematic diagram of the hardware structure of an electronic device provided by an exemplary embodiment of this application. The electronic device may include a processor 601, a communication interface 602, a computer-readable storage medium 603, and a communication bus 604. The processor 601, the communication interface 602, and the computer-readable storage medium 603 complete communication with each other through the communication bus 604. Among them, computer program instructions are stored on the computer-readable storage medium 603; the processor 601 can execute the steps of the method described in the above embodiments by executing the computer program instructions stored on the computer-readable storage medium 603. According to the actual functions of the electronic device, the electronic device may further include other hardware, which will not be elaborated here.
[0136] Correspondingly, an embodiment of this application further provides a computer-readable storage medium. A number of computer program instructions are stored on the computer-readable storage medium. When the computer program instructions are executed by a processor, the methods disclosed in the above examples of this application can be implemented.
[0137] Exemplarily, the above computer-readable storage medium can be any electronic, magnetic, optical, or other physical storage device that can contain or store information, such as executable instructions, data, and so on. For example, the computer-readable storage medium can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or a combination thereof. The processor and the memory can be supplemented by or incorporated into dedicated logic circuits.
[0138] The above are only the preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of this application shall be included within the scope of protection of this application.
Claims
1. A signal processing method, characterized in that The method is applied to an electromagnetic flow monitoring device, and the method includes: Performing bias voltage correction on the original voltage information of the object under test collected by the electromagnetic flow monitoring device at different sampling points, so that the voltage information corresponding to each sampling point under the first group of sampling points and the voltage information corresponding to each sampling point under the second group of sampling points within the same sampling period are symmetrically distributed about a preset baseline voltage center; the first group of sampling points includes the sampling points within the first half period of the sampling period, and the second group of sampling points includes the sampling points within the second half period of the sampling period; Identifying abnormal sampling points with spike noise from the different sampling points, and performing spike interference elimination processing on the voltage information under each abnormal sampling point; Filtering the voltage information under each abnormal sampling point and the voltage information under normal sampling points except each abnormal sampling point to obtain the voltage information corresponding to each target sampling point; the voltage information under each target sampling point matches the output signal characteristics of the electromagnetic flow monitoring device; When it is determined that the current meets the preset cross-correlation processing condition according to the total duration of the current sampling, performing cross-correlation processing on the voltage information corresponding to the target sampling points within the set range and the standard voltage signal currently matched by the electromagnetic flow monitoring device, so as to obtain effective voltage information from the voltage information corresponding to the target sampling points within the set range based on the cross-correlation result; the effective voltage information is used to determine the fluid characteristics of the object under test.
2. The method according to claim 1, wherein The performing bias voltage correction on the original voltage information of the object under test collected by the electromagnetic flow monitoring device at different sampling points includes: Determining the voltage correction parameter corresponding to the sampling period based on the original voltage information collected at at least two different reference sampling points belonging to the same sampling period; the reference sampling point is one of the different sampling points; Performing bias voltage correction on the original voltage information at different sampling points based on the voltage correction parameter corresponding to each sampling period.
3. The method according to claim 2, wherein The determining the voltage correction parameter corresponding to the sampling period based on the original voltage information collected at at least two different reference sampling points belonging to the same sampling period includes: Based on each reference sampling point belonging to the same sampling period, determining the bias voltage parameter corresponding to each reference sampling point pair in the sampling period; any reference sampling point pair includes two reference sampling points in different half periods, and the two reference sampling points in the reference sampling point pair differ by half a sampling period; the bias voltage parameter corresponding to any reference sampling point pair depends on the original voltage information corresponding to the two reference sampling points in the reference sampling point pair; Selecting at least one bias voltage parameter from the bias voltage parameters corresponding to each reference sampling point pair, and performing a specified operation on the selected bias voltage parameters, so as to determine the voltage correction parameter corresponding to the sampling period according to the processing result.
4. The method according to claim 1, characterized in that, The identifying abnormal sampling points with spike noise from the different sampling points includes: For each sampling point in the same sampling point group, based on the voltage information at this sampling point and the voltage information corresponding to this sampling point group, determine the voltage difference corresponding to this sampling point, and, based on the voltage information at the neighboring neighbor sampling points adjacent to this sampling point, determine the voltage change amount corresponding to this sampling point; the voltage information corresponding to this sampling point group is determined based on the voltage information at each sampling point in this sampling point group, and the sampling point group is determined based on the sampling points in the first half cycle within a sampling period, or based on the sampling points in the second half cycle within a sampling period; If the voltage difference and voltage change amount corresponding to this sampling point meet the spike noise condition, then determine that this sampling point is an abnormal sampling point with spike noise.
5. The method according to claim 1, wherein The spike interference elimination processing for the voltage information at each abnormal sampling point includes: For each abnormal sampling point, determine the normal sampling point closest to this abnormal sampling point, and then adjust the voltage information at this abnormal sampling point according to the voltage information at the determined normal sampling point, so that the adjusted voltage information has no spike interference.
6. The method according to claim 1, wherein The filtering of the voltage information at each abnormal sampling point and the voltage information at the normal sampling points other than each abnormal sampling point includes: Based on the signal excitation frequency and signal sampling frequency used by the electromagnetic flow monitoring device to collect the measured object, determine the current cascaded band-pass filter to be used; Use the cascaded band-pass filter to filter the voltage information at each abnormal sampling point and the voltage information at the normal sampling points other than each abnormal sampling point.
7. The method according to claim 1, characterized in that, The determination of the current meeting the preset cross-correlation processing condition based on the total duration of the current sampling includes: If the total duration of the current sampling is greater than or equal to the set duration, and the total duration of the current sampling reaches an integer multiple of the half cycle corresponding to the electromagnetic flow monitoring device, then determine that the current meets the preset cross-correlation processing condition; the half cycle refers to any half cycle in the sampling period corresponding to the electromagnetic flow monitoring device.
8. The method according to claim 1, wherein The obtaining of the effective voltage information from the voltage information corresponding to the target sampling points within the set range based on the cross-correlation result includes: Perform a cross-correlation operation on the noisy voltage signal currently matched by the electromagnetic flow monitoring device and the standard voltage signal to obtain an operation result; the operation result includes parameters for indicating the effective voltage information; Perform a specified operation based on the operation result and the cross-correlation result to obtain the effective voltage information.
9. A signal processing device, characterized in that, The device is applied to an electromagnetic flow monitoring device, and the device includes: A correction module for correcting the offset voltage of the original voltage information of the measured object collected by the electromagnetic flow monitoring device at each different sampling point, so that the voltage information corresponding to each sampling point in the first group of sampling points and the voltage information corresponding to each sampling point in the second group of sampling points within the same sampling period are symmetrically distributed based on a preset baseline voltage center; the first group of sampling points includes the sampling points in the first half cycle within the sampling period, and the second group of sampling points includes the sampling points in the second half cycle within the sampling period; An elimination module, used for identifying abnormal sampling points with spike noise from the different sampling points, and performing spike interference elimination processing on the voltage information at each abnormal sampling point; A filtering module is used to filter the voltage information at each abnormal sampling point and the voltage information at normal sampling points other than the abnormal sampling points to obtain the voltage information corresponding to each target sampling point; the voltage information at each target sampling point matches the output signal characteristics of the electromagnetic flow monitoring device; The cross-correlation module is used to perform cross-correlation processing on the voltage information corresponding to the target sampling point within the set range and the standard voltage signal currently matched by the electromagnetic flow monitoring device when it is determined that the preset cross-correlation processing conditions are currently met based on the total duration of the current sampling, so as to obtain effective voltage information from the voltage information corresponding to the target sampling point within the set range based on the cross-correlation result; the effective voltage information is used to determine the fluid characteristics of the object under test.
10. An electronic device, characterized in that, The electronic device includes: Processor; and A computer-readable storage medium, wherein computer program instructions are stored in the computer-readable storage medium, and when the computer program instructions are executed by the processor, the processor is caused to execute the steps in any one of the methods of claims 1 to 8.
Citation Information
Patent Citations
DSP-based electromagnetic flowmeter signal processing system
CN101893465A
Electromagnetic flow signal detection method
CN104061970A
Processing method for unstable signals of electromagnetic flowmeter under conditions of high frequency excitation
CN108020280A
Slurry electromagnetic flowmeter signal processing method and system
CN111486910A
Electromagnetic flowmeter
JP2011033491A
Cited By
Electromagnetic detection signal extraction method and device, equipment and storage medium
CN120630316A
Electromagnetic detection signal extraction method, device, equipment and storage medium
CN120630316B