Liquid level detection method, system and device, computer equipment and storage medium
By obtaining the container type of the liquid container and judging the liquid level contact conditions, the movement state of the sampling probe is controlled, which solves the misjudgment and contamination problems during the sampling process in traditional liquid level detection technology and improves the accuracy of liquid level detection. performance and reliability.
Patent Information
- Application Number
- CN202410793886.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-17
AI Technical Summary
Traditional liquid level detection technology is prone to "vacuum" phenomenon during the sample addition process or the sample needle is inserted too deep, causing contamination, affecting detection accuracy, and it is difficult to effectively remove signal noise.
By obtaining the container type of the liquid container, the corresponding liquid level contact determination conditions are determined, the motion state of the sampling probe is controlled, the capacitance signal and frequency signal are used to determine whether the liquid level is in contact, and it is in a soft stop state when a specific threshold is met. Avoid misjudgment and excessive penetration.
It improves the accuracy and reliability of liquid level detection, reduces the risk of misjudgment and contamination during the sample addition process, and enhances the real-time and accuracy of liquid level detection.
Smart Images

Figure CN118654749A
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical detection and analysis technology, and in particular to a liquid level detection method, system, device, computer equipment, storage medium and computer program product. Background Art
[0002] Liquid level detection technology is widely used in in vitro diagnostic analytical instruments. Common capacitive liquid level detection devices are mainly used for the liquid levels of samples and reagents. In order to reduce the cross contamination of samples caused by the addition of samples to the detection equipment, a liquid level detection system is installed on the addition component of the capacitive liquid level detection device. The reliability, accuracy and real-time performance of the liquid level detection system have a direct impact on the detection results of the analysis equipment.
[0003] Traditional technologies mainly use difference detection method and absolute threshold detection method for liquid level detection. The difference detection method has high requirements for immediacy and is prone to mistakenly identify noise as a liquid level signal when the sampling needle encounters signal noise that briefly reaches the detection threshold, resulting in "empty suction" phenomenon of the sampling needle. Although the absolute threshold detection method can effectively remove noise in the data signal through arithmetic average filtering or recursive filtering, it will increase the response time of the liquid level detection system and may cause the sampling needle to be inserted too deeply into the liquid to be tested, thereby contaminating the sample and is not conducive to improving the accuracy of liquid level detection. Summary of the invention
[0004] Based on this, it is necessary to provide a liquid level detection method, system, device, computer equipment, computer-readable storage medium and computer program product that can improve the accuracy of liquid level detection in order to solve the above-mentioned technical problems.
[0005] In a first aspect, the present application provides a liquid level detection method, which is applied to a liquid level detection system, and the method comprises:
[0006] Obtaining the container type of the liquid container, and determining the liquid surface contact discrimination condition corresponding to the container type; the liquid surface contact discrimination condition is used to control the motion state of the sample adding probe; the liquid surface contact discrimination condition includes a liquid surface judgment threshold; the container type corresponds to the liquid surface judgment threshold in a one-to-one manner;
[0007] Controlling the sample adding probe to start the needle downward movement from the initial position above the liquid container to the set position according to a preset movement mode;
[0008] When the sample adding probe moves to the set position, a capacitance signal output by the sample adding probe is obtained, and when the capacitance signal satisfies a liquid level determination threshold in the liquid level contact determination condition, the sample adding probe is controlled to be in a soft stop state.
[0009] In a second aspect, the present application provides a liquid level detection system, the liquid level detection system comprising a liquid level detection module and a motion control module:
[0010] The motion control module is used to obtain the container type of the liquid container, and send the liquid surface contact discrimination condition corresponding to the container type to the liquid surface detection module; it is also used to control the sample adding probe to start from the initial position above the liquid container to perform the needle downward movement to the set position; it is also used to send a liquid surface detection instruction to the liquid surface detection module when the sample adding probe moves to the set position;
[0011] The liquid level detection module is used to respond to the liquid level detection instruction, start collecting the capacitance signal output by the sampling probe, and send a soft stop instruction to the motion control module when the capacitance signal meets the liquid surface contact judgment condition, so as to instruct the motion control module to control the sampling probe to be in a soft stop state.
[0012] In one embodiment, the motion control module is further used to control the sampling probe to accelerate to a preset first speed at a preset first acceleration when the sampling probe reaches the initial position, and to control the sampling probe to move at the first speed toward the liquid surface in the liquid container within a first time period; and to control the sampling probe to decelerate from the first speed to a preset second speed at the first acceleration, and to control the sampling probe to move toward the liquid surface in the liquid container at the second speed, so that the sampling probe approaches the set position.
[0013] In one of the embodiments, when the liquid surface contact judgment condition is a liquid surface judgment threshold, the liquid surface detection module is further used to convert the capacitance signal output by the sampling probe into a frequency signal, determine the signal difference according to the frequency signal, and when the signal difference is greater than the liquid surface judgment threshold, determine that the capacitance signal satisfies the liquid surface contact judgment condition.
[0014] In one embodiment, the liquid level detection module is also used to determine the current signal value and the historical signal value based on the frequency signal, and determine the signal difference based on the difference between the current signal value and the historical signal value; the historical signal value includes the signal value corresponding to the time point in the frequency signal that is separated from the current signal value by a preset first time length.
[0015] In one embodiment, the liquid level detection module is also used to determine that the capacitance signal satisfies the liquid surface contact judgment condition when the signal difference is less than zero and the absolute value of the signal difference is greater than the liquid level judgment threshold; and is also used to, when the signal difference is greater than zero, start from the time point corresponding to the signal difference greater than zero, use the signal within a preset second time length in the frequency signal as the signal to be identified, and obtain the signal difference corresponding to the signal to be identified; when the signal difference corresponding to the signal to be identified is less than zero and the absolute value of the signal difference corresponding to the signal to be identified is less than the liquid level judgment threshold, determine that the capacitance signal does not meet the liquid surface contact judgment condition.
[0016] In one of the embodiments, the motion control module is further used to determine the stroke parameter corresponding to the sampling probe according to the container type of the liquid container, and control the sampling probe to be in a soft stop state when the movement distance of the sampling probe is equal to the stroke parameter.
[0017] In a third aspect, the present application also provides a liquid level detection device, comprising:
[0018] A condition acquisition module, used to acquire the container type of the liquid container, and determine the liquid surface contact judgment condition corresponding to the container type; the liquid surface contact judgment condition is used to control the motion state of the sample adding probe; the liquid surface contact judgment condition includes a liquid surface judgment threshold; the container type corresponds to the liquid surface judgment threshold in a one-to-one manner;
[0019] A motion control module, used for controlling the sample adding probe to start the needle downward movement from the initial position above the liquid container to the set position according to a preset motion mode;
[0020] The liquid level determination module is used to obtain the capacitance signal output by the sampling probe when the sampling probe moves to the set position, and control the sampling probe to be in a soft stop state when the capacitance signal meets the liquid level determination threshold in the liquid surface contact determination condition.
[0021] In a fourth aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above method are implemented.
[0022] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above method when executed by a processor.
[0023] In a sixth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0024] The above-mentioned liquid level detection method, system, device, computer equipment, storage medium and computer program product obtain the container type of the liquid container through the motion control module, and send the liquid level contact judgment condition corresponding to the container type to the liquid level detection module; the liquid level contact judgment condition includes a liquid level judgment threshold; the container type corresponds to the liquid level judgment threshold one by one, so that the liquid level contact judgment condition corresponding to the container type of the liquid container is sent to the liquid level detection module in time, so that the liquid level detection module can judge whether to execute the corresponding subsequent steps based on the liquid level judgment threshold corresponding to the container type of the liquid container; the motion control module controls the sample adding probe to start the needle down movement from the initial position above the liquid container to the set position according to the preset movement mode, and when the sample adding probe moves to the set position, the liquid level detection instruction is sent to the liquid level detection module, so that in the process of controlling the sample adding to move according to the preset movement mode, the needle down movement of the sample adding probe is gradually monitored and analyzed, and when the sample adding probe moves to the set position, the liquid level detection module is promptly informed. Send a liquid level detection instruction; respond to the liquid level detection instruction through the liquid level detection module, start collecting the capacitance signal output by the sampling probe, and send a soft stop instruction to the motion control module when the capacitance signal meets the liquid level judgment threshold in the liquid level contact judgment condition, so as to instruct the motion control module to control the sampling probe to be in a soft stop state, so as to respond to the liquid level detection instruction in time, accurately obtain the capacitance signal, and control the motion state of the sampling probe based on the capacitance signal and the liquid level contact judgment condition. It is possible to determine the corresponding liquid level contact judgment condition for the container type of the liquid container in different experimental scenarios, obtain the liquid level contact judgment condition sent by the motion control module through the liquid level detection module, and accurately judge whether the sampling probe contacts the liquid surface in combination with the capacitance signal output by the sampling probe, so as to control the sampling probe to be in a soft stop state, so as to realize the corresponding liquid level contact judgment condition and the motion control method for the sampling probe adaptively determined based on the container type of different liquid containers, thereby accurately detecting the liquid level in the liquid container and improving the accuracy of liquid level detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1is an application environment diagram of a liquid level detection method in an embodiment;
[0027] Figure 2 A schematic diagram of a flow chart of a liquid level detection method in an embodiment;
[0028] Figure 3 A schematic diagram of a flow chart of liquid level detection in an embodiment;
[0029] Figure 4 is a structural block diagram of a liquid level detection device in an embodiment;
[0030] Figure 5 The figure is a diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0032] The liquid level detection method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the liquid level detection system 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The liquid level detection system 102 obtains the container type of the liquid container and determines the liquid surface contact judgment condition corresponding to the container type; the liquid surface contact judgment condition includes the liquid surface judgment threshold; the container type and the liquid surface judgment threshold correspond one to one; the liquid surface contact judgment condition is used to control the movement state of the sampling probe; the liquid level detection system 102 controls the sampling probe to start the needle movement from the initial position above the liquid container according to the preset movement mode to the set position; the liquid level detection system 102 obtains the capacitance signal output by the sampling probe when the sampling probe moves to the set position, and controls the sampling probe to be in a soft stop state when the capacitance signal meets the liquid surface judgment threshold in the liquid surface contact judgment condition. The liquid level detection system may include a liquid level detection module and a motion control module, wherein the motion control module is used to obtain the container type of the liquid container and send the liquid level contact discrimination condition corresponding to the container type to the liquid level detection module; it is also used to control the sample adding probe to start the needle movement from the initial position above the liquid container to the set position; it is also used to send a liquid level detection instruction to the liquid level detection module when the sample adding probe moves to the set position; the liquid level detection module is used to respond to the liquid level detection instruction, start collecting the capacitance signal output by the sample adding probe, and send a soft stop instruction to the motion control module when the capacitance signal meets the liquid level contact discrimination condition, so as to instruct the motion control module to control the sample adding probe to be in a soft stop state. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0033] In an exemplary embodiment, Figure 2 As shown, a liquid level detection method is provided, and the method is applied to a liquid level detection system as an example for explanation. It can be understood that the method can also be applied to a server, and can also be applied to a system including a liquid level detection system and a server, and is implemented through the interaction between the liquid level detection system and the server. In this embodiment, the method includes the following steps:
[0034] Step S202, obtaining the container type of the liquid container, and determining the liquid surface contact judgment condition corresponding to the container type.
[0035] The liquid container may refer to a container for holding liquid (such as a sample or a reagent, etc.).
[0036] The container type may refer to information characterizing the shape, volume, and other features of the liquid container.
[0037] Among them, the liquid surface contact judgment condition may refer to information used to judge whether the sample adding probe contacts the liquid in the liquid container. In a specific implementation, the liquid surface contact judgment condition is used to control the movement state of the sample adding probe based on the capacitance signal output by the sample adding probe. In practical applications, the liquid surface contact judgment condition may include a liquid surface judgment threshold. Specifically, there may be a positive proportional relationship between the container type (such as the container volume) and the liquid surface contact judgment condition (such as the liquid surface judgment threshold). The larger the volume of the liquid in the liquid container, the larger the liquid surface judgment threshold. For example, analytical instruments often have It supports liquid containers of different specifications. Different liquid containers require different dead volumes (i.e., unusable liquid volume, which can also be understood as the minimum volume required for detection). Compared with bullet-head EP tubes, blood collection tubes have larger dead volumes. Therefore, the liquid level judgment threshold of the analyzer when measuring blood collection tubes will be larger than that of bullet-head EP tubes. Assuming that the detection threshold of blood collection tubes is 50kHz, that of bullet-head EP tubes may be 36kHz. In specific implementation, the container type of the liquid container has a liquid level judgment threshold that corresponds one-to-one with the container type of the liquid container.
[0038] As an example, in the field of in vitro diagnostic analysis instruments, in order to reduce the cross contamination of the sample and other liquids by the sampling probe of the equipment, the liquid level detection can be used to determine whether the sampling probe has touched the liquid surface. In actual applications, since the containers used in different application scenarios are not exactly the same, the use of a fixed threshold for liquid level detection is prone to misjudgment of the liquid level, which in turn causes the sampling probe to "suck empty", or the sampling probe is inserted too deeply into the liquid and hits the needle, or cross contamination occurs due to the liquid sample contacting the sampling probe. Therefore, the liquid level detection system can obtain the container type of the liquid container, and then determine the liquid surface contact judgment condition corresponding to the container type according to the container type of the liquid container, so as to perform subsequent liquid level detection.
[0039] Step S204, controlling the sample adding probe to start the needle downward movement from the initial position above the liquid container to the set position according to a preset movement mode.
[0040] The sample adding probe may refer to a sample adding needle or a needle-shaped object used to add a substance to the liquid in the liquid container or to absorb a substance from the liquid in the liquid container.
[0041] Among them, the initial position may refer to a position above the liquid container where the straight-line distance between the plane where the container opening of the liquid container is located is a preset first distance. In practical applications, the initial position may include the position of the sample rack of the liquid container, that is, the container reference base position.
[0042] Among them, the set position may refer to a position above the liquid container, where the straight-line distance from the initial position is a preset second distance. In actual applications, the set position may include a position for starting a liquid level detection operation (such as starting to obtain a capacitance signal). The set position may be different in different application scenarios. For example, the set position may include a sample position and a reagent position. The sampling process needs to determine whether to perform the sample loading at the sample position or the reagent position. Since the sampling probe needs to descend to the bottom of the sealing film of the liquid container (such as a reagent boat) when aspirating the reagent before performing liquid level detection, the sampling probe needs to contact the sealing film during this process. The contact may cause signal interference. Therefore, the sample position may be higher than the reagent position. The start position (i.e., the set position) of the liquid level detection may be adjusted according to the container used, thereby shielding interference as much as possible during the needle insertion process. For example, in a chemiluminescence instrument, when the sampling probe passes through the sealing film of the reagent boat and then starts the liquid level detection, the interference of the sealing film on the signal can be effectively avoided, thereby improving the accuracy of detection.
[0043] Among them, the preset motion mode may refer to information describing the motion parameters of the sampling probe, such as acceleration and speed. The preset motion mode may be used to control the motion state of the sampling probe. In practical applications, the preset motion mode may include but is not limited to accelerated motion, decelerated motion, and uniform motion.
[0044] As an example, the liquid level detection system controls the sampling probe through the motion control module in the liquid level detection system to start the needle downward movement from the initial position above the liquid container according to a preset movement method until the sampling probe moves to the set position above the liquid container.
[0045] Step S206, when the sample adding probe moves to the set position, the capacitance signal output by the sample adding probe is obtained, and when the capacitance signal satisfies the liquid level judgment threshold in the liquid level contact judgment condition, the sample adding probe is controlled to be in a soft stop state.
[0046] The capacitance signal may refer to data representing changes in capacitance between the sample adding needle and the liquid surface detected by the sample adding needle when the sample adding needle approaches the liquid surface of the liquid in the liquid container.
[0047] As an example, when the sampling probe moves to a set position, the liquid level detection system obtains a capacitance signal output by the sampling probe, and the liquid level detection system determines whether the sampling probe contacts the liquid surface based on the capacitance signal and the liquid level judgment threshold in the liquid surface contact judgment condition. Specifically, when the capacitance signal satisfies the liquid level judgment threshold in the liquid surface contact judgment condition, the liquid level detection system can control the movement state of the sampling probe (such as controlling the sampling probe to be in a soft stop state).
[0048] In the above-mentioned liquid level detection method, by obtaining the container type of the liquid container, the liquid level contact judgment condition corresponding to the container type is determined, thereby accurately obtaining the liquid level contact judgment condition corresponding to the container type; controlling the sampling probe to perform the downward needle movement from the initial position above the liquid container to the set position; when the sampling probe moves to the set position, obtaining the capacitance signal output by the sampling probe, and when the capacitance signal meets the liquid level contact judgment condition, controlling the sampling probe to be in a soft stop state, thereby combining the capacitance signal and the liquid level contact judgment condition corresponding to the container type to accurately judge whether the sampling probe contacts the liquid surface in the liquid container, thereby realizing the container type based on different liquid containers, adaptively determining the corresponding liquid level contact judgment condition and the motion control method for the sampling probe, thereby accurately detecting the liquid level in the liquid container and improving the accuracy of liquid level detection.
[0049] In an exemplary embodiment, a liquid level detection system is provided, which includes a sampling probe, a liquid level detection module and a motion control module; the motion control module is used to obtain the container type of the liquid container and send the liquid level contact judgment condition corresponding to the container type to the liquid level detection module; it is also used to control the sampling probe to perform a needle downward movement from an initial position above the liquid container to a set position; it is also used to send a liquid level detection instruction to the liquid level detection module when the sampling probe moves to the set position; the liquid level detection module is used to start collecting the capacitance signal output by the sampling probe in response to the liquid level detection instruction, and when the capacitance signal meets the liquid level contact judgment condition, send a soft stop instruction to the motion control module to instruct the motion control module to control the sampling probe to be in a soft stop state.
[0050] Among them, the sampling probe can adopt a double-layer sleeve needle structure, and the sampling probe can include an inner needle and an outer needle, wherein the inner needle can be used as a positive electrode and the outer needle can be used as a negative electrode. In actual applications, the sampling probe can be connected to a liquid level detection module (such as a circuit board for liquid level detection) through a 2pin interface and wire to achieve effective acquisition of capacitance signals.
[0051] The liquid level detection instruction may refer to an instruction for controlling the liquid level detection module to collect the capacitance signal output by the sampling probe and other subsequent steps.
[0052] The soft stop instruction may refer to an instruction for controlling the motion control module to control the sample adding probe to be in a soft stop state.
[0053] As an example, the liquid level detection module may include a circuit board for liquid level detection (such as a liquid level detection board). The liquid level detection board can obtain the current capacitance value in real time through the 2-pin interface and wire of the sampling probe, and convert the capacitance value into a frequency signal value. The liquid level detection board can communicate with the motor board of the motion control module through the serial port, so as to obtain the liquid surface contact judgment condition (such as judgment threshold) for the liquid container sent by the motion control module before the sampling probe is lowered. Specifically, before the liquid level detection starts, the operator can input the container type of the liquid container into the motion control module. The motion control module can query the liquid surface contact judgment condition corresponding to the container type of the liquid container from a preset comparison relationship table according to the container type of the liquid container. When the sample adding probe moves vertically to the set position, the FPGA (Field Programmable Gate Array) module in the motion control module starts the liquid level detection function, the motion control module sends a liquid level detection instruction to the liquid level detection module, the liquid level detection module performs liquid level detection in response to the liquid level detection instruction, and the liquid level detection module determines whether the sample adding probe contacts the liquid surface in the liquid container based on the capacitance signal and the liquid surface contact judgment condition. When the capacitance signal meets the liquid surface contact judgment condition, the liquid level detection module determines that the sample adding probe contacts the liquid surface in the liquid container, and the liquid level detection module sends a soft stop instruction (a level signal) to the FPGA module of the motion control module to instruct the motion control module to control the sample adding probe to be in a soft stop state. Among them, the motion control module includes a motor board and an FPGA module. The motor board is responsible for controlling the horizontal rotation motion and vertical motion parameters of the sampling probe, and sending the liquid surface contact judgment condition to the liquid surface detection module. The liquid surface contact judgment condition is related to the liquid container currently being absorbed. The FPGA module is responsible for sending signals or instructions (such as liquid surface detection instructions) to the liquid surface detection module to start liquid surface detection, and receiving soft stop instructions sent by the liquid surface detection module.
[0054] In this embodiment, the container type of the liquid container is obtained through the motion control module, and the liquid surface contact judgment condition corresponding to the container type is sent to the liquid surface detection module, so that the liquid surface contact judgment condition corresponding to the container type of the liquid container is sent to the liquid surface detection module in time, so that the liquid surface detection module can judge whether to execute the corresponding subsequent steps based on the liquid surface contact judgment condition; the motion control module controls the sample adding probe to start the needle downward movement from the initial position above the liquid container to the set position, and when the sample adding probe moves to the set position, the liquid surface detection instruction is sent to the liquid surface detection module, so as to gradually monitor and analyze the needle downward movement of the sample adding probe, and when the sample adding probe moves to the set position, the liquid surface detection instruction is sent to the liquid surface detection module in time; the liquid surface detection module responds to the liquid surface detection instruction, starts to collect the capacitance signal output by the sample adding probe, and when the capacitance signal meets the liquid surface contact judgment condition In the case of a component, a soft stop instruction is sent to the motion control module to instruct the motion control module to control the sampling probe to be in a soft stop state, so as to respond to the liquid level detection instruction in time, accurately obtain the capacitance signal, and control the motion state of the sampling probe based on the capacitance signal and the liquid surface contact judgment condition. The corresponding liquid surface contact judgment condition can be determined for the container type of the liquid container in different experimental scenarios, and the liquid surface contact judgment condition sent by the motion control module is obtained through the liquid level detection module, and combined with the capacitance signal output by the sampling probe, it is accurately determined whether the sampling probe contacts the liquid surface, thereby controlling the sampling probe to be in a soft stop state, and realizing the container type based on different liquid containers. The corresponding liquid surface contact judgment condition and the motion control method for the sampling probe are adaptively determined, and then the liquid level in the liquid container is accurately detected under the condition of considering the information such as the container type, thereby improving the accuracy and reliability of liquid level detection.
[0055] In some embodiments, the motion control module is also used to control the sampling probe to accelerate to a preset first speed at a preset first acceleration when the sampling probe reaches the initial position, and to control the sampling probe to move at the first speed toward the liquid surface in the liquid container within a first time period; and is also used to control the sampling probe to decelerate from the first speed to a preset second speed at the first acceleration, and to control the sampling probe to move toward the liquid surface in the liquid container at the second speed, so that the sampling probe is close to the set position.
[0056] The first acceleration may refer to pre-set data used to describe the speed change of the sample adding probe.
[0057] The first speed may refer to a preset parameter used to describe the movement rate of the sample addition probe.
[0058] The first time period may refer to the length of time that the sample adding probe moves at the first speed.
[0059] The second speed may refer to another parameter that is preset and used to describe the movement rate of the sample addition probe. In practical applications, the second speed may be smaller than the first speed.
[0060] As an example, 15 milliseconds before the sample adding probe rotates horizontally to the initial position, the motor board of the motion control module sends the liquid surface contact judgment condition to the liquid surface detection module through the serial port communication, and the microcontroller unit (MCU) of the liquid surface detection module records the liquid surface contact judgment condition. When the sample adding probe reaches the initial position, the FPGA module in the motion control module starts to control the sample adding probe to perform the needle lowering movement. Specifically, the needle lowering movement can be divided into two stages: first, the sample adding probe accelerates to a preset first speed (such as speed 1) with a preset first acceleration, and maintains at the first speed for a certain time (such as a first time period), and then, the sample adding probe accelerates to a preset first speed (such as speed 1) with a preset first acceleration, and maintains at the first speed for a certain time (such as a first time period). The sample probe is decelerated, wherein the acceleration of the deceleration may be the same as the first acceleration, until the speed of the sample probe drops to the second speed (such as speed 2), and the motion control module may control the length of the first time period by calculation, thereby controlling the position where the deceleration starts, to ensure that the sample probe reaches the specified position while decelerating to the second speed; then the sample probe moves at the second speed toward the direction close to the liquid surface in the liquid container, so that the sample probe approaches the set position, until the sample probe reaches the set position. In actual applications, the absolute values of the accelerations corresponding to the acceleration stage and the deceleration stage of the sample probe may be the same or different.
[0061] In this embodiment, when the sampling probe reaches the initial position, the motion control module controls the sampling probe to accelerate to a preset first speed with a preset first acceleration, and controls the sampling probe to move in a direction close to the liquid surface in the liquid container at the first speed within a first time period; it is also used to control the sampling probe to decelerate from the first speed to a preset second speed with the first acceleration, and controls the sampling probe to move in a direction close to the liquid surface in the liquid container at the second speed, so that the sampling probe is close to the set position, and can adopt a two-stage needle lowering movement, so that the sampling needle can reach the designated position in a shorter time to absorb the sample, which not only improves the sampling efficiency, but also reduces the operation time, making the entire liquid level detection process more efficient and accurate.
[0062] In some embodiments, when the liquid surface contact judgment condition is the liquid surface judgment threshold, the liquid surface detection module is also used to convert the capacitance signal output by the sampling probe into a frequency signal, determine the signal difference according to the frequency signal, and when the signal difference is greater than the liquid surface judgment threshold, determine that the capacitance signal meets the liquid surface contact judgment condition.
[0063] The liquid level determination threshold may refer to data used to determine whether the sample adding probe contacts the liquid level of the liquid in the liquid container according to the capacitance signal.
[0064] Among them, the frequency signal may refer to the signal obtained after converting the capacitance signal into frequency data by using a specific circuit.
[0065] Among them, the signal difference may refer to the difference between the signal values in the frequency signal.
[0066] As an example, when the liquid level contact determination condition is the liquid level determination threshold, the liquid level detection module can analyze the capacitance signal based on a preset specific circuit, convert the capacitance signal output by the sampling probe into a frequency signal, the liquid level detection module can determine the signal difference according to the frequency signal, and when the signal difference is greater than the liquid level determination threshold, it is determined that the capacitance signal meets the liquid level contact determination condition.
[0067] In this embodiment, when the liquid level contact determination condition is the liquid level determination threshold, by converting the capacitance signal output by the sampling probe into a frequency signal, determining the signal difference according to the frequency signal, and when the signal difference is greater than the liquid level determination threshold, it is determined that the capacitance signal meets the liquid level contact determination condition, it is possible to convert the capacitance signal into a frequency signal, and use the signal difference determined based on the frequency signal and the liquid level determination threshold to accurately determine whether the capacitance signal meets the liquid level contact determination condition, thereby improving the accuracy of liquid level detection.
[0068] In some embodiments, the liquid level detection module is further configured to determine the current signal value and the historical signal value according to the frequency signal, and determine the signal difference according to the difference between the current signal value and the historical signal value; the historical signal value includes the signal value corresponding to the time point in the frequency signal that is separated from the current signal value by a preset first time length.
[0069] Among them, the current signal value may refer to the signal value corresponding to the current moment in the frequency signal.
[0070] Among them, the historical signal value may refer to the signal value corresponding to the moment before the current moment in the frequency signal. In practical applications, the historical signal value includes the signal value corresponding to the time point or moment in the frequency signal that is separated from the current signal value by a preset first time length. The preset first time length may include 3 milliseconds and 7 milliseconds, etc. The difference between the moments corresponding to any two adjacent signal values in the frequency signal may be less than or equal to the value of the preset first time length.
[0071] As an example, if a certain frequency signal can be expressed as A t1 、A t2 、……、A tk , where t1 < t2 < …… < tk, k may be a positive integer. Taking tk as the current moment, then A tk can represent the current signal value, and t1, t2, ……, tk - 1 can represent the historical moments before the current moment, and A t1 、At2 ,……,A tk-1 It can represent the historical signal value corresponding to each historical moment, A tk -A tk-1 It can represent the difference between the current signal value and the historical signal value, that is, the signal difference. The liquid level detection module can use the signal difference and the liquid level judgment threshold to determine whether the capacitance signal meets the liquid level contact judgment condition.
[0072] In this embodiment, by determining the current signal value and the historical signal value according to the frequency signal, and determining the signal difference according to the difference between the current signal value and the historical signal value, the signal difference can be accurately calculated based on the signal value corresponding to each moment in the frequency signal, and the subsequent signal difference can be compared with the liquid level judgment threshold to provide a data basis for determining whether the capacitance signal meets the liquid surface contact judgment condition, thereby improving the accuracy of liquid level detection.
[0073] In some embodiments, the liquid level detection module is also used to determine that the capacitance signal satisfies the liquid surface contact judgment condition when the signal difference is less than zero and the absolute value of the signal difference is greater than the liquid level judgment threshold; and is also used to, when the signal difference is greater than zero, start from the time point corresponding to the signal difference greater than zero, use the signal within a preset second time length in the frequency signal as the signal to be identified, and obtain the signal difference corresponding to the signal to be identified; when the signal difference corresponding to the signal to be identified is less than zero and the absolute value of the signal difference corresponding to the signal to be identified is less than the liquid level judgment threshold, determine that the capacitance signal does not meet the liquid surface contact judgment condition.
[0074] The preset second time length may be a pre-set time length, and the preset second time length may include 3 milliseconds.
[0075] As an example, as the sampling probe moves downward, the signal value of the frequency signal shows a gradual downward trend. When the signal difference corresponding to the frequency signal is less than zero and the absolute value of the signal difference is greater than the liquid level judgment threshold, the liquid level detection module determines that the capacitance signal meets the liquid level contact judgment condition; however, if interference is encountered during the downward movement of the sampling probe, the detected signal will produce an upward spur. When the interference signal disappears, the signal difference corresponding to the current signal value near the spur reaches the liquid level judgment threshold, thereby generating a signal misjudgment. In order to eliminate the impact of the above-mentioned problem, when the signal difference is greater than zero, starting from the time point corresponding to the signal difference greater than zero, the signal within a preset second time length in the frequency signal is used as the signal to be identified, and the signal difference corresponding to the signal to be identified is obtained. When the signal difference corresponding to the signal to be identified is less than zero, and the absolute value of the signal difference corresponding to the signal to be identified is less than the liquid level judgment threshold, the liquid level detection module determines that the capacitance signal does not meet the liquid level contact judgment condition, and the liquid level detection system determines that the sampling probe has not touched the liquid surface. The sampling probe continues to move downward and continues to monitor the capacitance signal.
[0076] In this embodiment, when the signal difference is less than zero and the absolute value of the signal difference is greater than the liquid level judgment threshold, it is determined that the capacitance signal meets the liquid level contact judgment condition; when the signal difference is greater than zero, starting from the time point corresponding to the signal difference greater than zero, the signal within a preset second time length in the frequency signal is used as the signal to be identified, and the signal difference corresponding to the signal to be identified is obtained. When the signal difference corresponding to the signal to be identified is less than zero and the absolute value of the signal difference corresponding to the signal to be identified is less than the liquid level judgment threshold, it is determined that the capacitance signal does not meet the liquid level contact judgment condition. The signal value in the frequency signal can be used to eliminate the influence of interference from multiple needle insertions on the liquid level contact judgment, avoid misjudgment, and eliminate atypical liquid level signals, thereby improving the accuracy and reliability of liquid level detection.
[0077] In some embodiments, the motion control module is further used to determine the stroke parameter corresponding to the sample adding probe according to the container type of the liquid container, and control the sample adding probe to a soft stop state when the movement distance of the sample adding probe is equal to the stroke parameter.
[0078] The stroke parameter may refer to data characterizing the maximum movement distance of the sample adding probe. In practical applications, different types of liquid containers may correspond to different stroke parameters, and the stroke parameter may be used to limit the maximum stroke of the sample adding probe.
[0079] As an example, the motion control module can obtain the stroke parameters sent by the lower computer board according to the container type of the liquid container. When the movement distance of the sampling probe is less than the stroke parameter, the sampling probe does not contact the container wall of the liquid container (such as the bottom of the container), and the sampling probe can achieve the addition and absorption of substances. When the movement distance of the sampling probe is equal to the stroke parameter, the motion control module determines that the movement distance of the sampling probe has a tendency to exceed the preset maximum distance. It can be understood that even when the movement distance of the sampling probe is equal to the stroke parameter, since the stroke parameter has been considered or a safety distance has been reserved during the design process, the sampling probe may still not have the risk of contacting the bottom of the liquid container. The motion control module controls the sampling probe to be in a soft stop state, which can prevent the sampling probe from colliding with the liquid container when the liquid volume is insufficient.
[0080] In this embodiment, the stroke parameter corresponding to the sampling probe is determined according to the container type of the liquid container, and when the movement distance of the sampling probe is equal to the stroke parameter, the sampling probe is controlled to be in a soft stop state. The stroke parameter can be used to limit the movement range of the sampling probe, thereby preventing the sampling probe from contacting the bottom of the liquid container and affecting the addition and absorption of substances, thereby improving the safety of liquid level detection.
[0081] In some embodiments, Figure 3 As shown, a flow chart of liquid level detection is provided, in which a motion control module in the liquid level detection system controls the sample adding needle to move horizontally to an initial position, the motion control module obtains the container type of the liquid container, and sends the liquid level contact discrimination condition and stroke parameter corresponding to the container type to the liquid level detection module in the liquid level detection system, the motion control module controls the sample adding probe to perform a needle downward movement, and when the sample adding probe moves to a set position, the motion control module sends a liquid level detection instruction to the liquid level detection module, and the liquid level detection module responds to the liquid level detection instruction to start collecting the capacitance signal output by the sample adding probe, and when the capacitance signal meets the liquid level contact discrimination condition, sends a soft stop instruction to the motion control module to instruct the motion control module to control the sample adding probe to be in a soft stop state, and the motion control module can also control the sample adding probe to be in a soft stop state when the movement distance of the sample adding probe is equal to the stroke parameter.
[0082] In this embodiment, the liquid level contact judgment conditions corresponding to the container types of different liquid containers and the capacitance signal output by the sampling probe are used to determine whether the sampling probe has contacted the liquid surface. This can avoid interference in the liquid level detection during the needle insertion process, and adaptively perform liquid level detection for different application scenarios, thereby improving the reliability and sensitivity of liquid level detection.
[0083] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0084] Based on the same inventive concept, the embodiment of the present application also provides a liquid level detection device for implementing the liquid level detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more liquid level detection device embodiments provided below can refer to the limitations of the liquid level detection method above, and will not be repeated here.
[0085] In an exemplary embodiment, Figure 4 As shown, a liquid level detection device is provided, including: a condition acquisition module 402, a motion control module 404 and a liquid level determination module 406, wherein:
[0086] The condition acquisition module 402 is used to obtain the container type of the liquid container and determine the liquid surface contact judgment condition corresponding to the container type; the liquid surface contact judgment condition is used to control the movement state of the sampling probe; the liquid surface contact judgment condition includes a liquid surface judgment threshold; the container type corresponds to the liquid surface judgment threshold one by one.
[0087] The motion control module 404 is used to control the sample adding probe to start the needle downward movement from the initial position above the liquid container to the set position according to a preset motion mode.
[0088] The liquid level determination module 406 is used to obtain the capacitance signal output by the sampling probe when the sampling probe moves to the set position, and control the sampling probe to be in a soft stop state when the capacitance signal meets the liquid level determination threshold in the liquid surface contact determination condition.
[0089] In an exemplary embodiment, the above-mentioned device also includes a probe control module, which is specifically used to control the sampling probe to accelerate to a preset first speed at a preset first acceleration when the sampling probe reaches the initial position, and control the sampling probe to move in a direction close to the liquid surface in the liquid container at the first speed within a first time period; and is also used to control the sampling probe to decelerate from the first speed to a preset second speed at the first acceleration, and control the sampling probe to move in a direction close to the liquid surface in the liquid container at the second speed, so that the sampling probe is close to the set position.
[0090] In an exemplary embodiment, the above-mentioned device also includes a contact judgment module, which is specifically used to convert the capacitance signal output by the sampling probe into a frequency signal when the liquid surface contact judgment condition is a liquid surface judgment threshold, determine the signal difference according to the frequency signal, and when the signal difference is greater than the liquid surface judgment threshold, determine that the capacitance signal satisfies the liquid surface contact judgment condition.
[0091] In an exemplary embodiment, the contact identification module is also specifically used to determine the current signal value and the historical signal value based on the frequency signal, and to determine the signal difference based on the difference between the current signal value and the historical signal value; the historical signal value includes the signal value corresponding to the time point in the frequency signal that is separated from the current signal value by a preset first time length.
[0092] In an exemplary embodiment, the contact determination module is specifically used to determine that the capacitance signal satisfies the liquid surface contact determination condition when the signal difference is less than zero and the absolute value of the signal difference is greater than the liquid surface determination threshold; and is also used to, when the signal difference is greater than zero, start from the time point corresponding to the signal difference greater than zero, take the signal within a preset second time length in the frequency signal as the signal to be identified, and obtain the signal difference corresponding to the signal to be identified; when the signal difference corresponding to the signal to be identified is less than zero and the absolute value of the signal difference corresponding to the signal to be identified is less than the liquid surface determination threshold, determine that the capacitance signal satisfies the liquid surface contact determination condition.
[0093] In an exemplary embodiment, the above-mentioned device also includes a stroke control module, which is specifically used to determine the stroke parameter corresponding to the sampling probe according to the container type of the liquid container, and control the sampling probe to be in a soft stop state when the movement distance of the sampling probe is equal to the stroke parameter.
[0094] Each module in the above-mentioned liquid level detection device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0095] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a liquid level detection method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0096] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0097] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0098] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0099] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0100] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0101] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0102] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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.
[0103] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A liquid level detection method, characterized in that: Applied to a liquid level detection system, the method comprises: Obtaining the container type of the liquid container, and determining the liquid surface contact discrimination condition corresponding to the container type; the liquid surface contact discrimination condition is used to control the motion state of the sample adding probe; the liquid surface contact discrimination condition includes a liquid surface judgment threshold; the container type corresponds to the liquid surface judgment threshold in a one-to-one manner; Controlling the sample adding probe to start the needle downward movement from the initial position above the liquid container to the set position according to a preset movement mode; When the sample adding probe moves to the set position, a capacitance signal output by the sample adding probe is obtained, and when the capacitance signal satisfies a liquid level determination threshold in the liquid level contact determination condition, the sample adding probe is controlled to be in a soft stop state.
2. A liquid level detection system, characterized in that: The system includes a liquid level detection module and a motion control module: The motion control module is used to obtain the container type of the liquid container and send the liquid surface contact judgment condition corresponding to the container type to the liquid surface detection module; It is also used to control the sample adding probe to start from the initial position above the liquid container to perform the needle movement to the set position; it is also used to send a liquid level detection instruction to the liquid level detection module when the sample adding probe moves to the set position; The liquid level detection module is used to respond to the liquid level detection instruction, start collecting the capacitance signal output by the sampling probe, and send a soft stop instruction to the motion control module when the capacitance signal meets the liquid surface contact judgment condition, so as to instruct the motion control module to control the sampling probe to be in a soft stop state.
3. The liquid level detection system according to claim 2, characterized in that: The motion control module is also used to control the sampling probe to accelerate to a preset first speed at a preset first acceleration when the sampling probe reaches the initial position, and to control the sampling probe to move in a direction close to the liquid surface in the liquid container at the first speed within a first time period; and is also used to control the sampling probe to decelerate from the first speed to a preset second speed at the first acceleration, and to control the sampling probe to move in a direction close to the liquid surface in the liquid container at the second speed, so that the sampling probe is close to the set position.
4. The liquid level detection system according to claim 2, characterized in that: When the liquid surface contact judgment condition is the liquid surface judgment threshold, the liquid surface detection module is further used to convert the capacitance signal output by the sampling probe into a frequency signal, determine the signal difference according to the frequency signal, and when the signal difference is greater than the liquid surface judgment threshold, determine that the capacitance signal satisfies the liquid surface contact judgment condition.
5. The liquid level detection system according to claim 4, characterized in that: The liquid level detection module is also used to determine the current signal value and the historical signal value based on the frequency signal, and determine the signal difference based on the difference between the current signal value and the historical signal value; the historical signal value includes the signal value corresponding to the time point in the frequency signal that is separated from the current signal value by a preset first time length.
6. The liquid level detection system according to claim 5, characterized in that: The liquid level detection module is further configured to determine that the capacitance signal satisfies the liquid level contact determination condition when the signal difference is less than zero and the absolute value of the signal difference is greater than the liquid level determination threshold; It is also used to, when the signal difference is greater than zero, start from the time point corresponding to the signal difference greater than zero, use the signal within a preset second time length in the frequency signal as the signal to be identified, and obtain the signal difference corresponding to the signal to be identified, and when the signal difference corresponding to the signal to be identified is less than zero and the absolute value of the signal difference corresponding to the signal to be identified is less than the liquid level judgment threshold, determine that the capacitance signal does not meet the liquid surface contact judgment condition.
7. The liquid level detection system according to claim 2, characterized in that: The motion control module is also used to determine the stroke parameter corresponding to the sample adding probe according to the container type of the liquid container, and control the sample adding probe to a soft stop state when the movement distance of the sample adding probe is equal to the stroke parameter.
8. A liquid level detection device, characterized in that: The device comprises: A condition acquisition module, used to acquire the container type of the liquid container, and determine the liquid surface contact judgment condition corresponding to the container type; the liquid surface contact judgment condition is used to control the motion state of the sample adding probe; the liquid surface contact judgment condition includes a liquid surface judgment threshold; the container type corresponds to the liquid surface judgment threshold in a one-to-one manner; A motion control module, used for controlling the sample adding probe to start the needle downward movement from the initial position above the liquid container to the set position according to a preset motion mode; The liquid level determination module is used to obtain the capacitance signal output by the sampling probe when the sampling probe moves to the set position, and control the sampling probe to be in a soft stop state when the capacitance signal meets the liquid level determination threshold in the liquid surface contact determination condition.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to claim 1 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 1 are implemented.
Citation Information
Cited By
High-precision automatic scribing constant volume identification method
CN119779433A
