Calibration method, system, storage medium, and apparatus for proportional valve
By determining the proportional valve opening current and judging the monotonicity of the current and flow values using the bisection method, the problem of inaccurate proportional valve calibration in the prior art is solved, and more efficient and accurate flow control is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN COMEN MEDICAL INSTR
- Filing Date
- 2023-09-21
- Publication Date
- 2026-07-10
AI Technical Summary
In existing technologies, the proportional valve of a ventilator is difficult to adapt to the effects of factors such as differential pressure changes, current interference, and sensor noise during flow control, resulting in inaccurate calibration.
The proportional valve opening current is determined by the bisection method, and calibration is performed by checking whether the current and flow values within the current range meet the monotonicity requirement. This includes filtering and comparing the average flow rate to determine the opening current, and adjusting the current value using the bisection method to ensure monotonically increasing.
It improves the accuracy and efficiency of proportional valve calibration, solves the problems of excessive calibration time and misjudgment caused by differences in valve characteristics, and achieves stability in flow control.
Smart Images

Figure CN117339075B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of equipment calibration technology, and in particular to calibration methods, systems, storage media, and devices for proportional valves. Background Technology
[0002] A ventilator is a vital medical device that can prevent and treat respiratory failure, reduce complications, and save and prolong patients' lives. As an effective means of artificially replacing spontaneous ventilation, it has been widely used in respiratory failure caused by various reasons, anesthetic respiratory management during major surgery, respiratory support therapy, and emergency resuscitation, and occupies a very important position in the field of modern medicine.
[0003] In the existing technology, the proportional valve of the ventilator is mostly an electromagnetic proportional valve to control parameters such as flow rate. The electromagnetic proportional valve is a proportional valve that uses a proportional electromagnet as an electromechanical conversion element. The electromagnet converts the input current signal into a force and displacement mechanical signal output, thereby controlling parameters such as pressure, flow rate and direction.
[0004] This proportional valve control method achieves parameter control by converting between electrical signals, mechanical signals, and parameter signals. However, it is difficult to adapt to the effects of changes in differential pressure, current interference, and sensor noise during flow control. Therefore, this application proposes a calibration method for proportional valves that can control parameter magnitude solely through the conversion between electrical signals and parameter signals. Summary of the Invention
[0005] Therefore, it is necessary to propose a calibration method for proportional valves to address the above-mentioned problems.
[0006] A calibration method for a proportional valve, the method comprising the following steps:
[0007] The opening current of the proportional valve is determined using the bisection method;
[0008] The proportional valve current range is determined based on the proportional valve opening current and the proportional valve limiting current, wherein the proportional valve opening current is less than the proportional valve limiting current.
[0009] Obtain several current values and their corresponding flow rates within the current range of the proportional valve;
[0010] The calibration is complete when the given current values and their corresponding flow rates satisfy the condition of monotonicity.
[0011] In the above scheme, before determining the proportional valve opening current according to the dichotomy method, the following steps are also included:
[0012] Collect the maximum stable flow rate output by the proportional valve;
[0013] The maximum stable flow rate output by the proportional valve is filtered to determine the average flow rate;
[0014] The average flow rate is compared with the flow detection threshold;
[0015] If the average flow rate is greater than or equal to the flow detection threshold, then the calibration of the proportional valve begins.
[0016] In the above scheme, determining the proportional valve opening current according to the dichotomy method specifically includes:
[0017] The proportional valve is driven according to the initial current, so that the proportional valve outputs a stable flow rate;
[0018] The stable flow rate output by the proportional valve is taken as the first flow rate;
[0019] The first flow rate is filtered to obtain a first average flow rate value;
[0020] When the first average flow rate value is within the flow rate threshold range, the initial current is the proportional valve source current;
[0021] When the first average flow rate value is outside the flow rate threshold range, the proportional valve source current is determined according to the dichotomy method.
[0022] If the proportional valve source current meets the current threshold range, the proportional valve source current is determined to be the proportional valve opening current.
[0023] In the above scheme, when the first average flow value is within the flow threshold range, the initial current is the proportional valve source current, specifically including: when the first average flow value satisfies: first fixed flow value ≤ first average flow value ≤ second fixed flow value, then the initial current is the proportional valve source current.
[0024] In the above scheme, determining the proportional valve source current according to the bisection method specifically includes:
[0025] In the bisection method, the initial value of the smallest end is the current value corresponding to the first fixed flow rate value, the initial value of the largest end is the current value corresponding to the second fixed flow rate value, and the initial value of the middle current value is the initial current.
[0026] The initial value of the minimum end is less than the initial value of the intermediate current value, which is less than the initial value of the maximum end.
[0027] The proportional valve is driven according to the intermediate current value, and the stable flow rate output by the proportional valve is filtered to obtain the intermediate flow rate value.
[0028] When the intermediate flow rate value satisfies the condition that the first fixed flow rate value ≤ the intermediate flow rate value ≤ the second fixed flow rate value, the binary search cycle is terminated, and the intermediate current value corresponding to the intermediate flow rate value is taken as the proportional valve source current.
[0029] In the above scheme, when the plurality of current values and their corresponding flow rates do not satisfy monotonicity, the scheme further includes:
[0030] The proportional valve is driven using the first current value that does not satisfy monotonicity.
[0031] Collect the proportional valve output flow rate corresponding to the first non-monotonic current value;
[0032] The output flow rate of the proportional valve is filtered to obtain a second average flow rate value;
[0033] The proportional valve opening current is re-determined based on the comparison between the second average flow rate value and the flow rate threshold.
[0034] The proportional valve current range is redefined based on the proportional valve opening current and the proportional valve limiting current, wherein the proportional valve opening current is less than the proportional valve limiting current.
[0035] Reacquire several current values and their corresponding flow values within the current range of the proportional valve;
[0036] The calibration is complete when the given current values and their corresponding flow rates satisfy the condition of monotonicity.
[0037] In the above scheme, when the plurality of current values and their corresponding flow values do not satisfy monotonicity, the method further includes: increasing the number of abnormal flags; when the number of abnormal flags is greater than the abnormal flag number threshold, calibration is stopped and an early warning is issued.
[0038] This application also proposes a flow calibration system for a proportional valve, the system comprising: a proportional valve opening current unit, a proportional valve current range acquisition unit, and a detection unit;
[0039] The proportional valve opening current unit is used to determine the proportional valve opening current according to the dichotomy method.
[0040] The proportional valve current range acquisition unit is used to determine the proportional valve current range based on the proportional valve opening current and the proportional valve limit current, wherein the proportional valve opening current is less than the proportional valve limit current.
[0041] The detection unit is used to acquire several current values and their corresponding flow values within the current range of the proportional valve, and to detect whether the several current values and their corresponding flow values satisfy monotonicity. When they do, the calibration is completed.
[0042] This application also proposes a readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the above-described calibration method for a proportional valve.
[0043] This application also proposes a computer device including a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the above-described calibration method for a proportional valve.
[0044] The embodiments of this invention have the following beneficial effects: First, the opening current of the proportional valve is determined using the bisection method; then, the current range of the proportional valve is determined based on the opening current and the limiting current, wherein the opening current is less than the limiting current; finally, several current values and their corresponding flow values within the current range are obtained; when the several current values and their corresponding flow values satisfy monotonicity, the calibration is completed. This calibration method, by determining the opening current of the proportional valve using the bisection method, overcomes the problem of excessively long calibration time caused by large opening currents due to differences in valve characteristics. Simultaneously, by determining whether the current values and their corresponding flow values meet monotonicity, it solves the calibration error problem caused by differences in the proportional valve characteristic curves, thus improving the calibration pass rate. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] in:
[0047] Figure 1 This is a schematic diagram of a calibration method for a proportional valve in one embodiment;
[0048] Figure 2 A schematic diagram illustrating the method for checking whether a proportional valve can be used normally before calibration;
[0049] Figure 3 This is a schematic flowchart of a method for determining the proportional valve opening current using the dichotomy method in one embodiment.
[0050] Figure 4 A flowchart illustrating the process for determining the opening current of a proportional valve;
[0051] Figure 5 This is a schematic diagram of a normal valve flow-current curve in one embodiment;
[0052] Figure 6 This is a schematic diagram of an abnormal valve flow-current curve in one embodiment;
[0053] Figure 7 This is a flowchart illustrating a method for correcting a proportional valve when several current values and their corresponding flow values do not satisfy monotonicity, as described in one embodiment. Detailed Implementation
[0054] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0055] In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the invention. However, it will be apparent to those skilled in the art that the invention can be practiced without one or more of these details. In other instances, certain technical features well-known in the art have not been described to avoid confusion with the invention. It should be understood that the invention can be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, the provision of these embodiments will make the disclosure thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0056] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. When used herein, the singular forms “a,” “an,” and “the” are also intended to include the plural forms, unless the context clearly indicates otherwise. The terms “comprising” and / or “including,” when used in this specification, identify the presence of said features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups. When used herein, the term “and / or” includes any and all combinations of the associated listed items.
[0057] Currently, if there are significant differences between individual proportional valves, these differences can easily lead to misjudgments during proportional valve calibration, resulting in non-monotonic calibration data. Therefore, a calibration mechanism is needed to solve this problem.
[0058] like Figure 5The figure shows a normal valve flow-current curve, where the straight line represents the current and the sawtooth line represents the flow. As can be seen from the figure, when a 90mA current is used for control, there is no flow output. After stabilizing for a period of time, the current becomes 0mA and the valve is closed. Then, a 140mA current is used for control, at which point the flow rate is about 38L / Min. After the flow rate stabilizes, the valve is closed. After the valve is closed for a period of time, a 90mA current is used for control again, but there is still no flow output.
[0059] like Figure 6 The diagram shows an abnormal valve flow-current curve, where the straight line represents current and the sawtooth line represents flow. As can be seen, initially, a 100mA current is used for control, resulting in no flow output. After stabilizing for a period, the current drops to 0mA, and the valve is closed. Then, a 200mA current is used for control, resulting in a flow rate of approximately 35L / min. After the flow rate stabilizes, the valve is closed. After a period of closure, a 100mA current is used again, resulting in an output flow rate of approximately 3L / min. This leads to a misjudgment of the opening flow rate, which is then used for calibration. Under normal conditions, this valve cannot produce flow at 100mA, and the current increments at low flow rates are relatively small. Therefore, the flow rate at the next point is very likely to be less than the opening flow rate, causing a non-monotonic error. This phenomenon is not very noticeable at low flow rates. However, if a 120mA or higher current is used to open the valve instead of 100mA after the initial 100mA current fails to produce flow and the valve is closed, the abnormal phenomenon will become more pronounced.
[0060] The methods for calibrating proportional valves can generally be approached from the following two perspectives:
[0061] One method involves using a small current to control the intake proportional valve for a cumulative testing approach. The current at which the flow rate is between 1 and 3 L / min is used as the initial current. A calibration current table is created, dividing the initial current and maximum current into calibration points. The intake proportional valve is then controlled according to this table, and the current and corresponding flow rate at each point are recorded. Starting from the second point, the data is compared with the previous point to determine if it monotonically increases. If not, calibration stops and an error is reported. This method uses fixed, small current values to find the opening current. However, in actual calibration, due to differences between valves, some valves have larger opening currents, which consumes considerable time in the process of finding the correct opening current.
[0062] Secondly, the starting current of 1-3 L / min is first found using the binary search method, and then a current table is created. The intake proportional valve is controlled according to the table, and the corresponding current and flow rate are recorded. When performing monotonicity judgment, due to the characteristics of some proportional valves, misjudgment of the opening current may occur. Therefore, a special handling is made for the monotonicity judgment of the next point after the opening current: if the data is not monotonic, the value of the opening current will be found again by binary search based on the current of the next point after the opening current, and the non-monotonic flag will be incremented by 1. When the non-monotonic flag is greater than 5, the calibration will stop and an error will be reported. This method uses the binary search method to find the opening current. Due to the valve characteristics, after opening a current value, the valve needs to be closed before opening the next current value. Otherwise, misjudgment of the opening current will occur, leading to calibration failure. However, some valve characteristics are too different, and even if the valve is closed, misjudgment may still occur. Therefore, the monotonicity judgment of the point after the opening current is processed to find the true opening current.
[0063] In summary, based on the above two methods for calibrating proportional valves, this application has determined the calibration method for the proportional valve in this application. By controlling the opening current of the proportional valve to generate a monotonically increasing flow rate, and recording the corresponding current, it is then determined whether the current and its corresponding flow rate satisfy the monotonically increasing condition, thereby achieving the calibration of the proportional valve.
[0064] To fully understand the present invention, a detailed structure will be presented in the following description in order to illustrate the technical solution proposed by the present invention. Optional embodiments of the present invention are described in detail below. However, in addition to these detailed descriptions, the present invention may have other embodiments.
[0065] like Figure 1 As shown, in one embodiment, a calibration method for a proportional valve is provided, which includes steps S101 to S104, detailed below:
[0066] S101. Determine the proportional valve opening current using the bisection method;
[0067] S102. Determine the proportional valve current range based on the proportional valve opening current and the proportional valve limit current, where the proportional valve opening current < the proportional valve limit current.
[0068] In some embodiments, the limiting current of the proportional valve is 180mA.
[0069] S103. Obtain several current values and their corresponding flow values within the current range of the proportional valve.
[0070] S104. When several current values and their corresponding flow rates satisfy the condition of monotonicity, the calibration is complete.
[0071] Among them, several current values and their corresponding flow rates satisfy the condition that monotonicity means monotonically increasing, that is, when the current value increases, the corresponding flow rate value also increases with the increase of the current value.
[0072] like Figure 2 As shown, in some embodiments, before determining the proportional valve opening current according to the dichotomy method, the following steps are also included:
[0073] S110, Collects the maximum stable flow rate output by the proportional valve;
[0074] S111. Filter the maximum stable flow rate output by the proportional valve to determine the average flow rate;
[0075] Preferably, the filtering method is mean filtering or average value filtering.
[0076] S112. Compare the average flow rate with the flow detection threshold;
[0077] Generally, the flow detection threshold is preset using manual experience values depending on the specific application scenario. In this application, the flow detection threshold is 80L / Min.
[0078] S113. If the average flow rate is greater than or equal to the flow detection threshold, then start the calibration of the proportional valve.
[0079] In practical applications, before determining the opening current of the proportional valve according to the binary method, the maximum flow rate of the valve must be detected first. Usually, a 98% duty cycle is used to control the intake proportional valve. After the flow rate stabilizes, the output flow rate is collected and the maximum flow rate threshold is determined. If the collected stable output flow rate of the proportional valve is greater than 80L / Min, the test is passed (that is, the proportional valve has no quality problems and can meet the normal flow rate requirement). Otherwise, the calibration stops and an error is reported.
[0080] like Figure 3 As shown, in some embodiments, the proportional valve opening current is determined according to the dichotomy method, specifically including:
[0081] S120. Drive the proportional valve according to the initial current so that the proportional valve outputs a stable flow.
[0082] S121. Use the stable flow rate output by the proportional valve as the first flow rate;
[0083] S122. Filter the first flow rate to obtain the first average flow rate value;
[0084] S123. When the first average flow rate value is within the flow rate threshold range, the initial current is the proportional valve source current.
[0085] Preferably, when the first average flow rate value is within the flow rate threshold range, the initial current is the proportional valve source current, specifically including: when the first average flow rate value satisfies: first fixed flow rate value ≤ first average flow rate value ≤ second fixed flow rate value, the initial current is the proportional valve source current;
[0086] S124. When the first average flow rate value is outside the flow rate threshold range, the proportional valve source current is determined according to the dichotomy method.
[0087] Preferably, when the first average flow rate value is outside the flow rate threshold range, the proportional valve source current is determined according to the dichotomy method, specifically including:
[0088] In the bisection method, the initial value of the smallest end is the current value corresponding to the first fixed flow rate, the initial value of the largest end is the current value corresponding to the second fixed flow rate, and the initial value of the middle current value is the initial current.
[0089] The initial value at the smallest end < the initial value at the middle end < the initial value at the largest end;
[0090] The proportional valve is driven based on the intermediate current value, and the stable flow rate output by the proportional valve is filtered to obtain the intermediate flow rate value.
[0091] When the intermediate flow rate value satisfies: first fixed flow rate value ≤ intermediate flow rate value ≤ second fixed flow rate value, the binary search cycle is terminated, and the intermediate current value corresponding to the intermediate flow rate value is used as the proportional valve source current.
[0092] Among them, the current value corresponding to the first fixed flow rate, the current value corresponding to the second fixed flow rate, and the initial current are preset using manual experience values according to different application scenarios.
[0093] S125. If the proportional valve source current meets the current threshold range, determine the proportional valve source current as the proportional valve opening current.
[0094] For S124 and S125 above, use as follows Figure 4 The flowchart shown below illustrates the implementation method in detail:
[0095] Based on the intermediate current value I mid The proportional valve is driven, and the stable flow rate output by the proportional valve is filtered to obtain the intermediate flow rate value M.
[0096] When the intermediate flow rate M is less than the first fixed flow rate, the intermediate current value I corresponding to the intermediate flow rate M at this time is used. mid Replace the least end I in the binary search method min That is, the least significant end I min =Intermediate current value I mid And recalculate the intermediate current value I. midIts expression is:
[0097]
[0098] When the intermediate flow rate M is greater than the second fixed flow rate, the intermediate current value I corresponding to the intermediate flow rate M at this time is used. mid Replace the largest end I in the binary search method max That is, the largest end I max =Intermediate current value I mid And recalculate the intermediate current value I. mid Its expression is:
[0099]
[0100] Wherein, the second fixed flow rate value is greater than the first fixed flow rate value;
[0101] The intermediate current value I was recalculated. mid Then, repeat the above steps until the intermediate flow rate M satisfies: first fixed flow rate value ≤ intermediate flow rate value M ≤ second fixed flow rate value. At this point, terminate the binary search loop and set the intermediate current value I corresponding to the intermediate flow rate M. mid As the source current of the proportional valve;
[0102] If the proportional valve source current meets the current threshold range, the proportional valve source current is determined to be the proportional valve opening current; otherwise, the calibration fails.
[0103] In some embodiments, the proportional valve source current meets the current threshold range including: proportional valve source current < current threshold. Further, in this application, the current threshold is 140mA.
[0104] In some embodiments, the first fixed flow rate value is 1 L / Min and the second fixed flow rate value is 3 L / Min.
[0105] In some embodiments, an initial current is first used to drive the proportional valve. After the flow rate stabilizes, the flow rate data of the gas flow analyzer is collected (the output flow rate of the proportional valve is different when driven by different currents). The actual flow rate is obtained by filtering the average value. The obtained actual value is then judged according to the threshold of 1L / Min to 3L / Min. If it is greater than 3L / Min, the current is taken as the maximum end of the bisection current range. If it is less than 1L / Min, the current is taken as the minimum end of the bisection current range. Then, the midpoint of the current range is taken again for the next valve opening and judgment until the opening current of the proportional valve of 1L / Min to 3L / Min is found. The current at this time is then checked. If the source current of the proportional valve is greater than or equal to 140mA, the calibration stops and an error is reported. Otherwise, this current is taken as the opening current.
[0106] Preferred, such as Figure 7 As shown, in some embodiments, when the plurality of current values and their corresponding flow rates do not satisfy monotonicity, the method further includes:
[0107] S501. Drive the proportional valve using the first current value that does not satisfy monotonicity.
[0108] S502. Collect the proportional valve output flow rate corresponding to the first current value that does not satisfy monotonicity.
[0109] S503. Filter the output flow of the proportional valve to obtain the second average flow value;
[0110] S504. The proportional valve opening current is re-determined based on the comparison between the second average flow rate value and the flow rate threshold.
[0111] In some embodiments, the principle of redetermining the proportional valve opening current based on the comparison between the second average flow rate value and the flow rate threshold is the same as the principle of determining the proportional valve opening current for the first time. In this case, the first current value that does not satisfy monotonicity is taken as the minimum current end of the bisection method, and the maximum current end in the bisection method when determining the proportional valve source current in the previous time is taken as the maximum current end of the current in this bisection method. The bisection method is used again to find the opening current, and the termination and determination conditions are the same as the conditions for determining the proportional valve opening current for the first time.
[0112] S505. Re-determine the proportional valve current range based on the proportional valve opening current and the proportional valve limit current, where the proportional valve opening current < the proportional valve limit current.
[0113] S506. Reacquire several current values and their corresponding flow values within the proportional valve current range.
[0114] S507. When several current values and their corresponding flow rates satisfy the condition of monotonicity, the calibration is complete.
[0115] If several current values and their corresponding flow rates still do not satisfy the monotonicity condition, steps S501-S507 will be repeated.
[0116] Preferably, when several current values and their corresponding flow values do not satisfy monotonicity, the method further includes: increasing the number of abnormal flags; when the number of abnormal flags exceeds the abnormal flag number threshold, calibration is stopped and an alarm is issued.
[0117] In some embodiments, in combination with valve characteristics, when judging monotonicity at the next point after the opening current, if a non-monotonic phenomenon occurs, the current at this time is taken as the minimum current endpoint of the bisection method and the bisection method is used again to find the opening current. This reduces the search range and helps to avoid abnormal phenomena. At the same time, the number of abnormal flags is incremented by one. When the number of abnormal flags is greater than 5, it is considered that the valve characteristics are too poor, an alarm is triggered, and calibration is stopped.
[0118] In summary, this application's solution first determines the proportional valve's opening current using a bisection method; then, it determines the proportional valve's current range based on the opening current and the limiting current, where the opening current < the limiting current; finally, it obtains several current values and their corresponding flow rates within the proportional valve's current range; when these current values and their corresponding flow rates satisfy a monotonic (monotonically increasing) condition, the calibration is complete. This calibration method determines the proportional valve's opening current using a bisection method, overcoming the problem of excessively long calibration times caused by large opening currents due to differences in valve characteristics. Simultaneously, it determines whether the current and corresponding flow rate data conform to a monotonically increasing condition, solving the calibration error problem caused by differences in the proportional valve's characteristic curves and improving the proportional valve calibration effect.
[0119] This application also proposes a flow calibration system for a proportional valve, the system comprising: a proportional valve opening current unit, a proportional valve current range acquisition unit, and a detection unit;
[0120] The proportional valve opening current unit is used to determine the proportional valve opening current according to the dichotomy method.
[0121] The proportional valve current range acquisition unit is used to determine the proportional valve current range based on the proportional valve opening current and the proportional valve limit current, wherein the proportional valve opening current < the proportional valve limit current.
[0122] The detection unit is used to acquire several current values and their corresponding flow values within the current range of the proportional valve, and to detect whether the several current values and their corresponding flow values meet the monotonicity requirement. When they do, the calibration is completed.
[0123] This application also proposes a readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the calibration method for the proportional valve in any of the above method embodiments, for example, performing the above-described... Figure 1 Method steps S101 to S104.
[0124] This application also proposes a computer device, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the calibration method for a proportional valve in any of the above method embodiments, for example, performing the above-described... Figure 1 Method steps S101 to S104.
[0125] Those skilled in the art will understand that implementing all or part of the processes in the above embodiments can be accomplished by instructing related hardware through a computer program. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0126] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0127] The embodiments described above are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application's patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. The embodiments disclosed above are merely preferred embodiments of the present invention and should not be construed as limiting the scope of the present invention. Therefore, equivalent variations made according to the claims of this invention are still within the scope of this invention.
Claims
1. A calibration method for a proportional valve, characterized in that, The method includes the following steps: The opening current of the proportional valve is determined using the bisection method; The proportional valve current range is determined based on the proportional valve opening current and the proportional valve limiting current, wherein the proportional valve opening current is less than the proportional valve limiting current. Obtain several current values and their corresponding flow rates within the current range of the proportional valve; The calibration is complete when the given current values and their corresponding flow rates satisfy the condition of monotonicity. When the aforementioned current values and their corresponding flow rates do not satisfy monotonicity, the following also applies: The proportional valve is driven using the first current value that does not satisfy monotonicity. Collect the proportional valve output flow rate corresponding to the first non-monotonic current value; The output flow rate of the proportional valve is filtered to obtain a second average flow rate value; The proportional valve opening current is re-determined based on the comparison between the second average flow rate value and the flow rate threshold. The proportional valve current range is redefined based on the proportional valve opening current and the proportional valve limiting current, wherein the proportional valve opening current is less than the proportional valve limiting current. Reacquire several current values and their corresponding flow values within the current range of the proportional valve; The calibration is complete when the given current values and their corresponding flow rates satisfy the condition of monotonicity. When the plurality of current values and their corresponding flow values do not satisfy monotonicity, the method further includes: increasing the number of abnormal flags; when the number of abnormal flags exceeds the abnormal flag number threshold, calibration is stopped and an early warning is issued.
2. The calibration method for a proportional valve according to claim 1, characterized in that, Before determining the proportional valve opening current using the bisection method, the process also includes: Collect the maximum stable flow rate output by the proportional valve; The maximum stable flow rate output by the proportional valve is filtered to determine the average flow rate; The average flow rate is compared with the flow detection threshold; If the average flow rate is greater than or equal to the flow detection threshold, then the calibration of the proportional valve begins.
3. The calibration method for a proportional valve according to claim 1, characterized in that, The determination of the proportional valve opening current using the bisection method specifically includes: The proportional valve is driven according to the initial current, so that the proportional valve outputs a stable flow rate; The stable flow rate output by the proportional valve is taken as the first flow rate; The first flow rate is filtered to obtain a first average flow rate value; When the first average flow rate value is within the flow rate threshold range, the initial current is the proportional valve source current; When the first average flow rate value is outside the flow rate threshold range, the proportional valve source current is determined according to the dichotomy method. If the proportional valve source current meets the current threshold range, the proportional valve source current is determined to be the proportional valve opening current.
4. The calibration method for a proportional valve according to claim 3, characterized in that, When the first average flow rate value is within the flow rate threshold range, the initial current is the proportional valve source current, specifically including: when the first average flow rate value satisfies: first fixed flow rate value ≤ first average flow rate value ≤ second fixed flow rate value, then the initial current is the proportional valve source current.
5. The calibration method for a proportional valve according to claim 4, characterized in that, The determination of the proportional valve source current according to the bisection method specifically includes: In the bisection method, the initial value of the smallest end is the current value corresponding to the first fixed flow rate value, the initial value of the largest end is the current value corresponding to the second fixed flow rate value, and the initial value of the middle current value is the initial current. The initial value of the minimum end is less than the initial value of the intermediate current value, which is less than the initial value of the maximum end. The proportional valve is driven according to the intermediate current value, and the stable flow rate output by the proportional valve is filtered to obtain the intermediate flow rate value. When the intermediate flow rate value satisfies the condition that the first fixed flow rate value ≤ the intermediate flow rate value ≤ the second fixed flow rate value, the binary search cycle is terminated, and the intermediate current value corresponding to the intermediate flow rate value is taken as the proportional valve source current.
6. A flow calibration system for a proportional valve, characterized in that, The system includes: a proportional valve opening current unit, a proportional valve current range acquisition unit, and a detection unit; The proportional valve opening current unit is used to determine the proportional valve opening current according to the dichotomy method. The proportional valve current range acquisition unit is used to determine the proportional valve current range based on the proportional valve opening current and the proportional valve limit current, wherein the proportional valve opening current is less than the proportional valve limit current. The detection unit is used to acquire several current values and their corresponding flow values within the current range of the proportional valve, and to detect whether the several current values and their corresponding flow values satisfy monotonicity. When they satisfy monotonicity, the calibration is completed. It is also used to further detect when the several current values and their corresponding flow values do not satisfy monotonicity. The process involves: driving a proportional valve using the first non-monotonic current value; collecting the proportional valve output flow rate corresponding to the first non-monotonic current value; filtering the proportional valve output flow rate to obtain a second average flow rate value; re-determining the proportional valve opening current based on the comparison between the second average flow rate value and a flow rate threshold; re-determining the proportional valve current range based on the proportional valve opening current and the proportional valve limit current, wherein the proportional valve opening current < the proportional valve limit current; re-acquiring several current values and their corresponding flow rates within the proportional valve current range; completing the calibration when the several current values and their corresponding flow rates satisfy the monotonicity requirement; and further, when the several current values and their corresponding flow rates do not satisfy the monotonicity requirement, increasing the number of abnormal flags; stopping the calibration and issuing a warning when the number of abnormal flags exceeds an abnormal flag number threshold.
7. A readable storage medium, characterized in that, The readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 5.
8. A computer device, characterized in that, It includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 5.