A reaction tank reagent precise flow control method and device and electronic equipment
By combining a peristaltic pump and a flow meter, and utilizing pulse width modulation and a flow closed-loop controller, the influence of reagent flow rate on flow sensor measurement and bubble error problems were solved, achieving precise flow control of reagents in the reaction tank and meeting experimental accuracy requirements.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WUHAN YZY MEDICAL SCI & TECH
- Filing Date
- 2023-09-27
- Publication Date
- 2026-07-10
AI Technical Summary
In the prior art, different reagent flow rates result in different reagent pressures at the channel inlet, affecting the accuracy of the flow sensor in measuring the flow rate, leading to a decrease in the precision of the liquid inlet control. Furthermore, air bubbles exist during the reagent extraction process, causing errors in the liquid inlet volume, making it difficult to achieve the ±1ml precision required for the experiment.
A method combining a peristaltic pump and a flow meter is adopted. The peristaltic pump is controlled by pulse width modulation to obtain the reagent flow rate and construct a flow closed-loop controller. The input of the flow closed-loop controller is adjusted by combining time weighting to achieve precise flow control of the reagent in the reaction tank.
It improves the accuracy of liquid inlet control, eliminates errors caused by air bubbles, and achieves precise flow control of reagents in the reaction tank, meeting the requirements of experimental accuracy.
Smart Images

Figure CN117234244B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of sensor control, specifically to a method, apparatus, and electronic device for precise flow control of reagents in a reaction tank. Background Technology
[0002] The fully automated slide processing system is an automated instrument for processing cytological, histological, and blood samples before pathological analysis. During operation, the precision required for controlling the reagent flow rate into the reaction tank is extremely high. Different processing steps have different requirements for the amount of reagent drawn into the reaction tank; some steps require a precision error of ±1 ml. If the flow rate is too high, the liquid will rise and submerge the sample area, causing the sample to become waterlogged. If the flow rate is too low, the liquid will not fully wet the bottom surface of the slide, resulting in insufficient contact area between the slide and the liquid. This affects the heating and cooling rates and accuracy. In more severe cases, the slide may not even be in contact with the reagent surface, leading to a complete discrepancy between the system's measured temperature and the sample area temperature. Therefore, both too much and too little liquid will have a serious negative impact on the experiment, leading to experimental failure.
[0003] Precise control of liquid volume usually depends on a sophisticated flow sensor. However, in actual operation, it has been found that relying solely on the flow sensor results in different reagent pressures at the channel inlet due to varying reagent flow rates. This pressure affects the accuracy of the flow rate measured by the flow sensor, leading to reduced precision in liquid volume control. Furthermore, air bubbles during reagent extraction also cause errors in the liquid volume. Current technology struggles to achieve a liquid volume accuracy of ±1 ml, often fluctuating within the ±5 ml range, which fails to meet experimental requirements. Summary of the Invention
[0004] In view of this, it is necessary to provide a method, device and electronic equipment for precise flow control of reagents in a reaction tank, in order to solve the technical problems in the prior art where different reagent flow rates lead to different reagent pressures at the channel inlet, affecting the accuracy of the flow rate measured by the flow sensor and resulting in reduced accuracy of the inlet flow control; and the presence of air bubbles in the reagent extraction process, causing errors in the inlet flow, thus making it difficult to achieve the required accuracy of the inlet flow control for the experiment.
[0005] To address the aforementioned problems, this invention provides a method for precise reagent flow control in a reaction tank, used to control reagent flow in a fully automated slide processing system via a peristaltic pump and a flow meter. The method includes:
[0006] The peristaltic pump rotation is controlled by pulse width modulation, and the reagent flow rate of the peristaltic pump under different control ratios is obtained. The flow control fitting formula is obtained by calibration and fitting based on the control ratio and reagent flow rate.
[0007] A flow closed-loop controller is constructed. The flow meter pulse count is obtained from the flow meter. The real-time reagent flow rate is obtained from the real-time control ratio and the flow control fitting formula. The real-time reagent flow rate is obtained from the flow meter pulse count and the real-time reagent flow rate. The real-time reagent flow rate is used as the input of the flow closed-loop controller, the target control ratio is used as the output of the flow closed-loop controller, and the total amount of reagent extracted is used as the target to perform closed-loop control on the real-time control ratio.
[0008] The control process of the flow closed-loop controller is divided into time intervals, and time weights are set for each time interval. The real-time reagent flow rate input to the flow closed-loop controller is adjusted according to the time weights, and the target control ratio is output. The peristaltic pump is controlled according to the target control ratio to obtain the reagent in the reaction tank that meets the target liquid inlet volume.
[0009] Furthermore, controlling the rotation of the peristaltic pump based on pulse width modulation includes:
[0010] The peristaltic pump rotation is controlled by pulse width modulation, and the duty cycle of the pulse during the control process is used as the input to control the control ratio of the peristaltic pump.
[0011] Furthermore, the reagent flow rate of the peristaltic pump under different control ratios is obtained, and the flow control fitting formula is obtained by calibration and fitting based on the control ratio and reagent flow rate, including:
[0012] Select test reagents and use them to pre-wash the pipeline;
[0013] Set a unit time, and within the same unit time, control the peristaltic pump to extract reagents with pulses of different control ratios. Record the corresponding flow meter pulse count and the standard flow rate of the extracted reagent. Obtain the reagent flow rate based on the flow meter pulse count and the standard flow rate.
[0014] The control ratio threshold that can effectively provide feedback on flow rate is determined based on the number of pulses from the flow meter. Then, a polynomial data fitting is performed based on the control ratio that meets the control ratio threshold and the corresponding reagent flow rate to obtain the flow control fitting formula.
[0015] Furthermore, the reagent flow rate is the ratio of the standard flow rate to the number of pulses of the flow meter, representing the amount of liquid flowing through the flow meter per pulse.
[0016] Furthermore, a flow closed-loop controller is constructed, including:
[0017] A flow closed-loop controller is constructed based on the incremental proportional-integral control principle.
[0018] Furthermore, based on the flow meter pulse count, the real-time reagent flow rate is obtained according to the real-time control ratio and the flow control fitting formula. The real-time reagent flow rate is then obtained based on the flow meter pulse count and the real-time reagent flow rate. The real-time reagent flow rate is used as the input to the flow closed-loop controller, and the target control ratio is used as the output of the flow closed-loop controller. With the total reagent extraction volume as the target, closed-loop control of the real-time control ratio is performed, including:
[0019] The output threshold of the flow closed-loop controller is determined based on the control ratio threshold.
[0020] The flow meter pulse count for the first time period is obtained from the flow meter. The real-time control ratio for the first time period is input into the flow control fitting formula to obtain the real-time reagent flow rate for the first time period. The real-time reagent flow rate for the first time period is calculated based on the flow meter pulse count and the real-time reagent flow rate for the first time period.
[0021] The real-time reagent flow rate in the first time period is used as the input of the flow closed-loop controller, and the flow closed-loop controller outputs the target control ratio for the second time period with the total amount of reagent extracted as the target output.
[0022] The first time period and the second time period are adjacent, and the end time of the first time period is earlier than the start time of the second time period.
[0023] Furthermore, the control process of the flow closed-loop controller is divided into time intervals, and time weights are set for each time interval. The real-time reagent flow rate input to the flow closed-loop controller is adjusted according to the time weights, and a target control ratio is output. Based on the target control ratio, the peristaltic pump is controlled to obtain the reaction tank reagent that meets the target inflow rate, including:
[0024] The control process of the flow closed-loop controller is divided into three time intervals: initial, middle and final.
[0025] The intermediate time interval was set as the standard time weight, the reagent extraction error in the initial and final periods was tested, and the time weights of the initial and final time intervals were set according to the reagent extraction error.
[0026] The real-time reagent flow rate of the input flow closed-loop controller is adjusted according to the time weight in different time intervals, and the target control ratio is obtained from the output. The peristaltic pump is controlled according to the target control ratio to obtain the reagent in the reaction tank that meets the target liquid inlet volume.
[0027] Furthermore, the method for precise flow control of reagents in the reaction tank also includes:
[0028] Perform control tests on the flow closed-loop controller and adjust its parameters based on the test results.
[0029] On the other hand, the present invention also provides a device for precise flow control of reagents in a reaction tank, comprising:
[0030] The flow control fitting unit is used to control the rotation of the peristaltic pump based on the pulse width modulation method, obtain the reagent flow rate of the peristaltic pump under different control ratios, and obtain the flow control fitting formula by calibration fitting based on the control ratio and reagent flow rate.
[0031] The controller construction unit is used to construct a flow closed-loop controller. It obtains the flow meter pulse count based on the flow meter, obtains the real-time reagent flow rate based on the real-time control ratio and the flow control fitting formula, obtains the real-time reagent flow rate based on the flow meter pulse count and the real-time reagent flow rate, uses the real-time reagent flow rate as the input of the flow closed-loop controller, uses the target control ratio as the output of the flow closed-loop controller, and uses the total amount of reagent extracted as the target to perform closed-loop control on the real-time control ratio.
[0032] The time weight setting unit is used to divide the control process of the flow closed-loop controller into time intervals, set time weights for each time interval, adjust the real-time reagent flow rate input to the flow closed-loop controller according to the time weights, output the target control ratio, and control the peristaltic pump to obtain the reaction tank reagent that meets the target liquid inlet volume according to the target control ratio.
[0033] On the other hand, the present invention also provides an electronic device, including a memory and a processor, wherein,
[0034] Memory, used to store computer programs;
[0035] A processor, coupled to a memory, is used to execute a computer program to implement the steps in the reaction tank reagent precise flow control method described above.
[0036] Compared with the prior art, the beneficial effects of the above embodiments are as follows: the present invention solves the problem of the influence of different reagent pressures caused by different reagent flow rates on the accuracy of flow sensor measurement by calibrating and fitting the control ratio and reagent flow rate, thereby improving the accuracy of liquid inlet control; by setting time weight, the liquid inlet error caused by bubbles is eliminated, thereby achieving liquid inlet control of the reagent in the reaction tank that meets the experimental accuracy requirements. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.
[0038] Figure 1 A schematic flowchart of an embodiment of the precise reagent flow control method for reaction tanks provided by the present invention;
[0039] Figure 2This is a schematic diagram of the liquid inlet process according to an embodiment of the present invention;
[0040] Figure 3 This is a schematic diagram of a structure of an embodiment of the reaction tank reagent precision flow control device provided by the present invention;
[0041] Figure 4 A schematic diagram of the structure of an embodiment of the electronic device provided by the present invention. Detailed Implementation
[0042] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. 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.
[0043] It should be understood that the accompanying drawings are not drawn to scale. The flowcharts used in this invention illustrate operations implemented according to some embodiments of the invention. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or performed simultaneously. Furthermore, those skilled in the art, guided by the content of this invention, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0044] Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor systems and / or microcontroller systems.
[0045] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0046] Figure 1 A schematic flowchart of an embodiment of the precise flow control method for reagents in a reaction tank provided by the present invention is shown below. Figure 1 As shown, the method for precise flow control of reagents in the reaction tank includes:
[0047] S101. Control the rotation of the peristaltic pump based on the pulse width modulation method, obtain the reagent flow rate of the peristaltic pump under different control ratios, and obtain the flow control fitting formula by calibration and fitting based on the control ratio and reagent flow rate.
[0048] S102. Construct a flow closed-loop controller. Obtain the flow meter pulse count based on the flow meter. Obtain the real-time reagent flow rate based on the real-time control ratio and the flow control fitting formula. Obtain the real-time reagent flow rate based on the flow meter pulse count and the real-time reagent flow rate. Use the real-time reagent flow rate as the input of the flow closed-loop controller and the target control ratio as the output of the flow closed-loop controller. Use the total amount of reagent extracted as the target to perform closed-loop control on the real-time control ratio.
[0049] S103. Divide the control process of the flow closed-loop controller into time intervals, set time weights for each time interval, adjust the real-time reagent flow rate input to the flow closed-loop controller according to the time weights, output the target control ratio, and control the peristaltic pump according to the target control ratio to obtain the reaction tank reagent that meets the target liquid inlet volume.
[0050] Specifically, in the precise flow control method for reagents in the reaction tank provided by the present invention, the influence of different reagent pressures caused by different reagent flow rates on the accuracy of flow sensor measurement is solved by calibrating and fitting the control ratio and reagent flow rate, thereby improving the accuracy of liquid inlet control; by setting time weight, the liquid inlet error caused by bubbles is eliminated, thereby achieving liquid inlet control of the reagents in the reaction tank that meets the experimental accuracy requirements.
[0051] In a specific embodiment of the present invention, controlling the rotation of a peristaltic pump based on pulse width modulation includes:
[0052] The peristaltic pump rotation is controlled by pulse width modulation, and the duty cycle of the pulse during the control process is used as the input to control the control ratio of the peristaltic pump.
[0053] Specifically, Figure 2 This is a schematic diagram of the liquid inlet process according to an embodiment of the present invention. The liquid inlet pump (peristaltic pump) is driven to rotate by the controller, so that the liquid passes through the flow meter, the liquid inlet pump, the selector valve, and finally reaches the reaction tank. The peristaltic pump is controlled by PWM (Pulse Width Modulation). The more PWM pulses per unit time, the faster the speed of the peristaltic pump. The greater the pressure formed on both sides of the inlet and outlet of the flow meter in the driven pipeline, the greater the number of output pulses of the flow meter per unit time. In this embodiment, the duty cycle of PWM is used as the control ratio for controlling the peristaltic pump, and the control ratio can also be regarded as a percentage of the maximum speed of the motor.
[0054] In a specific embodiment of the present invention, the reagent flow rate of the peristaltic pump under different control ratios is obtained, and a flow control fitting formula is obtained by calibration fitting based on the control ratio and the reagent flow rate, including:
[0055] Select test reagents and use them to pre-wash the pipeline;
[0056] Set a unit time, and within the same unit time, control the peristaltic pump to extract reagents with pulses of different control ratios. Record the corresponding flow meter pulse count and the standard flow rate of the extracted reagent. Obtain the reagent flow rate based on the flow meter pulse count and the standard flow rate.
[0057] The control ratio threshold that can effectively provide feedback on flow rate is determined based on the number of pulses from the flow meter. Then, a polynomial data fitting is performed based on the control ratio that meets the control ratio threshold and the corresponding reagent flow rate to obtain the flow control fitting formula.
[0058] In a specific embodiment of the present invention, the reagent flow rate is the ratio of the standard flow rate to the number of pulses of the flow meter, representing the amount of liquid flowing through each pulse of the flow meter.
[0059] Specifically, in this embodiment, the reagent flow rate is the ratio of the flow rate to the number of flow meter pulses, representing the amount of liquid flowing through the tank per pulse. In the actual reaction tank filling process, the inflow rate is determined by multiplying the flow rate by the number of flow meter pulses, thus controlling the inflow to the reaction tank. However, under different PWM conditions, different peristaltic pump speeds will create different pressures on both sides of the flow meter inlet and outlet within the driven pipeline, and this pressure will affect the reagent flow rate. Therefore, in this embodiment, the relationship between the control ratio and the reagent flow rate is obtained through testing.
[0060] In this example, ultrapure water was used as the test reagent in the reagent tank. A pre-rinse mode was initiated to ensure the pipeline was initially filled with a certain amount of reagent. The volume of liquid drawn per unit time was measured by setting different peristaltic pump speeds (control ratios) in one-minute intervals. The drawn liquid was then transferred to a high-precision graduated cylinder for measurement using a pipette. After repeated measurements, the average value was taken as the standard flow rate corresponding to that control ratio. The number of pulses output by the flow meter was measured using a standard frequency meter. The reagent flow rate was calculated using the standard flow rate and the number of pulses. The test results are shown in the table below.
[0061]
[0062] The test data in the table shows that when the peristaltic pump control ratio increases to a certain level, the number of flow meter pulses per unit time no longer increases, and it cannot accurately reflect the actual flow rate. Therefore, a threshold needs to be set for the control ratio to ensure that the obtained flow meter pulse count can effectively reflect the flow rate. In this embodiment, only the maximum value of the control ratio is set according to the table above. However, it should be understood that in other embodiments, the maximum and / or minimum values can also be set based on actual test results.
[0063] Finally, polynomial fitting was performed on each set of data that met the control ratio threshold to obtain the formula for calculating the flow rate relative to the control ratio:
[0064]
[0065] in, Indicates flow rate, Indicates the control ratio.
[0066] In a specific embodiment of the present invention, a flow closed-loop controller is constructed, including:
[0067] A flow closed-loop controller is constructed based on the incremental proportional-integral control principle.
[0068] In a specific embodiment of the present invention, the flow meter pulse count is obtained from the flow meter, the real-time reagent flow rate is obtained from the real-time control ratio and the flow control fitting formula, the real-time reagent flow rate is obtained from the flow meter pulse count and the real-time reagent flow rate, the real-time reagent flow rate is used as the input of the flow closed-loop controller, the target control ratio is used as the output of the flow closed-loop controller, and the total reagent extraction volume is used as the target to perform closed-loop control of the real-time control ratio, including:
[0069] The output threshold of the flow closed-loop controller is determined based on the control ratio threshold.
[0070] The flow meter pulse count for the first time period is obtained from the flow meter. The real-time control ratio for the first time period is input into the flow control fitting formula to obtain the real-time reagent flow rate for the first time period. The real-time reagent flow rate for the first time period is calculated based on the flow meter pulse count and the real-time reagent flow rate for the first time period.
[0071] The real-time reagent flow rate in the first time period is used as the input of the flow closed-loop controller, and the flow closed-loop controller outputs the target control ratio for the second time period with the total amount of reagent extracted as the target output.
[0072] The first time period and the second time period are adjacent, and the end time of the first time period is earlier than the start time of the second time period.
[0073] Specifically, for peristaltic pump control, the embodiment constructs a flow closed-loop controller based on the incremental proportional-integral control principle, and uses the control ratio threshold obtained in the calibration experiment of the control ratio and reagent flow rate as the output threshold of the flow closed-loop controller.
[0074] The flow closed-loop controller uses the real-time reagent flow rate of the previous time period as the input of the closed-loop controller and the target control ratio as the output of the flow closed-loop controller. At the same time, the target control ratio will affect the reagent flow rate of the next time period. The output real-time control ratio is controlled in a closed loop with the total amount of reagent extracted as the target.
[0075] In a specific embodiment of the present invention, the control process of the flow closed-loop controller is divided into time intervals, a time weight is set for each time interval, the real-time reagent flow rate input to the flow closed-loop controller is adjusted according to the time weight, a target control ratio is output, and the peristaltic pump is controlled according to the target control ratio to obtain the reaction tank reagent that meets the target inlet volume, including:
[0076] The control process of the flow closed-loop controller is divided into three time intervals: initial, middle and final.
[0077] The intermediate time interval was set as the standard time weight, the reagent extraction error in the initial and final periods was tested, and the time weights of the initial and final time intervals were set according to the reagent extraction error.
[0078] The real-time reagent flow rate of the input flow closed-loop controller is adjusted according to the time weight in different time intervals, and the target control ratio is obtained from the output. The peristaltic pump is controlled according to the target control ratio to obtain the reagent in the reaction tank that meets the target liquid inlet volume.
[0079] Specifically, considering that air bubbles may be extracted during the actual extraction process, and that air bubbles are mostly present in the initial and final stages of extraction, a weighting factor needs to be introduced into the calculation of reagent quantities in the initial and final stages.
[0080] First, the control process of the flow closed-loop controller is divided into three time intervals: initial, middle, and final. , and and for the medium term The time range is set with a time weight of 1, and the initial time is... and the end period The test measures the error caused by air bubbles. Different time weights are set according to the error. The real-time actual flow rate input to the flow closed-loop controller is further adjusted by the time weights, and then the output target control ratio is adjusted by feedback to obtain the reagent for the reaction tank that meets the target liquid inlet volume.
[0081] It should be noted that the initial, middle, and final stages are only a division method used in one embodiment of the present invention. In other embodiments, different division methods can be used according to the actual situation. In addition, the embodiment can also consider that the amount of bubbles changes gradually, so a stepped time weight can be set. In the initial stage of extraction, the amount of bubbles gradually decreases and the amount of reagent effectively extracted gradually increases, so a gradually increasing time weight is set; in the final stage of extraction, the amount of bubbles gradually increases and the amount of reagent effectively extracted gradually decreases, so a gradually decreasing time weight is set.
[0082] In a specific embodiment of the present invention, the method for precise flow control of reagents in the reaction tank further includes:
[0083] Perform control tests on the flow closed-loop controller and adjust its parameters based on the test results.
[0084] Finally, after completing the construction of the flow closed-loop controller, it is necessary to test the flow closed-loop controller and correct various parameters and time weights in the controller to improve the control accuracy of the flow closed-loop controller.
[0085] In summary, this invention addresses the impact of varying reagent pressures caused by different reagent flow rates on the accuracy of flow sensor measurements by calibrating and fitting the control ratio and reagent flow rate, thereby improving the accuracy of liquid inlet control. By setting time weights, it eliminates liquid inlet errors caused by air bubbles, achieving liquid inlet control of the reaction tank reagents that meets experimental accuracy requirements.
[0086] Based on the precise flow control method for reagents in reaction tanks provided by this invention, this invention also provides a precise flow control device 300 for reagents in reaction tanks, such as... Figure 3 As shown, it includes:
[0087] The flow control fitting unit 301 is used to control the rotation of the peristaltic pump based on the pulse width modulation method, obtain the reagent flow rate of the peristaltic pump under different control ratios, and obtain the flow control fitting formula by calibration fitting based on the control ratio and reagent flow rate.
[0088] The controller construction unit 302 is used to construct a flow closed-loop controller. It obtains the flow meter pulse count based on the flow meter, obtains the real-time reagent flow rate based on the real-time control ratio and the flow control fitting formula, obtains the real-time reagent flow rate based on the flow meter pulse count and the real-time reagent flow rate, uses the real-time reagent flow rate as the input of the flow closed-loop controller, uses the target control ratio as the output of the flow closed-loop controller, and uses the total amount of reagent extracted as the target to perform closed-loop control on the real-time control ratio.
[0089] The time weight setting unit 303 is used to divide the control process of the flow closed-loop controller into time intervals, set time weights for each time interval, adjust the real-time reagent flow rate input to the flow closed-loop controller according to the time weights, output the target control ratio, and control the peristaltic pump to obtain the reaction tank reagent that meets the target liquid inlet volume according to the target control ratio.
[0090] The reaction tank reagent precise flow control device 300 provided in the above embodiments can realize the technical solution in the above reaction tank reagent precise flow control method embodiments. The specific implementation principle of each module or unit can be found in the corresponding content in the above reaction tank reagent precise flow control method embodiments, and will not be repeated here.
[0091] The present invention also provides an electronic device 400, such as... Figure 4 As shown, Figure 4This is a schematic diagram of an embodiment of the electronic device provided by the present invention. The electronic device 400 includes a processor 401, a memory 402, and a computer program stored in the memory 402 and executable on the processor 401. When the processor 401 executes the program, it implements the above-described method for precise flow control of reagents in the reaction tank.
[0092] In a preferred embodiment, the electronic device further includes a display 403 for displaying the process by which the processor 401 executes the above-described method for precise flow control of reagents in the reaction tank.
[0093] The processor 401 may be an integrated circuit chip with signal processing capabilities. The processor 401 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP) or an application-specific integrated circuit (ASIC). It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can also be a microprocessor or any conventional processor.
[0094] The memory 402 may be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Secure Digital (SD card), Flash Card, etc. The memory 402 stores programs. After receiving an execution instruction, the processor 401 executes the program. The process definition method disclosed in any of the foregoing embodiments of the present invention can be applied to the processor 401, or implemented by the processor 401.
[0095] The display 403 can be an LED display, an LCD display, or a touch screen display, etc. The display 403 is used to display various information from the electronic device 400.
[0096] Understandable Figure 4 The structure shown is only a schematic diagram of one possible structure of electronic device 400. Electronic device 400 may also include more than one of the following: Figure 4 Show more or fewer components. Figure 4 The components shown can be implemented using hardware, software, or a combination thereof.
[0097] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for precise flow control of reagents in a reaction tank, characterized in that, The method for controlling reagent flow in a fully automated slide handling system using a peristaltic pump and a flow meter includes: The peristaltic pump rotation is controlled by pulse width modulation, and the reagent flow rate of the peristaltic pump under different control ratios is obtained. The flow control fitting formula is obtained by calibration and fitting based on the control ratio and the reagent flow rate. A flow closed-loop controller is constructed. The flow meter pulse count is obtained from the flow meter. The real-time reagent flow rate is obtained from the real-time control ratio and the flow control fitting formula. The real-time reagent flow rate is obtained from the flow meter pulse count and the real-time reagent flow rate. The real-time reagent flow rate is used as the input of the flow closed-loop controller, the target control ratio is used as the output of the flow closed-loop controller, and the total amount of reagent extracted is used as the target to perform closed-loop control on the real-time control ratio. The control process of the flow closed-loop controller is divided into time intervals, and a time weight is set for each time interval. The real-time reagent flow rate input to the flow closed-loop controller is adjusted according to the time weight, and a target control ratio is output. The peristaltic pump is controlled according to the target control ratio to obtain the reagent in the reaction tank that meets the target liquid inlet volume.
2. The method for precise flow control of reagents in a reaction tank according to claim 1, characterized in that, The method of controlling the rotation of the peristaltic pump based on pulse width modulation includes: The peristaltic pump rotation is controlled by pulse width modulation, and the duty cycle of the pulse during the control process is used as the input to control the control ratio of the peristaltic pump.
3. The method for precise flow control of reagents in a reaction tank according to claim 1, characterized in that, The process of obtaining the reagent flow rate of the peristaltic pump under different control ratios, and calibrating and fitting the flow control fitting formula based on the control ratio and the reagent flow rate, includes: Select test reagents and use them to pre-wash the pipeline; Set a unit time, and within the same unit time, control the peristaltic pump to extract reagents with pulses of different control ratios, record the corresponding flow meter pulse count and the standard flow rate of the extracted reagent, and obtain the reagent flow rate based on the flow meter pulse count and the standard flow rate; The control ratio threshold that can effectively provide feedback on the flow rate is determined based on the number of pulses from the flow meter. Then, a polynomial data fitting is performed based on the control ratio that meets the control ratio threshold and the corresponding reagent flow rate to obtain the flow control fitting formula.
4. The method for precise flow control of reagents in a reaction tank according to claim 3, characterized in that, The reagent flow rate is the ratio of the standard flow rate to the number of pulses of the flow meter, representing the amount of liquid flowing through the flow meter in each pulse.
5. The method for precise flow control of reagents in a reaction tank according to claim 1, characterized in that, The construction of the flow closed-loop controller includes: A flow closed-loop controller is constructed based on the incremental proportional-integral control principle.
6. The method for precise flow control of reagents in a reaction tank according to claim 3, characterized in that, The process involves obtaining the flow meter pulse count from the flow meter, obtaining the real-time reagent flow rate based on the real-time control ratio and the flow control fitting formula, obtaining the real-time reagent flow rate based on the flow meter pulse count and the real-time reagent flow rate, using the real-time reagent flow rate as the input of the flow closed-loop controller, using the target control ratio as the output of the flow closed-loop controller, and using the total reagent extraction volume as the target to perform closed-loop control on the real-time control ratio, including: The output threshold of the flow closed-loop controller is determined based on the control ratio threshold. The flow meter pulse count for the first time period is obtained from the flow meter. The real-time control ratio for the first time period is input into the flow control fitting formula to obtain the real-time reagent flow rate for the first time period. The real-time reagent flow rate for the first time period is calculated based on the flow meter pulse count and the real-time reagent flow rate for the first time period. The real-time reagent flow rate in the first time period is used as the input of the flow closed-loop controller, and the flow closed-loop controller outputs the target control ratio for the second time period with the total amount of reagent extracted as the target. The first time period is adjacent to the second time period, and the end time of the first time period is earlier than the start time of the second time period.
7. The method for precise flow control of reagents in a reaction tank according to claim 1, characterized in that, The control process of the flow closed-loop controller is divided into time intervals, a time weight is set for each time interval, the real-time reagent flow rate input to the flow closed-loop controller is adjusted according to the time weight, a target control ratio is output, and the peristaltic pump is controlled according to the target control ratio to obtain the reaction tank reagent that meets the target inlet volume, including: The control process of the flow closed-loop controller is divided into three time intervals: initial, middle and final. The intermediate time interval is set as the standard time weight, the reagent extraction error in the initial and final periods is tested, and the time weights of the initial and final time intervals are set according to the reagent extraction error. The real-time reagent flow rate input to the flow closed-loop controller is adjusted according to the time weight in different time intervals, and the target control ratio is output. The peristaltic pump is controlled according to the target control ratio to obtain the reaction tank reagent that meets the target liquid inlet volume.
8. The method for precise flow control of reagents in a reaction tank according to claim 1, characterized in that, The method further includes: The flow closed-loop controller is subjected to control tests, and the parameters of the flow closed-loop controller are adjusted according to the test results.
9. A device for precise flow control of reagents in a reaction tank, characterized in that, include: The flow control fitting unit is used to control the rotation of the peristaltic pump based on the pulse width modulation method, obtain the reagent flow rate of the peristaltic pump under different control ratios, and obtain the flow control fitting formula by calibration fitting based on the control ratio and the reagent flow rate. The controller construction unit is used to construct a flow closed-loop controller. It obtains the flow meter pulse count based on the flow meter, obtains the real-time reagent flow rate based on the real-time control ratio and the flow control fitting formula, obtains the real-time reagent flow rate based on the flow meter pulse count and the real-time reagent flow rate, uses the real-time reagent flow rate as the input of the flow closed-loop controller, uses the target control ratio as the output of the flow closed-loop controller, and performs closed-loop control on the real-time control ratio with the total amount of reagent extracted as the target. The time weight setting unit is used to divide the control process of the flow closed-loop controller into time intervals, set time weights for each time interval, adjust the real-time reagent flow rate input to the flow closed-loop controller according to the time weights, output a target control ratio, and control the peristaltic pump to obtain the reaction tank reagent that meets the target liquid inlet volume according to the target control ratio.
10. An electronic device, characterized in that, Including memory and processor, among which, The memory is used to store computer programs; The processor, coupled to the memory, is used to execute a computer program to implement the steps in the reaction tank reagent precise flow control method according to any one of claims 1 to 8.