A scanning valve pressure compensation model correction method, device, equipment and medium

By collecting and digitizing pressure and temperature signals, and using a preset pressure compensation model for processing and accuracy verification, the distortion problem of the silicon piezoresistive pressure sensor is solved, automatic scanning valve distortion correction is achieved, and correction efficiency and accuracy are improved.

CN120448674BActive Publication Date: 2025-09-09LOW SPEED AERODYNAMIC INST OF CHINESE AERODYNAMIC RES & DEV CENT
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510955939.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-11
Publication Date
2025-09-09
Estimated Expiration
2045-07-11

AI Technical Summary

Technical Problem

In the existing technology, silicon piezoresistive pressure sensors have distortion problems such as zero drift, sensitivity drift, and nonlinearity. Manual repair methods consume resources and the accuracy needs to be improved.

Method used

By collecting pressure signals and temperature signals, converting them into digital signals, processing them using a preset pressure compensation model, performing accuracy verification, and correcting the model according to the distortion type, automated scanning valve distortion correction is achieved.

Benefits of technology

The efficiency and accuracy of scanning valve distortion correction are improved, resource consumption is reduced, and automatic model correction is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120448674B_ABST
    Figure CN120448674B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment, and medium for correcting a pressure compensation model of a scanning valve, which relates to the field of computer technology and is applied to a pressure scanning valve. The method comprises: collecting a pressure signal and a temperature signal, converting the pressure signal and the temperature signal from analog signals into digital signals, and obtaining a target pressure signal and a target temperature signal; inputting the target pressure signal and the target temperature signal into a local processor, processing the target pressure signal and the target temperature signal through a preset pressure compensation model in a host computer, and obtaining a target compensated pressure value; performing an accuracy check on the target compensated pressure value to determine whether the preset pressure compensation model has prediction distortion based on the comparison result; if prediction distortion occurs, performing a model correction on the preset pressure compensation model based on the corresponding distortion type to obtain a corrected pressure compensation model. In this way, automated scanning valve distortion correction can be achieved, effectively improving the efficiency and accuracy of scanning valve distortion correction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and medium for correcting a pressure compensation model of a scanning valve. Background Art

[0002] The silicon piezoresistive pressure sensor used in pressure scanning valves utilizes the piezoresistive effect of semiconductor materials to measure pressure based on a Wheatstone bridge. These sensors offer significant advantages in terms of dynamic performance, size, and price, and are widely used in the automotive, medical, aerospace, and environmental sectors. However, due to the temperature sensitivity of semiconductor materials and the limitations of the piezoresistive manufacturing process, silicon piezoresistive pressure sensors commonly suffer from distortion issues such as zero drift, sensitivity drift, and nonlinearity. Currently, most scanner distortion issues are repaired manually, but this method consumes significant resources and requires improved accuracy. Summary of the Invention

[0003] In view of this, the present invention aims to provide a method, device, equipment, and medium for correcting a scanning valve pressure compensation model, which can realize automated scanning valve distortion correction and effectively improve the efficiency and accuracy of scanning valve distortion correction. The specific scheme is as follows:

[0004] In a first aspect, the present application discloses a method for correcting a pressure compensation model of a scanning valve, which is applied to a pressure scanning valve, comprising:

[0005] Collecting a pressure signal and a temperature signal, and converting the pressure signal and the temperature signal from analog signals into digital signals to obtain a target pressure signal and a target temperature signal;

[0006] Inputting the target pressure signal and the target temperature signal into a local processor, and transmitting the target temperature signal to a preset pressure compensation model in a host computer through the local processor, so that the preset pressure compensation model processes the target pressure signal and the target temperature signal to obtain a target compensated pressure value;

[0007] Performing an accuracy check on the target compensated pressure value to determine whether prediction distortion occurs in the preset pressure compensation model based on a comparison result;

[0008] If prediction distortion occurs in the preset pressure compensation model, the preset pressure compensation model is corrected based on the corresponding distortion type to obtain a corrected pressure compensation model.

[0009] Optionally, collecting the pressure signal and the temperature signal, and converting the pressure signal and the temperature signal from analog signals into digital signals to obtain a target pressure signal and a target temperature signal, includes:

[0010] collecting a current pressure signal and a temperature signal through a local sensor, and using the pressure signal and the temperature signal as signals to be converted; wherein the collected pressure signal and the temperature signal are analog signals;

[0011] Sampling the signal to be converted at a preset sampling frequency to convert the signal to be converted into a plurality of discrete data at fixed time intervals, and using the plurality of discrete data as sampling data;

[0012] The sampled data is quantized using a preset analog-to-digital converter to obtain discrete values ​​corresponding to the sampled data, and the discrete values ​​are binary-encoded to convert the discrete values ​​into digital signals to obtain target pressure signals and target temperature signals.

[0013] Optionally, before inputting the target pressure signal and the target temperature signal into a local processor, and transmitting the target temperature signal to a preset pressure compensation model in a host computer through the local processor, so that the preset pressure compensation model processes the target pressure signal and the target temperature signal to obtain a target compensated pressure value, the method further includes:

[0014] Inputting the collected pressure input values ​​and pressure output values ​​at several different temperatures into a preset pressure polynomial function to determine several first fitting coefficients to be determined;

[0015] Inputting the plurality of first fitting coefficients to be determined into a preset temperature polynomial function to determine second fitting coefficients to be determined;

[0016] A preset pressure compensation model is constructed based on the second fitting coefficient to be determined, the preset pressure polynomial function, and the preset temperature polynomial function.

[0017] Optionally, the expression of the preset pressure compensation model is:

[0018] ;

[0019] Among them, P0 is the pressure input value, P is the pressure output value, a i is the first fitting coefficient to be determined, T is the temperature value, b ji is the second fitting coefficient, N and M are the fitting orders.

[0020] Optionally, the accuracy check of the target compensated pressure value to determine whether prediction distortion occurs in the preset pressure compensation model according to a comparison result includes:

[0021] Determining a standard model curve function corresponding to the preset pressure compensation model and the target temperature signal, and inputting the target pressure signal into the standard model curve function to obtain a pressure comparison value;

[0022] comparing the pressure contrast value and the target compensated pressure value to determine whether the pressure contrast value and the target compensated pressure value are consistent;

[0023] If the pressure contrast value is consistent with the target compensated pressure value, it is determined that the preset pressure compensation model has no prediction distortion; if the pressure contrast value is inconsistent with the target compensated pressure value, it is determined that the preset pressure compensation model has prediction distortion.

[0024] Optionally, if the preset pressure compensation model has prediction distortion, performing model correction on the preset pressure compensation model based on a corresponding distortion type to obtain a corrected pressure compensation model includes:

[0025] If the preset pressure compensation model has prediction distortion, constructing a residual map of the preset pressure compensation model to determine the distortion type of the preset pressure compensation model according to the constructed residual map;

[0026] A correction value of the preset pressure compensation model is determined based on the distortion type, and the preset pressure compensation model is corrected based on the correction value.

[0027] Optionally, determining a correction value of the preset pressure compensation model based on the distortion type, and correcting the preset pressure compensation model based on the correction value includes:

[0028] If the distortion type is intercept distortion, determining a first correction value of the preset pressure compensation model based on the residual map, and using the sum of the preset pressure compensation model and the first correction value as a corrected pressure compensation model;

[0029] If the distortion type is slope distortion, a second correction value of the preset pressure compensation model is determined based on the residual map, and a ratio of the preset pressure compensation model to the second correction value is used as a corrected pressure compensation model.

[0030] In a second aspect, the present application discloses a pressure compensation model correction device for a pressure scanning valve, which is applied to a pressure scanning valve, comprising:

[0031] a signal conversion module, configured to collect a pressure signal and a temperature signal, and convert the pressure signal and the temperature signal from analog signals into digital signals to obtain a target pressure signal and a target temperature signal;

[0032] a signal processing module, configured to input the target pressure signal and the target temperature signal into a local processor, and transmit the target temperature signal to a preset pressure compensation model in a host computer via the local processor, so that the preset pressure compensation model processes the target pressure signal and the target temperature signal to obtain a target compensated pressure value;

[0033] a distortion judgment module, configured to perform accuracy verification on the target compensated pressure value, so as to determine whether prediction distortion occurs in the preset pressure compensation model based on a comparison result;

[0034] The model correction module is used to correct the preset pressure compensation model based on the corresponding distortion type if the preset pressure compensation model has prediction distortion, so as to obtain a corrected pressure compensation model.

[0035] In a third aspect, the present application discloses an electronic device, comprising:

[0036] Memory, used to store computer programs;

[0037] The processor is configured to execute the computer program to implement the aforementioned scanning valve pressure compensation model correction method.

[0038] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the aforementioned scanning valve pressure compensation model correction method.

[0039] In the present application, a pressure signal and a temperature signal are first collected, and the pressure signal and the temperature signal are converted from analog signals to digital signals to obtain a target pressure signal and a target temperature signal; the target pressure signal and the target temperature signal are input into a local processor, and the target temperature signal is transmitted to a preset pressure compensation model in a host computer through the local processor, so that the preset pressure compensation model processes the target pressure signal and the target temperature signal to obtain a target compensated pressure value; the target compensated pressure value is accuracy checked to determine whether the preset pressure compensation model has prediction distortion based on the comparison result; if the preset pressure compensation model has prediction distortion, the preset pressure compensation model is model-corrected based on the corresponding distortion type to obtain a corrected pressure compensation model.

[0040] It can be seen that the method of the present application can convert the pressure signal and temperature signal collected by the pressure scanning valve from analog signals into digital signals, and then input the converted target pressure signal and target temperature signal into the local processor, and compensate the target pressure signal and target temperature signal through the preset pressure compensation model in the host computer to obtain the target compensated pressure value, and perform accuracy verification on the target compensated pressure value to determine whether the preset pressure compensation model has prediction distortion based on the obtained comparison result, and in the case of prediction distortion, perform model correction on the preset pressure compensation model based on the determined distortion type to obtain a corrected pressure compensation model. In this way, automated scanning valve distortion correction can be achieved, effectively improving the efficiency of scanning valve distortion correction and improving the accuracy of correction. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0042] Figure 1 This is a flow chart of a method for correcting a scanning valve pressure compensation model disclosed in this application;

[0043] Figure 2 A schematic diagram of a compensation system disclosed in this application;

[0044] Figure 3 This is a schematic diagram of the intercept change of a model disclosed in this application;

[0045] Figure 4 This is a schematic diagram of the slope change of a model disclosed in this application;

[0046] Figure 5 This is a structural schematic diagram of a scanning valve pressure compensation model correction device disclosed in this application;

[0047] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0049] In the prior art, the distortion problem of the scanning valve is mostly repaired manually. However, the manual method consumes a lot of resources, and the accuracy of the repair needs to be improved.

[0050] In order to overcome the above technical problems, the present application discloses a scanning valve pressure compensation model correction method, device, equipment and medium, which can realize automated scanning valve distortion correction and effectively improve the efficiency and accuracy of scanning valve distortion correction.

[0051] See also Figure 1 As shown, an embodiment of the present invention discloses a method for correcting a pressure compensation model of a scanning valve, which is applied to a pressure scanning valve, comprising:

[0052] Step S11 : collecting a pressure signal and a temperature signal, and converting the pressure signal and the temperature signal from analog signals into digital signals to obtain a target pressure signal and a target temperature signal.

[0053] In this embodiment, in order to verify whether the pressure compensation model of the pressure scanning valve has predicted distortion, the pressure signal and temperature signal can be collected by the pressure scanning valve, and then the collected pressure signal and temperature signal can be processed by the preset pressure compensation model to perform accuracy verification on the obtained target compensated pressure value, thereby determining whether the pressure compensation model has been distorted. Therefore, it is first necessary to collect the pressure signal and temperature signal by the pressure scanning valve. Specifically, the temperature signal of the current external environment can be collected by the local temperature sensor of the pressure scanning valve, and the pressure value to be measured can be measured by the pressure chip built into the pressure scanning valve. It should be noted that since the data collected by the temperature sensor and the pressure chip are analog signals, when the data is processed by the preset pressure compensation model, the processed signal is a digital signal. Therefore, in order to facilitate data processing by the computer model, the collected analog signal needs to be converted into a digital signal.

[0054] This embodiment uses A / D conversion (Analog to Digital) to convert analog signals into digital signals. Specifically, a sampling frequency must be set, and the set sampling frequency must comply with the Nyquist sampling theorem to avoid aliasing distortion. The collected pressure and temperature signals are then used as the signals to be converted. The signals to be converted are then sampled according to the set sampling frequency to convert them into discrete data points spaced at fixed intervals. The resulting discrete data points serve as sampled data. The sampled data points are then quantized using a pre-set analog-to-digital converter to obtain discrete values ​​corresponding to the sampled data points. These discrete values ​​are then binary-encoded to map them into binary digital signals, ultimately yielding the target pressure and temperature signals. Binary encoding can employ direct binary encoding, such as natural binary or two's complement, or specialized encoding, such as Gray code, to reduce transmission errors. Since digital signals can be directly processed by computers and complex algorithms, converting the collected signals from analog signals into digital signals facilitates computer processing, thereby indirectly improving processing efficiency.

[0055] Step S12: input the target pressure signal and the target temperature signal into a local processor, and transmit the target temperature signal to a preset pressure compensation model in a host computer through the local processor, so that the preset pressure compensation model processes the target pressure signal and the target temperature signal to obtain a target compensated pressure value.

[0056] In this embodiment, Figure 2 As shown, the target pressure signal and the target temperature signal need to be input to the local processor, that is, Figure 2 The CPU (Central Processing Unit) in the computer then compensates the signal through the preset pressure compensation model in the host computer. It should be noted that before processing the data through the pressure compensation model, it is necessary to ensure that the pressure compensation model has been constructed, and the construction process of the pressure compensation model is as follows: the collected pressure input values ​​and pressure output values ​​at several different temperatures are input into the preset pressure polynomial function to determine several first fitting coefficients to be determined; the several first fitting coefficients to be determined are input into the preset temperature polynomial function to determine the second fitting coefficients to be determined; based on the second fitting coefficients to be determined, the preset pressure polynomial function and the preset temperature polynomial function, a preset pressure compensation model is constructed. Specifically, the establishment of the compensation model is intended to derive the relationship between temperature, standard pressure and measured pressure. During calibration, the output P of the pressure scanning valve is affected by the standard input pressure P0 and the ambient temperature T, and is expressed as a binary function In order to achieve temperature compensation, the inverse function idea is adopted to express the standard pressure P0 as a function of the output P of the pressure scanning valve and the ambient temperature T, that is, Since n-order polynomials can represent continuous function curves in any closed interval, it is assumed that at a certain fixed temperature, the pressure scanning valve is within the range [P min , P max The input and output values ​​in ] can be expressed by a preset pressure polynomial function:

[0057] ;

[0058] Where P0 is the input pressure value and P is the pressure output value of the sensor.

[0059] And due to the influence of temperature, at different temperatures, the first fitting coefficient a in the preset pressure polynomial function i The value of will change. i It is a function of temperature T, and its function expression is a preset temperature polynomial function, and the expression is as follows:

[0060] ;

[0061] Among them, b ji is the second fitting coefficient. And in order to obtain the second fitting coefficient, the N+1 sets of experimental data can be brought into the preset pressure polynomial function and fitted according to the least squares method to obtain a series of first fitting coefficients a i value, and then the obtained a i Substitute the preset temperature polynomial function and obtain b according to the least squares principle. ji Value, here we need M+1 sets of data fitting. Get b ji After the value is obtained, the above two formulas can be combined to construct a preset pressure compensation model, and the expression of the preset pressure compensation model is as follows:

[0062] ;

[0063] After the model is built, it can be integrated into the local pressure scanning valve. Therefore, after the pressure scanning valve completes the signal conversion, the converted target pressure signal and target temperature signal can be processed by the constructed preset pressure compensation model to obtain the target compensated pressure value.

[0064] Step S13: performing an accuracy check on the target compensated pressure value to determine whether prediction distortion occurs in the preset pressure compensation model based on a comparison result.

[0065] In this embodiment, after a period of use, the pressure scanning valve may experience nonlinear drift, which may affect the accuracy of pressure compensation. Therefore, after a period of use, it is necessary to determine whether the preset pressure compensation model has experienced prediction distortion. Specifically, a standard model curve function corresponding to the preset pressure compensation model and the target temperature signal can be determined, and the target pressure signal can be input into the standard model curve function to obtain a pressure comparison value. The pressure comparison value is then compared with the target compensated pressure value to determine whether the preset pressure compensation model has experienced prediction distortion. It should be noted that there may be a certain error between the pressure comparison value and the target compensated pressure value, and this error can be set by the user according to needs. If the error between the pressure comparison value and the target compensated pressure value exceeds the user-set error, it can be determined that the preset pressure compensation model has experienced prediction distortion, and the preset pressure compensation model needs to be corrected to compensate for the model's accuracy. In this way, by comparing the model processing results, it is possible to simply and efficiently determine whether the model processing accuracy is distorted, effectively saving resources and improving efficiency.

[0066] Step S14: If prediction distortion occurs in the preset pressure compensation model, the preset pressure compensation model is corrected based on the corresponding distortion type to obtain a corrected pressure compensation model.

[0067] In this embodiment, when the preset pressure compensation model exhibits prediction distortion, appropriate model corrections can be performed based on the distortion type of the preset pressure compensation model. Specifically, a residual plot corresponding to the current preset pressure compensation model can be constructed to determine the distortion type of the preset pressure compensation model based on the constructed residual plot. For example, if the residuals exhibit systematic deviations across the entire range (e.g., all residuals are above or below the zero line), this indicates an overall model translational deviation, potentially related to an inaccurate intercept. Therefore, intercept distortion can be determined. On the other hand, if the residuals exhibit a trend as the independent variable increases (e.g., the residuals gradually change from positive to negative, or their absolute value gradually increases), this indicates an incorrect estimation of the independent variable's influence on the dependent variable, possibly indicating a slope problem. Therefore, slope distortion can be determined.

[0068] like Figure 3 As shown, if the distortion type determined is intercept distortion, the mean α of all residuals in the residual graph can be calculated. The residual mean directly reflects the deviation of the intercept. If the residual mean is greater than 0, it means that the model prediction value is generally low, and the true intercept should be increased by α. If the residual mean is less than 0, the model prediction value is generally high, and the true intercept should be reduced by α. Therefore, the obtained residual mean α can be used as the first correction value of the model, and the sum of the preset pressure compensation model and the first correction value is used as the corrected pressure compensation model. The corrected model function expression is as follows:

[0069] ;

[0070] like Figure 4 As shown, if the determined distortion type is slope distortion, the slope deviation can be calculated, and the formula for calculating the slope deviation is as follows:

[0071] ;

[0072] Where x is the independent variable, which in this application is the input pressure input value P0, y is the residual value, COV(x, y) is the covariance between the independent variable and the residual, Var(x) is the variance of x, and k is the slope deviation. Furthermore, assuming the current slope is k1, the corrected slope is k1+k. To restore the slope from k1 to k1+k, the ratio λ between the two can be calculated, that is, λ=(k1+k) / k. λ is then used as the second correction value, and the ratio of the preset pressure compensation model to the second correction value is used as the corrected pressure compensation model. The corrected model function expression is as follows:

[0073] .

[0074] It can be seen that the method of the present application can convert the pressure signal and temperature signal collected by the pressure scanning valve from analog signals into digital signals, and then input the converted target pressure signal and target temperature signal into the local processor, and compensate the target pressure signal and target temperature signal through the preset pressure compensation model to obtain the target compensated pressure value, and perform accuracy verification on the target compensated pressure value to determine whether the preset pressure compensation model has prediction distortion based on the obtained comparison result, and in the case of prediction distortion, perform model correction on the preset pressure compensation model based on the determined distortion type to obtain a corrected pressure compensation model. In this way, automated scanning valve distortion correction can be achieved, effectively improving the efficiency of scanning valve distortion correction and improving the accuracy of correction.

[0075] As a preferred embodiment, since the integrated pressure scanning valve has 64 measurement channels, establishing a compensation model for each channel one by one will greatly increase the amount of calculation and reduce the compensation efficiency. Moreover, since the pressure scanning valve is small in size, highly integrated, and has a built-in temperature sensor, in this embodiment, the calibration data of a channel closest to the temperature sensor can be selected to establish the compensation model of the pressure scanning valve and applied to all channels, which can improve efficiency while maintaining a certain compensation accuracy.

[0076] Furthermore, when the pressure scanner is operating, the measured values ​​from the temperature sensor and pressure chip encapsulated within the valve are converted to analog-to-digital values ​​and then fed into the processor. Compensation is then applied using an algorithm stored in the host computer during calibration. The resulting pressure measurement value, including corrected real-time temperature data, is digitally displayed and communicated with the host computer. Unlike traditional sensor temperature compensation, which typically incorporates the compensation module within the microcontroller, storing the pressure scanner compensation model within the host computer significantly improves operational efficiency.

[0077] See also Figure 5 As shown, an embodiment of the present invention discloses a scanning valve pressure compensation model correction device, which is applied to a pressure scanning valve, comprising:

[0078] The signal conversion module 11 is used to collect the pressure signal and the temperature signal, and convert the pressure signal and the temperature signal from analog signals to digital signals to obtain the target pressure signal and the target temperature signal;

[0079] a signal processing module 12, configured to input the target pressure signal and the target temperature signal into a local processor, and transmit the target temperature signal to a preset pressure compensation model in a host computer via the local processor, so that the preset pressure compensation model processes the target pressure signal and the target temperature signal to obtain a target compensated pressure value;

[0080] a distortion judgment module 13, configured to perform accuracy verification on the target compensated pressure value, and determine whether prediction distortion occurs in the preset pressure compensation model based on a comparison result;

[0081] The model correction module 14 is configured to correct the preset pressure compensation model based on the corresponding distortion type if prediction distortion occurs in the preset pressure compensation model, so as to obtain a corrected pressure compensation model.

[0082] In this embodiment, a pressure signal and a temperature signal are first collected, and the pressure signal and the temperature signal are converted from analog signals into digital signals to obtain a target pressure signal and a target temperature signal; the target pressure signal and the target temperature signal are input into a local processor, and the target temperature signal is transmitted to a preset pressure compensation model in a host computer through the local processor, so that the preset pressure compensation model processes the target pressure signal and the target temperature signal to obtain a target compensated pressure value; the target compensated pressure value is accuracy-checked to determine whether the preset pressure compensation model has prediction distortion based on the comparison result; if the preset pressure compensation model has prediction distortion, the preset pressure compensation model is model-corrected based on the corresponding distortion type to obtain a corrected pressure compensation model. It can be seen that the method of the present application can convert the pressure signal and temperature signal collected by the pressure scanning valve from analog signals into digital signals, and then input the converted target pressure signal and target temperature signal into the local processor, and compensate the target pressure signal and target temperature signal through the preset pressure compensation model to obtain the target compensated pressure value, and perform accuracy verification on the target compensated pressure value to determine whether the preset pressure compensation model has prediction distortion based on the obtained comparison result, and in the case of prediction distortion, perform model correction on the preset pressure compensation model based on the determined distortion type to obtain a corrected pressure compensation model. In this way, automated scanning valve distortion correction can be achieved, effectively improving the efficiency of scanning valve distortion correction and improving the accuracy of correction.

[0083] In some embodiments, the signal conversion module 11 may specifically include:

[0084] a first signal conversion unit, configured to collect a current pressure signal and a temperature signal through a local sensor, and use the pressure signal and the temperature signal as signals to be converted; wherein the collected pressure signal and the temperature signal are analog signals;

[0085] a data sampling unit, configured to sample the signal to be converted at a preset sampling frequency to convert the signal to be converted into a plurality of discrete data at fixed time intervals, and use the plurality of discrete data as sampled data;

[0086] The second signal conversion unit is used to quantize the sampled data using a preset analog-to-digital converter to obtain discrete numerical values ​​corresponding to the sampled data, and to binary encode the discrete numerical values ​​to convert the discrete numerical values ​​into digital signals to obtain target pressure signals and target temperature signals.

[0087] In some embodiments, the signal processing module 12 may specifically include:

[0088] A first coefficient determination unit is configured to input a plurality of collected pressure input values ​​and pressure output values ​​at different temperatures into a preset pressure polynomial function to determine a plurality of first fitting coefficients to be determined;

[0089] A second coefficient determination unit is configured to input the plurality of first fitting coefficients to be determined into a preset temperature polynomial function to determine second fitting coefficients to be determined;

[0090] A model building unit is used to build a preset pressure compensation model based on the second fitting coefficient to be determined, the preset pressure polynomial function and the preset temperature polynomial function.

[0091] The expression of the preset pressure compensation model is:

[0092] ;

[0093] Among them, P0 is the pressure input value, P is the pressure output value, a i is the first fitting coefficient to be determined, T is the temperature value, b ji is the second fitting coefficient, N and M are the fitting orders.

[0094] In some embodiments, the distortion judgment module 13 may specifically include:

[0095] a data calculation unit, configured to determine a standard model curve function corresponding to the preset pressure compensation model and the target temperature signal, and input the target pressure signal into the standard model curve function to obtain a pressure comparison value;

[0096] a data comparison unit, configured to compare the pressure comparison value and the target compensated pressure value to determine whether the pressure comparison value and the target compensated pressure value are consistent;

[0097] A distortion judgment unit is configured to determine that no prediction distortion occurs in the preset pressure compensation model if the pressure contrast value is consistent with the target compensated pressure value; and to determine that prediction distortion occurs in the preset pressure compensation model if the pressure contrast value is inconsistent with the target compensated pressure value.

[0098] In some embodiments, the model correction module 14 may specifically include:

[0099] a distortion type determination submodule, configured to construct a residual map of the preset pressure compensation model if prediction distortion occurs in the preset pressure compensation model, and determine the distortion type of the preset pressure compensation model according to the constructed residual map;

[0100] The model correction submodule is configured to determine a correction value of the preset pressure compensation model based on the distortion type, and to correct the preset pressure compensation model based on the correction value.

[0101] In some embodiments, the model correction submodule may specifically include:

[0102] a first model correction unit, configured to determine, if the distortion type is intercept distortion, a first correction value of the preset pressure compensation model based on the residual map, and use a sum of the preset pressure compensation model and the first correction value as a corrected pressure compensation model;

[0103] The second model correction unit is configured to determine a second correction value of the preset pressure compensation model based on the residual map if the distortion type is slope distortion, and use a ratio of the preset pressure compensation model to the second correction value as a corrected pressure compensation model.

[0104] Furthermore, the embodiment of the present application also discloses an electronic device, Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram should not be considered as any limitation to the scope of application of the present application.

[0105] Figure 6 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps of the scanning valve pressure compensation model correction method disclosed in any of the aforementioned embodiments. Furthermore, the electronic device 20 in this embodiment may be a computer.

[0106] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0107] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0108] The operating system 221 is used to manage and control the hardware devices on the electronic device 20 and the computer program 222. The operating system 221 can be Windows Server, NetWare, Unix, Linux, etc. In addition to including a computer program capable of implementing the scanning valve pressure compensation model correction method performed by the electronic device 20 as disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs capable of implementing other specific tasks.

[0109] Furthermore, this application discloses a computer-readable storage medium for storing a computer program. When executed by a processor, the computer program implements the aforementioned method for correcting the scanning valve pressure compensation model. The specific steps of this method can be found in the corresponding content disclosed in the aforementioned embodiments and will not be further elaborated here.

[0110] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.

[0111] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0112] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0113] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0114] The above is a detailed introduction to the technical solution provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for correcting a scanning valve pressure compensation model, characterized in that: Applicable to pressure scanning valves, including: Collecting a pressure signal and a temperature signal, and converting the pressure signal and the temperature signal from analog signals into digital signals to obtain a target pressure signal and a target temperature signal; Inputting the target pressure signal and the target temperature signal into a local processor, and transmitting the target temperature signal to a preset pressure compensation model in a host computer through the local processor, so that the preset pressure compensation model processes the target pressure signal and the target temperature signal to obtain a target compensated pressure value; Performing an accuracy check on the target compensated pressure value to determine whether prediction distortion occurs in the preset pressure compensation model based on a comparison result; If the preset pressure compensation model has prediction distortion, performing model correction on the preset pressure compensation model based on the corresponding distortion type to obtain a corrected pressure compensation model; If the preset pressure compensation model has prediction distortion, the preset pressure compensation model is corrected based on the corresponding distortion type to obtain a corrected pressure compensation model, including: If the preset pressure compensation model has prediction distortion, constructing a residual map of the preset pressure compensation model to determine the distortion type of the preset pressure compensation model according to the constructed residual map; determining a correction value of the preset pressure compensation model based on the distortion type, and correcting the preset pressure compensation model based on the correction value; The determining of the correction value of the preset pressure compensation model based on the distortion type, and correcting the preset pressure compensation model based on the correction value, includes: If the distortion type is intercept distortion, determining a first correction value of the preset pressure compensation model based on the residual map, and using the sum of the preset pressure compensation model and the first correction value as a corrected pressure compensation model; If the distortion type is slope distortion, a second correction value of the preset pressure compensation model is determined based on the residual map, and a ratio of the preset pressure compensation model to the second correction value is used as a corrected pressure compensation model.

2. The scanning valve pressure compensation model correction method according to claim 1, characterized in that: The collecting of the pressure signal and the temperature signal, and converting the pressure signal and the temperature signal from analog signals to digital signals to obtain a target pressure signal and a target temperature signal, includes: collecting a current pressure signal and a temperature signal through a local sensor, and using the pressure signal and the temperature signal as signals to be converted; wherein the collected pressure signal and the temperature signal are analog signals; Sampling the signal to be converted at a preset sampling frequency to convert the signal to be converted into a plurality of discrete data at fixed time intervals, and using the plurality of discrete data as sampling data; The sampled data is quantized using a preset analog-to-digital converter to obtain discrete values ​​corresponding to the sampled data, and the discrete values ​​are binary-encoded to convert the discrete values ​​into digital signals to obtain target pressure signals and target temperature signals.

3. The scanning valve pressure compensation model correction method according to claim 1, characterized in that: Before inputting the target pressure signal and the target temperature signal into the local processor, and transmitting the target temperature signal to a preset pressure compensation model in the host computer through the local processor, so that the preset pressure compensation model processes the target pressure signal and the target temperature signal to obtain a target compensated pressure value, the method further includes: Inputting the collected pressure input values ​​and pressure output values ​​at several different temperatures into a preset pressure polynomial function to determine several first fitting coefficients to be determined; Inputting the plurality of first fitting coefficients to be determined into a preset temperature polynomial function to determine second fitting coefficients to be determined; A preset pressure compensation model is constructed based on the second fitting coefficient to be determined, the preset pressure polynomial function, and the preset temperature polynomial function.

4. The scanning valve pressure compensation model correction method according to claim 3, characterized in that: The expression of the preset pressure compensation model is: ; Among them, P0 is the pressure input value, P is the pressure output value, a i is the first fitting coefficient to be determined, T is the temperature value, b ji is the second fitting coefficient, N and M are the fitting orders.

5. The scanning valve pressure compensation model correction method according to any one of claims 1 to 4, characterized in that: The accuracy check of the target compensated pressure value is performed to determine whether the preset pressure compensation model has prediction distortion according to the comparison result, including: Determining a standard model curve function corresponding to the preset pressure compensation model and the target temperature signal, and inputting the target pressure signal into the standard model curve function to obtain a pressure comparison value; comparing the pressure contrast value and the target compensated pressure value to determine whether the pressure contrast value and the target compensated pressure value are consistent; If the pressure contrast value is consistent with the target compensated pressure value, it is determined that the preset pressure compensation model has no prediction distortion; if the pressure contrast value is inconsistent with the target compensated pressure value, it is determined that the preset pressure compensation model has prediction distortion.

6. A scanning valve pressure compensation model correction device, characterized in that: Applicable to pressure scanning valves, including: a signal conversion module, configured to collect a pressure signal and a temperature signal, and convert the pressure signal and the temperature signal from analog signals into digital signals to obtain a target pressure signal and a target temperature signal; a signal processing module, configured to input the target pressure signal and the target temperature signal into a local processor, and transmit the target temperature signal to a preset pressure compensation model in a host computer via the local processor, so that the preset pressure compensation model processes the target pressure signal and the target temperature signal to obtain a target compensated pressure value; a distortion judgment module, configured to perform accuracy verification on the target compensated pressure value, so as to determine whether prediction distortion occurs in the preset pressure compensation model based on a comparison result; a model correction module, configured to correct the preset pressure compensation model based on a corresponding distortion type if prediction distortion occurs in the preset pressure compensation model, so as to obtain a corrected pressure compensation model; Wherein, the model correction module includes: a distortion type determination submodule, configured to construct a residual map of the preset pressure compensation model if prediction distortion occurs in the preset pressure compensation model, and determine the distortion type of the preset pressure compensation model according to the constructed residual map; a model correction submodule, configured to determine a correction value of the preset pressure compensation model based on the distortion type, and correct the preset pressure compensation model based on the correction value; Wherein, the model correction submodule includes: a first model correction unit, configured to determine, if the distortion type is intercept distortion, a first correction value of the preset pressure compensation model based on the residual map, and use a sum of the preset pressure compensation model and the first correction value as a corrected pressure compensation model; The second model correction unit is configured to determine a second correction value of the preset pressure compensation model based on the residual map if the distortion type is slope distortion, and use a ratio of the preset pressure compensation model to the second correction value as a corrected pressure compensation model.

7. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is configured to execute the computer program to implement the scanning valve pressure compensation model correction method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that Used to store a computer program, wherein when the computer program is executed by a processor, the scanning valve pressure compensation model correction method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Multi-channel pressure scanning valve system

    CN114791330A

  • Method for rapidly calculating wind tunnel test pressure conduction delay correction parameter

    CN117168753A