Method and device for controlling magnetic bead detection channel of blood coagulation analyzer
By obtaining test items and parameters in the coagulation analyzer, driving the magnetic beads to swing according to specific cycles and time, and real-time judgment of the magnetic bead status, solving the problems of low detection efficiency and insufficient accuracy in the prior art, and achieving efficient and accurate magnetic bead detection channel control.
Patent Information
- Application Number
- CN202510014656.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-06
- Publication Date
- 2025-05-09
AI Technical Summary
The existing coagulation analyzer magnetic bead detection channel control methods are inefficient and cannot effectively ensure the accuracy of the detection results, mainly due to the accuracy of beam projection and the complexity of data processing.
By obtaining the current test item and the corresponding test parameters, the bead swing is driven to the bead swing according to the driving cycle and the adsorption time for each magnetic bead detection channel, and it is determined in real time whether the bead stops or is in a jitter state based on the external interrupt triggered by the optical coupling receiver, thereby controlling the state of the detection channel.
It improves detection efficiency, ensures the accuracy of the detection results, can promptly detect abnormal states of the magnetic bead detection channel and terminates the test, further speeding up the testing process.
Smart Images

Figure CN119959559A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of medical sample detection, and in particular to a control method and device for a magnetic bead detection channel of a coagulation analyzer. Background Art
[0002] At present, with the integration of medical institutions in the field of in vitro diagnostic testing equipment, there are new requirements for semi-automated coagulation analysis and testing for customers. In order to simplify the testing process and improve the testing efficiency, the control method of the magnetic bead detection channel of the coagulation analyzer came into being.
[0003] At present, the control of the magnetic bead detection channel of the coagulation analyzer is mainly to illuminate the reaction cup on the test hole and obtain the digital quantity of the light beam projected through the reaction cup. Then, according to the specific detection test, the corresponding logic is used to process and calculate the changes in the digital quantity transmitted through the reaction cup, and the magnetic bead detection channel is controlled according to the processing and calculation results.
[0004] However, this method requires that the light be accurately irradiated into the reaction cup on the test hole and the corresponding data be obtained. Then, the corresponding logic needs to be used to process and calculate the data for the corresponding test. Therefore, the detection process is relatively cumbersome, resulting in low detection efficiency. In addition, the digital quantity of the light beam projected through the reaction cup is relatively easy to be disturbed, thereby ensuring the accuracy of the results. Summary of the invention
[0005] Based on the above-mentioned deficiencies of the prior art, the present application provides a method and device for controlling a magnetic bead detection channel of a coagulation analyzer to solve the problem that the prior art is low in efficiency and cannot effectively guarantee accuracy.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] The first aspect of the present application provides a method for controlling a magnetic bead detection channel of a coagulation analyzer, comprising:
[0008] Obtaining a current test item and a test parameter corresponding to the current test item; wherein the test parameter corresponding to the current test item at least includes a drive cycle, a pull-in time, and debounce information corresponding to each magnetic bead detection channel of the coagulation analyzer;
[0009] For each of the magnetic bead detection channels, driving the magnetic beads in the magnetic bead detection channel to swing according to the driving cycle and pull-in time corresponding to the magnetic bead detection channel;
[0010] In real time, judging whether the magnetic beads in the magnetic bead detection channel have stopped based on an external interrupt triggered by an optocoupler receiving end; wherein the optocoupler receiving end and the optocoupler transmitting end are respectively arranged on both sides of the magnetic bead detection channel;
[0011] If it is determined that the magnetic beads in the magnetic bead detection channel have stopped, it is determined that the magnetic bead detection channel has completed the test;
[0012] If it is determined that the magnetic beads in the magnetic bead detection channel have not stopped, then judging whether the magnetic beads in the magnetic bead detection channel are in a shaking state based on the de-jitter information corresponding to the magnetic bead detection channel and the digital value of the optical coupler receiving end;
[0013] If it is determined that the magnetic beads in the magnetic bead detection channel are in a shaking state, it is determined that the state of the magnetic bead detection channel is abnormal, and the test of the magnetic bead detection channel is terminated.
[0014] Optionally, in the control method of the magnetic bead detection channel of the coagulation analyzer, the step of driving the magnetic beads in the magnetic bead detection channel to swing according to the driving cycle and the pull-in time corresponding to the magnetic bead detection channel includes:
[0015] According to the driving cycle corresponding to the magnetic bead detection channel, the cycle of the output PWM wave is controlled to control the cycle of the force for attracting the swing of the magnetic beads in the magnetic bead detection channel;
[0016] According to the corresponding attraction time of the magnetic bead detection channel, the high level duration of the output PWM wave is controlled to control the time of the force of the magnetic bead swinging in the magnetic bead detection channel.
[0017] Optionally, in the control method of the magnetic bead detection channel of the coagulation analyzer, the real-time determination of whether the magnetic beads in the magnetic bead detection channel have stopped based on an external interrupt triggered by an optocoupler receiving end includes:
[0018] Real-time acquisition of current voltage data generated by the optical coupler receiving end receiving the light emitted by the optical coupler transmitting end;
[0019] Performing filtering on the current voltage data;
[0020] Based on whether the filtered current voltage data triggers an external interrupt, it is determined whether the shaking time of the magnetic beads in the magnetic bead detection channel within a preset time period is cleared in the external interrupt; wherein, when the magnetic beads in the magnetic bead detection channel block the light emitted by the optical coupler transmitting end, an interrupt is triggered, and the shaking time of the magnetic beads in the magnetic bead detection channel is started to be recorded; and when the light emitted by the optical coupler transmitting end is not blocked, an interrupt is triggered, and the recorded shaking time of the magnetic beads in the magnetic bead detection channel is cleared;
[0021] If it is determined that the shaking time of the magnetic beads in the magnetic bead detection channel is reset in the external interruption within the preset time period, it is determined that the magnetic beads in the magnetic bead detection channel have not stopped shaking;
[0022] If it is determined that the shaking time of the magnetic beads in the magnetic bead detection channel is not cleared in the external interruption within the preset time period, it is determined that the magnetic beads in the magnetic bead detection channel have stopped shaking.
[0023] Optionally, in the above-mentioned control method of the magnetic bead detection channel of the coagulation analyzer, the de-jitter information includes a de-jitter threshold and a de-jitter time, and judging whether the magnetic beads in the magnetic bead detection channel are in a jitter state based on the de-jitter information corresponding to the magnetic bead detection channel and the digital quantity of the optical coupler receiving end includes:
[0024] Determine whether the digital value of the optical coupler receiving end is higher than the jitter threshold corresponding to the magnetic bead detection channel and has lasted for the de-jitter time corresponding to the magnetic bead detection channel;
[0025] Among them, if it is determined that the digital quantity of the optical coupler receiving end is higher than the jitter threshold corresponding to the magnetic bead detection channel and has continued for the de-jitter time corresponding to the magnetic bead detection channel, it is determined that the magnetic beads in the magnetic bead detection channel are in a jitter state.
[0026] Optionally, in the above-mentioned control method of the magnetic bead detection channel of the coagulation analyzer, after driving the magnetic beads in the magnetic bead detection channel to swing according to the driving cycle and pull-in time corresponding to each magnetic bead detection channel, the method further includes:
[0027] Determine in real time whether the current test time of the magnetic bead detection channel has reached the maximum test time of the item in the test parameters corresponding to the current test item;
[0028] If it is determined that the current test time of the magnetic bead detection channel has reached the maximum test time of the item in the test parameters corresponding to the current test item, the current test item is terminated.
[0029] Optionally, in the above-mentioned control method of the magnetic bead detection channel of the coagulation analyzer, after determining that the magnetic bead detection channel has completed the test, it also includes:
[0030] If the magnetic bead swing configuration information corresponding to the magnetic bead detection channel in the test parameters corresponding to the current test item is to stop swinging, then stop providing driving force for the magnetic beads in the magnetic bead detection channel.
[0031] Optionally, in the above-mentioned control method of the magnetic bead detection channel of the coagulation analyzer, before driving the magnetic beads in the magnetic bead detection channel to swing according to the driving cycle and pull-in time corresponding to the magnetic bead detection channel for each of the magnetic bead detection channels, the method further includes:
[0032] In response to the user's test parameter modification operation, the test parameters corresponding to the current test item are modified.
[0033] A second aspect of the present application provides a control device for a magnetic bead detection channel of a coagulation analyzer, comprising:
[0034] A parameter acquisition unit, used to acquire a current test item and a test parameter corresponding to the current test item; wherein the test parameter corresponding to the current test item at least includes a drive cycle, a pull-in time, and debounce information corresponding to each magnetic bead detection channel of the coagulation analyzer;
[0035] A driving unit, for driving the magnetic beads in each magnetic bead detection channel to swing according to a driving cycle and a pull-in time corresponding to the magnetic bead detection channel;
[0036] A swing detection unit, used for judging in real time whether the magnetic beads in the magnetic bead detection channel have stopped swinging based on an external interrupt triggered by an optocoupler receiving end; wherein the optocoupler receiving end and the optocoupler transmitting end are respectively arranged on both sides of the magnetic bead detection channel;
[0037] A first determination unit is used to determine that the test of the magnetic bead detection channel is completed when it is determined that the magnetic beads in the magnetic bead detection channel have stopped.
[0038] A jitter detection unit, for determining whether the magnetic beads in the magnetic bead detection channel are in a jitter state based on the de-jitter information corresponding to the magnetic bead detection channel and the digital value of the optical coupler receiving end when it is determined that the magnetic beads in the magnetic bead detection channel have not stopped shaking;
[0039] The second determination unit is used to determine that the state of the magnetic bead detection channel is abnormal and terminate the test of the magnetic bead detection channel when it is determined that the magnetic beads in the magnetic bead detection channel are in a shaking state.
[0040] Optionally, in the control device for the magnetic bead detection channel of the above-mentioned coagulation analyzer, the driving unit comprises:
[0041] The driving subunit is used to control the period of the output PWM wave according to the driving period corresponding to the magnetic bead detection channel, so as to control the period of the force of the magnetic bead swinging in the magnetic bead detection channel, and to control the high level duration of the output PWM wave according to the attraction time corresponding to the magnetic bead detection channel, so as to control the time of the force of the magnetic bead swinging in the magnetic bead detection channel.
[0042] Optionally, in the control device of the magnetic bead detection channel of the coagulation analyzer, the swing detection unit includes:
[0043] A data acquisition unit, used for acquiring in real time current voltage data generated by the optical coupler receiving end receiving the light emitted by the optical coupler transmitting end;
[0044] A filtering processing unit, used for filtering the current voltage data;
[0045] A clearing judgment unit, used for judging whether the shaking time of the magnetic beads in the magnetic bead detection channel within a preset time period is cleared in the external interruption based on whether the filtered current voltage data triggers an external interruption; wherein, when the magnetic beads in the magnetic bead detection channel block the light emitted by the optical coupler transmitting end, an interruption is triggered, and the shaking time of the magnetic beads in the magnetic bead detection channel is started to be recorded; and when the light emitted by the optical coupler transmitting end is not blocked, an interruption is triggered, and the recorded shaking time of the magnetic beads in the magnetic bead detection channel is cleared;
[0046] A third determination unit is used to determine that the magnetic beads in the magnetic bead detection channel have not stopped when it is determined that the shaking time of the magnetic beads in the magnetic bead detection channel is reset in the external interruption within a preset time period;
[0047] The fourth determination unit is used to determine that the magnetic beads in the magnetic bead detection channel have stopped shaking when it is determined that the shaking time of the magnetic beads in the magnetic bead detection channel has not been reset to zero in the external interruption within a preset time period.
[0048] Optionally, in the control device of the magnetic bead detection channel of the coagulation analyzer, the de-jitter information includes a de-jitter threshold and a de-jitter time, and the jitter detection unit includes:
[0049] A jitter detection subunit, used to determine whether the digital quantity of the optical coupler receiving end is higher than the jitter threshold corresponding to the magnetic bead detection channel and has lasted for a de-jitter time corresponding to the magnetic bead detection channel;
[0050] Among them, if it is determined that the digital quantity of the optical coupler receiving end is higher than the jitter threshold corresponding to the magnetic bead detection channel and has continued for the de-jitter time corresponding to the magnetic bead detection channel, it is determined that the magnetic beads in the magnetic bead detection channel are in a jitter state.
[0051] Optionally, in the control device of the magnetic bead detection channel of the above-mentioned coagulation analyzer, it also includes:
[0052] A time detection unit, used to determine in real time whether the current test time of the magnetic bead detection channel has reached the maximum test time of the item in the test parameters corresponding to the current test item;
[0053] The project termination unit is used to terminate the current test project when it is determined that the current test time of the magnetic bead detection channel has reached the maximum test time of the project in the test parameters corresponding to the current test project.
[0054] Optionally, in the control device of the magnetic bead detection channel of the above-mentioned coagulation analyzer, it also includes:
[0055] The drive stopping unit is used to stop providing driving force for the magnetic beads in the magnetic bead detection channel when the magnetic bead swing configuration information corresponding to the magnetic bead detection channel in the test parameters corresponding to the current test item is to stop swinging.
[0056] Optionally, in the control device of the magnetic bead detection channel of the above-mentioned coagulation analyzer, it also includes:
[0057] The modification unit is used to respond to the user's test parameter modification operation and modify the test parameters corresponding to the current test item.
[0058] The present application provides a control method for a magnetic bead detection channel of a coagulation analyzer, which obtains the current test item and the test parameters corresponding to the current test item. Among them, the test parameters corresponding to the current test item at least include the drive cycle, pull-in time and de-jitter information corresponding to each magnetic bead detection channel of the coagulation analyzer. Thus, the appropriate parameters can be automatically selected according to the changes in the project, that is, the parameters can be changed, so that it is more convenient to study the impact of the new environment on the project. Then, for each magnetic bead detection channel, according to the drive cycle and pull-in time corresponding to the magnetic bead detection channel, the magnetic beads in the magnetic bead detection channel are driven to swing, and the magnetic beads in the magnetic bead detection channel are judged in real time based on the external interrupt triggered by the optical coupler receiving end. Among them, the optical coupler receiving end and the optical coupler transmitting end are respectively arranged on both sides of the magnetic bead detection channel, so as not to be easily affected by the outside world. If it is judged that the magnetic beads in the magnetic bead detection channel have stopped, it is determined that the magnetic bead detection channel has completed the test. If it is judged that the magnetic beads in the magnetic bead detection channel have not stopped, then based on the de-jitter information corresponding to the magnetic bead detection channel and the digital quantity of the optical coupler receiving end, it is judged whether the magnetic beads in the magnetic bead detection channel are in a jittering state. If it is determined that the magnetic beads in the magnetic bead detection channel are in a shaking state, the state of the magnetic bead detection channel is determined to be abnormal, and the test of the magnetic bead detection channel is terminated, so that the abnormal situation can be detected and the test can be terminated in time, further speeding up the test efficiency. Thus, a highly efficient control method that can effectively ensure the detection accuracy is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0060] Figure 1 A flow chart of a method for controlling a magnetic bead detection channel of a coagulation analyzer provided in an embodiment of the present application;
[0061] Figure 2 A schematic diagram of the structure of a coagulation analyzer provided in an embodiment of the present application;
[0062] Figure 3 A flow chart of a method for determining whether magnetic beads in a magnetic bead detection channel have stopped moving provided in an embodiment of the present application;
[0063] Figure 4 A schematic diagram of the architecture of a control device for a magnetic bead detection channel of a coagulation analyzer provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0065] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0066] The present application embodiment provides a method for controlling a magnetic bead detection channel of a coagulation analyzer, such as Figure 1 As shown, including:
[0067] S101. Obtain a current test item and test parameters corresponding to the current test item.
[0068] Among them, the current test item can also be a coagulation method, a chromogenic substrate method, an immunoturbidimetric method, and other test items. The test parameters corresponding to the current test item at least include the drive cycle, the pull-in time, and the de-jitter information corresponding to each magnetic bead detection channel of the coagulation analyzer. Of course, according to the needs, it can also include information such as the maximum test time of the item and whether the magnetic beads stop swinging after the test.
[0069] like Figure 2As shown, the coagulation analyzer may include multiple magnetic bead detection channels. A driving module is respectively provided at the head and tail of each magnetic bead detection channel, which is used to drive the magnetic beads in the magnetic bead detection channel to swing back and forth. Therefore, the driving cycle corresponding to the magnetic bead detection channel is the period of the magnetic beads swinging in the magnetic bead detection channel. The pull-in time corresponding to the magnetic bead detection channel is the time when the driving module attracts the magnetic beads. Optionally, the driving module is usually a coil, which will generate magnetism when powered on, and will attract the magnetic beads at this time, so the pull-in time is the time when the coil is powered on. The de-jitter information is information used to determine whether the magnetic beads are in a jittering state.
[0070] When conducting a test, the operator can place the reaction cup to be tested into the channel. It is necessary to ensure that the bottom of the reaction cup reaches the bottom of the channel so that the reflected optical coupler can detect it better. Then the current test item can be selected. At this time, the test parameters will be obtained according to the selected current test item, that is, the test parameters corresponding to the current test item will be obtained.
[0071] Therefore, we select the corresponding test items according to the test requirements and update the parameters synchronously to ensure that each item can use more appropriate parameters during the test. The parameters can be changed, which is more convenient when studying the impact of the new environment on the project.
[0072] Optionally, in another embodiment of the present application, after executing step S101 and before executing step S102, the following may be further included:
[0073] In response to the user's test parameter modification operation, the test parameters corresponding to the current test item are modified.
[0074] It should be noted that in order to make the test more flexible, in another embodiment of the present application, after obtaining the test parameters corresponding to the current test item, they can be displayed to the user. The user can modify the test parameters corresponding to the current test item according to the needs. Of course, this is only one of the optional methods, and the test parameters can also be modified in advance, so that when executing step S101, the modified test parameters can be directly obtained.
[0075] S102 , for each magnetic bead detection channel, drive the magnetic beads in the magnetic bead detection channel to swing according to the driving cycle and pull-in time corresponding to the magnetic bead detection channel.
[0076] Specifically, each magnetic bead detection channel is controlled separately, so when the test starts, the input of the driving force of the driving module is controlled according to the driving cycle and attraction time corresponding to the magnetic bead detection channel, so that the magnetic beads in the magnetic bead detection channel can be controlled to swing according to the corresponding driving cycle and attraction time.
[0077] Optionally, in another embodiment of the present application, a specific implementation of step S102 includes:
[0078] According to the driving period corresponding to the magnetic bead detection channel, the period of the output PWM wave is controlled to control the period of the force of the magnetic beads swinging in the magnetic bead detection channel. And according to the attraction time corresponding to the magnetic bead detection channel, the high level duration of the output PWM wave is controlled to control the time of the force of the magnetic beads swinging in the magnetic bead detection channel.
[0079] It should be noted that in the embodiment of the present application, the driving model is controlled by the output pulse width modulation signal (Pulse Width Modulation, PWM). Therefore, according to the driving cycle corresponding to the magnetic bead detection channel, the period of the output PWM wave is controlled, that is, the period of the output PWM wave is controlled to be consistent with the driving cycle corresponding to the magnetic bead detection channel, then the period of the force of the magnetic beads in the magnetic bead detection channel can be controlled to be consistent with the driving cycle corresponding to the magnetic bead detection channel, thereby controlling the magnetic beads in the magnetic bead detection channel to swing according to the driving cycle corresponding to the magnetic bead detection channel. When the high level of the output PWM wave is at a high level, the driving module outputs the force of the magnetic beads, so the control is controlled according to the pull-in time corresponding to the magnetic bead detection channel, and the high level duration of the output PWM wave is controlled, then the time of the force of the magnetic beads in the magnetic bead detection channel can be controlled, thereby controlling the time of the magnetic beads to be pulled in the corresponding pull-in time.
[0080] S103 , judging in real time whether the magnetic beads in the magnetic bead detection channel have stopped oscillating based on the external interrupt triggered by the optocoupler receiving end.
[0081] Among them, Figure 2 As shown, the optocoupler receiving end and the optocoupler transmitting end are respectively arranged on both sides of the magnetic bead detection channel. The optocoupler transmitting end will send light to the receiving end. The light needs to pass through the magnetic bead detection channel before reaching the receiving end. Therefore, the magnetic beads that are constantly swinging in the magnetic bead detection channel will block the light when passing through, making it impossible for the receiving end to receive the light, triggering an external interrupt. Therefore, based on the external interrupt triggered by the optocoupler receiving end, it can be determined whether the magnetic beads in the magnetic bead detection channel have stopped swinging.
[0082] It should be noted that in the normal test process, the test samples and reagents added to the reaction cup will react continuously, and the sample will gradually solidify. Correspondingly, since the resistance generated by the sample solidification will continue to increase, and since the driving force input by the driving module is certain, when the resistance generated by the sample solidification is greater than the driving force of the channel on the magnetic beads, the magnetic beads gradually stop swinging, and the magnetic beads are detected from swinging to stopping, the coagulation time of the sample can be obtained, and then the test results can be obtained. Therefore, it is necessary to detect whether the magnetic beads in the magnetic bead detection channel stop shutting down, so as to determine whether the test is completed and obtain the test results. In addition, it is also possible to test whether the magnetic beads are swinging normally, so that the test can be terminated in time when an abnormality occurs.
[0083] Therefore, if it is determined that the magnetic beads in the magnetic bead detection channel have stopped oscillating, step S104 is performed. If it is determined that the magnetic beads in the magnetic bead detection channel have not stopped oscillating, it is necessary to further determine whether they are oscillating normally.
[0084] Optionally, in another embodiment of the present application, a specific implementation of step S103 is as follows: Figure 3 As shown, the following steps are included:
[0085] S301, real-time acquisition of current voltage data generated by the photocoupler receiving end receiving the light emitted by the photocoupler transmitting end.
[0086] It should be noted that, since the magnetic beads will intermittently block the light when swinging, affecting the light received by the optocoupler receiving end, in order to obtain the light receiving condition of the optocoupler receiving end and determine whether the magnetic beads are swinging, a voltage will be generated after the optocoupler receiving end receives the light emitted by the optocoupler transmitting end. Therefore, the change in the generated voltage reflects the light receiving condition.
[0087] S302: Filter the current voltage data.
[0088] Considering that there may be noise data in the acquired current voltage data, in order to prevent the noise data from affecting the judgment result, the current voltage data is first filtered.
[0089] S303: Based on whether the filtered current voltage data triggers an external interrupt, determine whether the shaking time of the magnetic beads in the magnetic bead detection channel within a preset time period is cleared in the external interrupt.
[0090] It should be noted that in the embodiment of the present application, the magnetic beads in the magnetic bead detection channel will trigger an interrupt when they block the light emitted by the optical coupler transmitting end, and the interrupt processing at this time is to start recording the shaking time of the magnetic beads in the magnetic bead detection channel, so as to also record the length of time the magnetic beads block the light, and then determine its current swinging condition. In addition, an interrupt will also be triggered at the moment when the light emitted by the optical coupler transmitting end is not blocked. The processing performed by the interrupt at this time is to clear the shaking time of the magnetic beads in the magnetic bead detection channel currently recorded, so as to facilitate the next recording.
[0091] Therefore, when the magnetic beads are swinging normally, they will constantly change between blocking the light and not blocking the light, so that at intervals, the shaking time of the magnetic beads will be cleared when processing the external interrupt. Therefore, it can be determined whether the external interrupt is triggered based on the filtered current voltage data. When determining that the external interrupt is triggered, it can be determined whether the shaking time of the magnetic beads in the magnetic bead detection channel is cleared in the external interrupt within the preset time period, thereby determining whether the magnetic beads are swinging.
[0092] If the shaking time of the magnetic beads in the magnetic bead detection channel is cleared in the external interruption within the preset time period, step S304 is executed. If the shaking time of the magnetic beads in the magnetic bead detection channel is not cleared in the external interruption within the preset time period, step S305 is executed.
[0093] S304, determining that the magnetic beads in the magnetic bead detection channel have not stopped.
[0094] S305, determining that the magnetic beads in the magnetic bead detection channel have stopped.
[0095] S104, confirming that the magnetic bead detection channel has completed the test.
[0096] Since the magnetic beads have stopped swinging normally at this time, it means that the test of the detection channel has been completed. Therefore, it can be determined that the magnetic bead detection channel has completed the test, so as to output the test results and feedback to the user.
[0097] Optionally, in another embodiment of the present application, after executing step S104, the following may be further performed:
[0098] If the magnetic bead swing configuration information corresponding to the magnetic bead detection channel in the test parameters corresponding to the current test item is to stop swinging, then the driving force provided to the magnetic beads in the magnetic bead detection channel is stopped.
[0099] It should be noted that, in response to different test requirements, some tests will choose not to output driving force after the test is completed, so the test parameters corresponding to the current test item also include the magnetic bead swing configuration information corresponding to the magnetic bead detection channel. If the magnetic bead swing configuration information is to stop swinging, then stop providing driving force to the magnetic beads in the magnetic bead detection channel, that is, stop the output of the drive module.
[0100] S105 , judging whether the magnetic beads in the magnetic bead detection channel are in a jittering state based on the de-jitter information corresponding to the magnetic bead detection channel and the digital quantity of the optical coupler receiving end.
[0101] The digital quantity at the receiving end of the optocoupler refers to the data generated by the optocoupler depending on whether it receives light, which can be the time when the light is blocked.
[0102] It should be noted that under normal circumstances, the magnetic beads either swing normally or stop swinging. Therefore, continuous shaking is obviously an abnormal situation. Since the above test may detect the shaking as normal swinging, further judgment is required.
[0103] Since the amplitude of normal swing is large, the time it blocks the light emitted by the optocoupler transmitter is short and will change continuously. However, during continuous shaking, the position change is small and it will block the light emitted by the optocoupler transmitter for a long time. Therefore, the difference in the impact of the two on the light and the difference in the digital quantity of the optocoupler receiver can be used to set the de-jitter information corresponding to the magnetic bead detection channel, so as to determine whether the magnetic beads in the magnetic bead detection channel are in a shaking state.
[0104] If it is determined that the magnetic beads in the magnetic bead detection channel are in a shaking state, it means that the test of the magnetic bead detection channel is abnormal, and the result obtained is unreliable. Therefore, the magnetic beads did not swing normally and stop, so step S106 is executed at this time. If it is determined that the magnetic beads in the magnetic bead detection channel are not in a shaking state, it means that the magnetic beads are still swinging normally, that is, the test is still in progress, so no other operations are required.
[0105] Optionally, in another embodiment of the present application, the jitter information includes a jitter elimination threshold and a jitter elimination time, and a specific implementation of the response step S105 includes:
[0106] Determine whether the digital value at the optical coupler receiving end is higher than the jitter threshold corresponding to the magnetic bead detection channel and whether it has lasted for the de-jitter time corresponding to the magnetic bead detection channel.
[0107] It should be noted that in the embodiment of the present application, the digital quantity at the optocoupler receiving end mainly refers to the shading time, so when the digital quantity at the optocoupler receiving end is higher than the jitter threshold corresponding to the magnetic bead detection channel, it means that it may be in a jitter state. However, when the magnetic beads are swinging normally and are about to stop, the digital quantity at the optocoupler receiving end may be higher than the jitter threshold corresponding to the magnetic bead detection channel. Therefore, it is necessary to further determine whether this situation lasts for a period of time, that is, whether it lasts for the corresponding de-jitter time. Therefore, during normal swinging, this situation lasts for a very short time and it will stop. If it fails to stop in time, it means that it has been jittering for a long time, that is, an abnormality has occurred.
[0108] Therefore, if it is determined that the digital quantity at the optical coupler receiving end is higher than the jitter threshold corresponding to the magnetic bead detection channel and has lasted for the de-jitter time corresponding to the magnetic bead detection channel, it is determined that the magnetic beads in the magnetic bead detection channel are in a jitter state.
[0109] S106, determining that the state of the magnetic bead detection channel is abnormal, and terminating the test of the magnetic bead detection channel.
[0110] Since the magnetic beads in the magnetic bead detection channel swing abnormally at this time, it is determined that the state of the magnetic bead detection channel is abnormal, so that the test can be terminated in time and the user can be informed.
[0111] Since the magnetic beads in the magnetic bead detection channel swing abnormally, that is, they do not swing normally and stop, even if they stop later, the result is inaccurate, so there is no need to continue the test, so the test of the magnetic bead detection channel will be terminated at this time. Specifically, the output of the driving force can be stopped, etc. In addition, the user can be prompted to solve the problem.
[0112] Optionally, in another embodiment of the present application, after executing step S102, the following may be further performed:
[0113] Real-time judgment of the current test time of the magnetic bead detection channel to see whether it has reached the maximum test time of the item in the test parameters corresponding to the current test item.
[0114] If it is determined that the current test time of the magnetic bead detection channel has reached the maximum test time of the item in the test parameters corresponding to the current test item, the current test item is terminated.
[0115] It should be noted that, considering that the magnetic beads will continue to swing for a long time due to abnormal conditions, that is, the magnetic beads are judged to be swinging normally for a long time, in order to detect this situation in time, it is convenient to terminate the test in time, and conduct inspection and maintenance in time. Therefore, in the test parameters corresponding to the current test item, the maximum test time of the current test item is set. If the test time exceeds this time, it means that the swing of the magnetic beads is also abnormal. At this time, the current test item is terminated, that is, the output of the driving force of each magnetic bead detection channel is stopped. Similarly, the user can also be prompted at this time.
[0116] The embodiment of the present application provides a control method for a magnetic bead detection channel of a coagulation analyzer, and obtains the current test item and the test parameters corresponding to the current test item. Among them, the test parameters corresponding to the current test item at least include the drive cycle, pull-in time and de-jitter information corresponding to each magnetic bead detection channel of the coagulation analyzer. Thus, the appropriate parameters can be automatically selected according to the changes in the project, that is, the parameters can be changed, so that it is more convenient to study the impact of the new environment on the project. Then, for each magnetic bead detection channel, according to the drive cycle and pull-in time corresponding to the magnetic bead detection channel, the magnetic beads in the magnetic bead detection channel are driven to swing, and the magnetic beads in the magnetic bead detection channel are judged in real time based on the external interrupt triggered by the optical coupler receiving end. Among them, the optical coupler receiving end and the optical coupler transmitting end are respectively arranged on both sides of the magnetic bead detection channel, so as not to be easily affected by the outside world. If it is judged that the magnetic beads in the magnetic bead detection channel have stopped, it is determined that the magnetic bead detection channel has completed the test. If it is judged that the magnetic beads in the magnetic bead detection channel have not stopped, it is judged whether the magnetic beads in the magnetic bead detection channel are in a jittering state based on the de-jitter information corresponding to the magnetic bead detection channel and the digital quantity of the optical coupler receiving end. If it is determined that the magnetic beads in the magnetic bead detection channel are in a shaking state, the state of the magnetic bead detection channel is determined to be abnormal, and the test of the magnetic bead detection channel is terminated, so that the abnormal situation can be detected and the test can be terminated in time, further speeding up the test efficiency. Thus, a highly efficient control method that can effectively ensure the detection accuracy is realized.
[0117] Another embodiment of the present application provides a control device for a magnetic bead detection channel of a coagulation analyzer, which can be a coagulation analyzer. Figure 4 As shown, an embodiment of the present application provides a control device for a magnetic bead detection channel of a coagulation analyzer, comprising:
[0118] The parameter acquisition unit 401 is used to acquire the current test item and the test parameters corresponding to the current test item.
[0119] The test parameters corresponding to the current test item at least include the drive cycle, pull-in time and debouncing information corresponding to each magnetic bead detection channel of the coagulation analyzer.
[0120] The driving unit 402 is used to drive the magnetic beads in each magnetic bead detection channel to swing according to the driving cycle and pull-in time corresponding to the magnetic bead detection channel.
[0121] The swing detection unit 403 is used to determine in real time whether the magnetic beads in the magnetic bead detection channel have stopped swinging based on an external interrupt triggered by the optical coupler receiving end.
[0122] Among them, the optical coupler receiving end and the optical coupler transmitting end are respectively arranged on both sides of the magnetic bead detection channel.
[0123] The first determination unit 404 is used to determine that the test of the magnetic bead detection channel is completed when it is determined that the magnetic beads in the magnetic bead detection channel have stopped.
[0124] The jitter detection unit 405 is used to determine whether the magnetic beads in the magnetic bead detection channel are in a jitter state based on the de-jitter information corresponding to the magnetic bead detection channel and the digital value of the optical coupler receiving end when it is determined that the magnetic beads in the magnetic bead detection channel have not stopped.
[0125] The second determination unit 406 is used to determine that the state of the magnetic bead detection channel is abnormal and terminate the test of the magnetic bead detection channel when it is determined that the magnetic beads in the magnetic bead detection channel are in a shaking state.
[0126] Optionally, in a control device for a magnetic bead detection channel of a coagulation analyzer provided in another embodiment of the present application, the driving unit includes:
[0127] The driving subunit is used to control the period of the output PWM wave according to the driving period corresponding to the magnetic bead detection channel, so as to control the period of the force of the magnetic beads swinging in the magnetic bead detection channel, and to control the high-level duration of the output PWM wave according to the attraction time corresponding to the magnetic bead detection channel, so as to control the time of the force of the magnetic beads swinging in the magnetic bead detection channel.
[0128] Optionally, in the control device of the magnetic bead detection channel of the coagulation analyzer provided in another embodiment of the present application, the swing detection unit includes:
[0129] The data acquisition unit is used to acquire in real time the current voltage data generated by the optical coupler receiving end receiving the light emitted by the optical coupler transmitting end.
[0130] The filtering processing unit is used to filter the current voltage data.
[0131] The clearing judgment unit is used to judge whether the shaking time of the magnetic beads in the magnetic bead detection channel is cleared in the external interruption within a preset time period based on whether the filtered current voltage data triggers an external interruption. The magnetic beads in the magnetic bead detection channel trigger an interruption when they block the light emitted by the optical coupler transmitting end, and start recording the shaking time of the magnetic beads in the magnetic bead detection channel, and trigger an interruption when they do not block the light emitted by the optical coupler transmitting end, and clear the recorded shaking time of the magnetic beads in the magnetic bead detection channel.
[0132] The third determination unit is used to determine that the magnetic beads in the magnetic bead detection channel have not stopped when it is determined that the shaking time of the magnetic beads in the magnetic bead detection channel is reset in the external interruption within a preset time period.
[0133] The fourth determination unit is used to determine that the magnetic beads in the magnetic bead detection channel have stopped shaking when it is determined that the shaking time of the magnetic beads in the magnetic bead detection channel within a preset time period is not cleared in the external interruption.
[0134] Optionally, in a control device for a magnetic bead detection channel of a coagulation analyzer provided in another embodiment of the present application, the de-jitter information includes a de-jitter threshold and a de-jitter time, and the jitter detection unit includes:
[0135] The jitter detection subunit is used to determine whether the digital quantity at the optical coupler receiving end is higher than the jitter threshold corresponding to the magnetic bead detection channel and whether the de-jitter time corresponding to the magnetic bead detection channel has lasted.
[0136] If it is determined that the digital quantity at the optical coupler receiving end is higher than the jitter threshold corresponding to the magnetic bead detection channel and has lasted for the de-jitter time corresponding to the magnetic bead detection channel, it is determined that the magnetic beads in the magnetic bead detection channel are in a jitter state.
[0137] Optionally, in the control device of the magnetic bead detection channel of the coagulation analyzer provided in another embodiment of the present application, it also includes:
[0138] The time detection unit is used to determine in real time whether the current test time of the magnetic bead detection channel has reached the maximum test time of the item in the test parameters corresponding to the current test item.
[0139] The project termination unit is used to terminate the current test project when it is determined that the current test time of the magnetic bead detection channel has reached the maximum test time of the project in the test parameters corresponding to the current test project.
[0140] Optionally, in the control device of the magnetic bead detection channel of the coagulation analyzer provided in another embodiment of the present application, it also includes:
[0141] The drive stop unit is used to stop providing driving force for the magnetic beads in the magnetic bead detection channel when the magnetic bead swing configuration information corresponding to the magnetic bead detection channel in the test parameters corresponding to the current test item is to stop swinging.
[0142] Optionally, in the control device of the magnetic bead detection channel of the coagulation analyzer provided in another embodiment of the present application, it also includes:
[0143] The modification unit is used to respond to the user's test parameter modification operation and modify the test parameters corresponding to the current test item.
[0144] It should be noted that the specific working process of each unit provided in the above embodiments of the present application can refer to the implementation process of the corresponding steps in the above method embodiments, and will not be repeated here.
[0145] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0146] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for controlling a magnetic bead detection channel of a coagulation analyzer, characterized in that: include: Obtaining a current test item and a test parameter corresponding to the current test item; wherein the test parameter corresponding to the current test item at least includes a drive cycle, a pull-in time, and debounce information corresponding to each magnetic bead detection channel of the coagulation analyzer; For each of the magnetic bead detection channels, driving the magnetic beads in the magnetic bead detection channel to swing according to the driving cycle and pull-in time corresponding to the magnetic bead detection channel; In real time, judging whether the magnetic beads in the magnetic bead detection channel have stopped based on an external interrupt triggered by an optocoupler receiving end; wherein the optocoupler receiving end and the optocoupler transmitting end are respectively arranged on both sides of the magnetic bead detection channel; If it is determined that the magnetic beads in the magnetic bead detection channel have stopped, it is determined that the magnetic bead detection channel has completed the test; If it is determined that the magnetic beads in the magnetic bead detection channel have not stopped, then judging whether the magnetic beads in the magnetic bead detection channel are in a shaking state based on the de-jitter information corresponding to the magnetic bead detection channel and the digital value of the optical coupler receiving end; If it is determined that the magnetic beads in the magnetic bead detection channel are in a shaking state, it is determined that the state of the magnetic bead detection channel is abnormal, and the test of the magnetic bead detection channel is terminated.
2. The method according to claim 1, characterized in that The step of driving the magnetic beads in the magnetic bead detection channel to swing according to the driving cycle and the pull-in time corresponding to the magnetic bead detection channel comprises: According to the driving cycle corresponding to the magnetic bead detection channel, the cycle of the output PWM wave is controlled to control the cycle of the force for attracting the swing of the magnetic beads in the magnetic bead detection channel; According to the corresponding attraction time of the magnetic bead detection channel, the high level duration of the output PWM wave is controlled to control the time of the force of the magnetic bead swinging in the magnetic bead detection channel.
3. The method according to claim 1, characterized in that: The real-time determination of whether the magnetic beads in the magnetic bead detection channel have stopped based on an external interrupt triggered by an optocoupler receiving end includes: Real-time acquisition of current voltage data generated by the optical coupler receiving end receiving the light emitted by the optical coupler transmitting end; Performing filtering on the current voltage data; Based on whether the filtered current voltage data triggers an external interrupt, it is determined whether the shaking time of the magnetic beads in the magnetic bead detection channel within a preset time period is cleared in the external interrupt; wherein, when the magnetic beads in the magnetic bead detection channel block the light emitted by the optical coupler transmitting end, an interrupt is triggered, and the shaking time of the magnetic beads in the magnetic bead detection channel is started to be recorded; and when the light emitted by the optical coupler transmitting end is not blocked, an interrupt is triggered, and the recorded shaking time of the magnetic beads in the magnetic bead detection channel is cleared; If it is determined that the shaking time of the magnetic beads in the magnetic bead detection channel is reset in the external interruption within the preset time period, it is determined that the magnetic beads in the magnetic bead detection channel have not stopped shaking; If it is determined that the shaking time of the magnetic beads in the magnetic bead detection channel is not cleared in the external interruption within the preset time period, it is determined that the magnetic beads in the magnetic bead detection channel have stopped shaking.
4. The method according to claim 1, characterized in that The de-jitter information includes a de-jitter threshold and a de-jitter time, and judging whether the magnetic beads in the magnetic bead detection channel are in a jitter state based on the de-jitter information corresponding to the magnetic bead detection channel and the digital quantity of the optical coupler receiving end includes: Determine whether the digital value of the optical coupler receiving end is higher than the jitter threshold corresponding to the magnetic bead detection channel and has lasted for the de-jitter time corresponding to the magnetic bead detection channel; Among them, if it is determined that the digital quantity of the optical coupler receiving end is higher than the jitter threshold corresponding to the magnetic bead detection channel and has continued for the de-jitter time corresponding to the magnetic bead detection channel, it is determined that the magnetic beads in the magnetic bead detection channel are in a jitter state.
5. The method according to claim 1, characterized in that After driving the magnetic beads in each magnetic bead detection channel to swing according to the driving cycle and pull-in time corresponding to the magnetic bead detection channel, the method further includes: Determine in real time whether the current test time of the magnetic bead detection channel has reached the maximum test time of the item in the test parameters corresponding to the current test item; If it is determined that the current test time of the magnetic bead detection channel has reached the maximum test time of the item in the test parameters corresponding to the current test item, the current test item is terminated.
6. The method according to claim 1, characterized in that After determining that the magnetic bead detection channel has completed the test, the method further includes: If the magnetic bead swing configuration information corresponding to the magnetic bead detection channel in the test parameters corresponding to the current test item is to stop swinging, then stop providing driving force to the magnetic beads in the magnetic bead detection channel.
7. The method according to claim 1, characterized in that Before driving the magnetic beads in each magnetic bead detection channel to swing according to the driving cycle and pull-in time corresponding to the magnetic bead detection channel, the method further includes: In response to the user's test parameter modification operation, the test parameters corresponding to the current test item are modified.
8. A control device for a magnetic bead detection channel of a coagulation analyzer, characterized in that: include: A parameter acquisition unit, used to acquire a current test item and a test parameter corresponding to the current test item; wherein the test parameter corresponding to the current test item at least includes a drive cycle, a pull-in time, and debounce information corresponding to each magnetic bead detection channel of the coagulation analyzer; A driving unit, for driving the magnetic beads in each magnetic bead detection channel to swing according to a driving cycle and a pull-in time corresponding to the magnetic bead detection channel; A swing detection unit, used for judging in real time whether the magnetic beads in the magnetic bead detection channel have stopped swinging based on an external interrupt triggered by an optocoupler receiving end; wherein the optocoupler receiving end and the optocoupler transmitting end are respectively arranged on both sides of the magnetic bead detection channel; A first determination unit is used to determine that the test of the magnetic bead detection channel is completed when it is determined that the magnetic beads in the magnetic bead detection channel have stopped. A jitter detection unit, for determining whether the magnetic beads in the magnetic bead detection channel are in a jitter state based on the de-jitter information corresponding to the magnetic bead detection channel and the digital value of the optical coupler receiving end when it is determined that the magnetic beads in the magnetic bead detection channel have not stopped shaking; The second determination unit is used to determine that the state of the magnetic bead detection channel is abnormal and terminate the test of the magnetic bead detection channel when it is determined that the magnetic beads in the magnetic bead detection channel are in a shaking state.
9. The device according to claim 8, characterized in that The driving unit comprises: The driving subunit is used to control the period of the output PWM wave according to the driving period corresponding to the magnetic bead detection channel, so as to control the period of the force of the magnetic bead swinging in the magnetic bead detection channel, and to control the high level duration of the output PWM wave according to the attraction time corresponding to the magnetic bead detection channel, so as to control the time of the force of the magnetic bead swinging in the magnetic bead detection channel.
10. The device according to claim 8, characterized in that The swing detection unit comprises: A data acquisition unit, used for acquiring in real time current voltage data generated by the optical coupler receiving end receiving the light emitted by the optical coupler transmitting end; A filtering processing unit, used for filtering the current voltage data; A clearing judgment unit, used for judging whether the shaking time of the magnetic beads in the magnetic bead detection channel within a preset time period is cleared in the external interruption based on whether the filtered current voltage data triggers an external interruption; wherein, when the magnetic beads in the magnetic bead detection channel block the light emitted by the optical coupler transmitting end, an interruption is triggered, and the shaking time of the magnetic beads in the magnetic bead detection channel is started to be recorded; and when the light emitted by the optical coupler transmitting end is not blocked, an interruption is triggered, and the recorded shaking time of the magnetic beads in the magnetic bead detection channel is cleared; A third determination unit is used to determine that the magnetic beads in the magnetic bead detection channel have not stopped when it is determined that the shaking time of the magnetic beads in the magnetic bead detection channel is reset in the external interruption within a preset time period; The fourth determination unit is used to determine that the magnetic beads in the magnetic bead detection channel have stopped shaking when it is determined that the shaking time of the magnetic beads in the magnetic bead detection channel has not been reset to zero in the external interruption within a preset time period.