Data collection method, apparatus, device, and medium
By acquiring and storing the collected data during the triggering of the optocoupler signal, and using the median cache address to obtain the target collected data, the problem of installation difficulty and data inaccuracy caused by the strict requirements of the device installation position in the prior art is solved, and the effects of simplifying installation and improving the acquisition accuracy are achieved.
Patent Information
- Application Number
- CN202210366492.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-08
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2042-04-08
AI Technical Summary
In existing technologies, the installation location of CRP/SAA signal acquisition devices is subject to strict requirements. Positional deviations lead to inaccurate data acquisition, increase installation difficulty, and affect the accuracy of concentration calculation.
By acquiring and storing the collected data during the optocoupler signal triggering period, and using the median cache address to obtain the target collected data, the requirements of the device installation on the position relationship are reduced, and the data accuracy is ensured.
It simplifies the device installation process, improves the accuracy and precision of data acquisition, and reduces installation difficulty.
Smart Images

Figure CN114839140B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to data acquisition methods, apparatus, equipment and media. Background Technology
[0002] Currently, the signal acquisition method for C-reactive protein (CRP) and serum amyloid (SAA) involves placing the sample into a reaction cup within a reaction pan (the pan contains dozens of reaction cups). Latex agglomeration occurs within the cup due to antigen-antibody binding. Then, when the cup containing the agglomerated latex is moved to an optical detection device, light is scattered across the agglomerated latex. This scattered light is received by a sensor and converted into a voltage value, the magnitude of which reflects the true concentration of CRP / SAA.
[0003] In existing technologies, to ensure accurate acquisition of the effective voltage value, a matching counting optocoupler is used. Each time a new reaction vessel rotates into the detection range of the counting optocoupler, an optocoupler signal is triggered. However, this existing technology requires careful configuration of the relative positions of the counting optocoupler and the optical detection device, demanding that the relative positional relationship between these two units meet certain requirements, such as... Figure 1 As shown, the starting point of the optical coupler signal change should be located in the flat region of the acquired signal, that is... Figure 1 The two black dots marked in the middle must be acquired at the same or similar times, so that the effective voltage value can be located based on the change in the optocoupler signal. However, this scheme also has high requirements for the relative positional relationship between the two units. Once the installation position of the device is deviated, it will cause a large jump in the originally acquired response curve, such as... Figure 11 As shown, the fitting calculation of the back-end curve is affected, resulting in a large deviation between the calculated CRP / SAA concentration and the actual CRP / SAA concentration. Therefore, it is also necessary to accurately verify whether the installation location of the device is reasonable, which also increases the difficulty of device installation. Summary of the Invention
[0004] Based on this, this application provides a data acquisition and detection system, method, and medium.
[0005] In the first aspect, a sample detection data acquisition system is provided, including: a sampling module, a signal detection module, a position calculation module, a data processing module, and a storage module;
[0006] The sampling module is used to sample the sample signal based on the optical detector to obtain the sample signal. The sample signal is the signal generated when the sample to be tested is detected. The sample to be tested is placed in the reaction cup of the rotating disk. The outer side of the rotating disk is provided with the optical detection position and the counting optical coupler position, which are respectively used to set the optical detection device and the counting optical coupler.
[0007] The signal detection module is used to detect the state of the optocoupler based on the counting optocoupler to obtain the optocoupler signal;
[0008] The position calculation module is used to calculate the current position of the rotating disk corresponding to the counting optocoupler based on the optocoupler signal.
[0009] The data processing module is used to perform data acquisition, midpoint calculation and output midpoint result, wherein the data acquisition is based on the sampling signal and the position of the rotating disk;
[0010] The storage module is used to store the reaction cup number, sampling number, and data acquisition results used for midpoint calculation, as well as to store the midpoint results output by the data processing module.
[0011] Secondly, a method for collecting sample detection data is provided, including:
[0012] Acquire a sampling signal, wherein the sample signal is the signal generated when the sample to be tested is detected by the optical detection device, the sample to be tested is placed in the reaction cup of the rotating disk, and the optical detection position and the counting optical coupler position are provided on the outside of the rotating disk, which are respectively used to set the optical detection device and the counting optical coupler.
[0013] The optical coupler status is detected by the counting optical coupler device to obtain the optical coupler signal;
[0014] The position of the rotating disk corresponding to the counting optocoupler is calculated based on the optocoupler signal.
[0015] Perform data acquisition and output the midpoint calculation result, wherein the data acquisition is based on the sampling signal and the position of the rotating disk;
[0016] The system stores the reaction cup number and sampling number of the acquired data, as well as the midpoint result output by the data processing module.
[0017] Thirdly, a computer-readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform the steps of the above-described data acquisition method.
[0018] Fourthly, a data acquisition device is provided, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the steps of the above-described data acquisition method.
[0019] This invention provides a data acquisition and detection system, method, and medium. Firstly, whenever a new reaction vessel rotates into the detection range of the counting optocoupler device, an optocoupler signal is triggered. During the time interval between two triggering optocoupler signals, data from each reaction vessel is acquired and stored as a first buffer data in a corresponding first buffer address. Then, among the multiple first buffer addresses storing the acquired data, the first buffer address with the median address is read, and the read data is used as the target acquired data. Since the acquired data typically exhibits a pulsed pattern—that is, the data increases from 0 to a relatively stable level and then decreases back to 0—and the acquired data stored at the median first buffer address is relatively smooth, it can effectively reflect the true parameters of the reagent. Accordingly, as... Figure 2 As shown, regarding the relative positional relationship between the counting optocoupler and the optical detection device, it is sufficient that enough data can be acquired within the time interval between the two triggering of the optocoupler signals after the device is installed (i.e., within the interval between the two reaction cups). Figure 2 The acquisition time relationship of the four black dots shown can be used to greatly reduce the difficulty of device installation, while also ensuring the accuracy of the collected data. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] in:
[0022] Figure 1 This is a schematic diagram of the acquisition of optical coupler signals and pulse signals in existing CRP / SAA concentration detection.
[0023] Figure 2 This is a schematic diagram illustrating the acquisition of optical coupler signals and pulse signals in the first embodiment;
[0024] Figure 3 This is a flowchart illustrating the data acquisition method in the first embodiment;
[0025] Figure 4 This is a schematic diagram of the data acquisition system in the first embodiment;
[0026] Figure 5 This is a flowchart illustrating the data acquisition method in the second embodiment;
[0027] Figure 6This is a schematic diagram of the data acquisition system in the second embodiment;
[0028] Figure 7 A schematic diagram showing multiple reaction vessels sequentially numbered.
[0029] Figure 8 This is a schematic diagram of the FPGA structure in one embodiment;
[0030] Figure 9 This is a schematic diagram of a data acquisition system in one embodiment;
[0031] Figure 10 This is a schematic diagram of the reaction cup numbered 1 in one embodiment being moved to the counting optocoupler;
[0032] Figure 11 This is a schematic diagram of the reaction curve results in one embodiment;
[0033] Figure 12 This is a schematic diagram of the structure of a data acquisition method apparatus in one embodiment;
[0034] Figure 13 This is a structural block diagram of a data acquisition method device in one embodiment;
[0035] Reference numerals: reaction plate 100, reaction cup 110, optical detection device 200, sample loading device 300, counting optical coupler device 400. Detailed Implementation
[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0037] like Figure 3 As shown, Figure 3 This is a flowchart illustrating the data acquisition method in the first embodiment. The data acquisition method in this first embodiment is applied to, for example... Figure 4 The data acquisition system shown. See also Figure 4The data acquisition system includes a counting optocoupler 400, an optical detection device 200, a reaction disk 100, and multiple reaction cups 110 placed on the reaction disk 100 (some reaction cups are omitted in the figure). The reaction disk 100 rotates counterclockwise, causing the reaction cups 110 to pass sequentially through the counting optocoupler 400 and the optical detection device 200. During the rotation of the reaction disk, the optocoupler signal is triggered once each time a reaction cup 110 rotates to the counting optocoupler 400. The reaction cup 110 corresponding to the optical detection device 200 is the reaction cup to be tested. When the reaction cup to be tested, containing latex agglomerates, rotates to the optical detection device 200, light shines on the agglomerated latex and is scattered. The scattered light is then received by the sensor of the optical detection device 200 and converted into a voltage value. In this embodiment, a first cache address set is set for the reaction cup to be tested, which includes multiple first cache addresses with consecutive address numbers.
[0038] The data acquisition method provided in this first embodiment includes the following steps:
[0039] Step 302: After detecting the signal start point of the reaction vessel to be tested, for each reaction vessel to be tested, the collected data is stored as the first buffer data in a corresponding first buffer address until the signal end point of the reaction vessel to be tested is detected.
[0040] In this embodiment, a single trigger change of the optocoupler signal corresponds to a reaction cup number. After detecting the signal start point of the reaction cup under test, the optical detection device acquires data for each reaction cup under test and stores this data as first buffer data in a corresponding first buffer address. For example, after detecting the signal start point of the reaction cup under test, the acquisition data of the first reaction cup under test is acquired and stored as first buffer data in the first buffer address {0} with the first address sequence number. Then, when the acquisition data of the second reaction cup under test is acquired, the acquisition data is stored as first buffer data in the first buffer address {1} with the second address sequence number. This process is repeated until the signal end point of the reaction cup under test is detected.
[0041] Step 304: Among the multiple first cache addresses that store the collected data, read the first cache address with the median address number, and use the read collected data as the target collected data.
[0042] In one specific embodiment, a suitable data acquisition threshold is first preset, and data acquisition data exceeding this threshold is used as valid data for calculating the midpoint. If a total of 14 first cache data satisfy this condition and are stored in the first cache addresses {0} to {13} respectively, then the address {0} where the first data acquisition data exceeding the threshold is stored is used as the starting cache address, and the address {13} where the last data acquisition data exceeding the threshold is stored is used as the ending cache address. Then, the first cache address {7} with the median address sequence number between the starting cache address and the ending cache address is read and input into the read port of the historical record cache unit 2. The result returned by the read port is the target data acquisition data, i.e., the midpoint data, denoted as med_pos.
[0043] The aforementioned data acquisition method first triggers an optocoupler signal whenever a new reaction vessel rotates into the detection range of the counting optocoupler device. During the time interval between the triggering of two optocoupler signals, this application acquires data from each reaction vessel and stores it as first buffer data in a corresponding first buffer address. Then, among the multiple first buffer addresses storing the acquired data, the median first buffer address is read, and the read data is used as the target acquired data. Since the acquired data typically exhibits a pulsed pattern—that is, the data increases from 0 to a relatively stable level and then decreases back to 0—and the acquired data stored at the median first buffer address is relatively smooth, it can effectively reflect the true parameters of the reagent. Correspondingly, as... Figure 2 As shown, regarding the relative positional relationship between the counting optocoupler and the optical detection device, it is sufficient that enough data can be acquired within the time interval between the two triggering of the optocoupler signals after the device is installed (i.e., within the interval between the two reaction cups). Figure 2 The acquisition time relationship of the four black dots shown can be used to greatly reduce the difficulty of device installation, while also ensuring the accuracy of the collected data.
[0044] like Figure 5 As shown, Figure 5 This is a flowchart illustrating the data acquisition method in the second embodiment, which is applied to, for example... Figure 6 The data acquisition system shown. (Refer to...) Figure 6 The data acquisition system includes a counting optical coupler 400, a sample loading device 300, an optical detection device 200, a reaction plate 100, and multiple reaction cups 110 placed on the reaction plate 100 (some reaction cups are omitted in the figure).
[0045] In this embodiment, the reaction disk 100 rotates counterclockwise, causing the reaction cups 110 to pass sequentially through the counting optical coupler device 400, the sample dispensing device 300, and the optical detection device 200. In this embodiment, the reaction cup 110 corresponding to the counting optical coupler device 400 is designated as the current counting cup, the reaction cup 110 corresponding to the sample dispensing device 300 is designated as the reaction cup to be collected, and the reaction cup 110 corresponding to the optical detection device 200 is designated as the reaction cup to be tested. The counting optical coupler device 400 is used to determine whether the reaction disk 100 is rotating, and at the sample dispensing device 300, it determines whether the corresponding reaction cup to be collected needs data acquisition. When a reaction cup containing latex agglomerates rotates to the optical detection device 200, light irradiates the agglomerated latex and is scattered. The scattered light is then received by the sensor of the optical detection device 200 and converted into a voltage value. Figure 7 These reaction cups 110 (some reaction cups 110 are omitted in the figure) are sequentially numbered. For example, there are 50 reaction cups 110 on the reaction tray 100, and they are numbered 1-50 respectively.
[0046] like Figure 8 As shown, the data acquisition method of this second embodiment is executed based on a Field Programmable Gate Array (FPGA). The FPGA includes units for A / D acquisition, optocoupler signal detection, data acquisition command issuance, reaction disk position calculation, data acquisition selection, historical record buffer unit 1, midpoint calculation algorithm, historical record buffer unit 2, data acquisition storage, historical record buffer unit 3, and data uploading. Specifically:
[0047] The data acquisition command issuing unit is used to issue the acquisition command sample_en to control data acquisition.
[0048] The optocoupler signal changes during the rotation of the reaction disk, and the optocoupler signal detection unit is used to detect the optocoupler signal.
[0049] The reaction disk position calculation unit calculates the current position of the reaction disk based on the optocoupler signal. The detailed process is as follows: during the rotation of the reaction disk, whenever a reaction cup rotates to the counting optocoupler device, the optocoupler signal is triggered once, and the corresponding position spin_pos of the reaction disk is incremented by 1, meaning the reaction disk changes one cup position. Specifically, the data acquisition device of this invention has a total of 50 cup positions. Therefore, when the spin_pos before accumulation equals 50, the accumulated spin_pos becomes 1, indicating that the corresponding reaction disk cup position is reaction cup number 1.
[0050] The A / D acquisition unit collects data from the sample in the reaction vessel, obtaining the A / D acquired data, such as... Figure 2As shown, the A / D acquisition data ad_data of a reaction vessel is represented as a square wave.
[0051] The data acquisition selection unit selects and judges data and outputs valid acquired data.
[0052] The midpoint calculation algorithm unit calculates the midpoint data from multiple collected data points of a reaction vessel.
[0053] The data acquisition and storage unit stores the midpoint data for each reaction vessel.
[0054] Historical record storage unit 1, historical record storage unit 2 and historical record storage unit 3 each store specific data, as detailed below.
[0055] Data upload is used to upload the collected data that has been collected a preset number of times.
[0056] The data acquisition method provided in this second embodiment includes the following steps:
[0057] Step 502: When the optical coupler signal triggers a change, calculate the reaction cup number corresponding to the sample dispensing device and the position of the reaction disk corresponding to the optical coupler device when the reaction cup corresponding to the sample dispensing device moves to the optical detection position.
[0058] Step 504: Each time the counting optocoupler is triggered, the current position of the reaction disk is used as the second buffer address and input to the address read port.
[0059] Step 506: If the cached result output by the address reading port is not 0, then the midpoint of the test reaction cup is calculated, and the current reaction plate position is used as the second cache address. Data is then rewritten into the second cache address, and the data includes the updated actual number of acquisitions.
[0060] Specifically, corresponding to steps 502-506, when the sampling signal sample_en = 1, calculate the reaction cup number (ID) corresponding to the sampling device at that time and the reaction disk position spin_pos_det corresponding to the optical detection device when it is switched to the optical detection device. Optionally, the calculation methods of ID and spin_pos_det can be as shown in Equations 1-1 and 1-2 below;
[0061] ID=spin_cur_pos-OPTI_ORG_GAP Formula 1-1
[0062] spin_pos_det=spin_cur_pos+OPTI_CHECK_GAP Formula 1-2
[0063] In Formula 1-1, OPTI_ORG_GAP represents the cup position interval between the sample application device 300 and the counting optocoupler device 400. Figure 9 It can be seen that in the embodiments of this application, OPTI_ORG_GAP = n + k can be set;
[0064] In Formulas 1-2, OPTI_CHECK_GAP represents the cup position interval between the sample application device 300 and the optical detection device 200. Figure 9 As can be seen, in this embodiment of the application, OPTI_CHECK_GAP = z can be set.
[0065] Then, store the ID and the actual number of collections (No) into the historical record cache unit 1; the storage address is spin_pos_det, and the stored data includes, but is not limited to, the ID and the actual number of collections (No).
[0066] Each time the counting optocoupler is triggered, the current reaction disk position spin_pos is used as the second cache address and input to the RAM read address port of the historical record cache unit 1. If the cached result r_ram_data output by the RAM is not 0, the algorithm acquisition flag algo_flag is output as 1, the midpoint of the test reaction cup is calculated, the current reaction disk position is used as the second cache address, the NO in the cache data is updated, and it is rewritten to RAM with the storage address spin_pos. However, if the updated NO reaches the required upper limit, the data at that storage address is cleared, that is, 0 is written to RAM with the storage address spin_pos.
[0067] For example, see Figure 10 When reaction cup number 1 moves to the counting optocoupler, the counting optocoupler is triggered. Simultaneously, reaction cup number 47 moves to the optical detection device. At this time, {1, 8'd0} is used as the second buffer address and input to the address read port of the historical record buffer unit 1 to read the written second buffer data r_ram_data. If r_ram_data is not 0, data is acquired for the reaction cup at the optical detection position, and the acquisition flag algo_flag = 1 is output to the midpoint calculation algorithm unit. If the content corresponding to the address {1, 8'd0} is 0, no data is acquired for the reaction cup corresponding to the optical detection position.
[0068] Step 508: After detecting the signal start point of the reaction vessel to be tested, for each reaction vessel to be tested, the collected data is stored as the first buffer data in a corresponding first buffer address until the signal end point of the reaction vessel to be tested is detected.
[0069] In this embodiment, within the historical record cache unit 1, the second cache address corresponding to each test reaction vessel includes the unit sampling count and the actual sampling count for the test reaction vessel. The unit sampling count indicates the number of times data needs to be collected from the test reaction vessel, for example, setting the unit sampling count to 14 times. The actual sampling count indicates the actual number of times data is collected from the test reaction vessel, with an initial value of 0.
[0070] After detecting the signal start point of the reaction cup under test, the optical detection device acquires data for each reaction cup under test and stores this data as first buffer data in a corresponding first buffer address. For example, after detecting the signal start point of the reaction cup under test, the acquired data for the first reaction cup under test is stored as first buffer data in first buffer address {0} with the first address sequence number. Then, when the acquired data for the second reaction cup under test is acquired, it is stored as first buffer data in first buffer address {1} with the second address sequence number. This process is repeated until the signal end point of the reaction cup under test is detected. After obtaining the midpoint result of the reaction cup under test, the actual acquisition count is updated simultaneously.
[0071] Step 510: Among the multiple first cache addresses that store the collected data, read the first cache address with the median address number, and use the read collected data as the target collected data.
[0072] The midpoint calculation algorithm unit first presets a small data acquisition threshold, and uses data acquisition data exceeding this threshold as valid data for calculating the midpoint. If the algorithm flag alg_flag = 1, the midpoint calculation algorithm unit calculates the target acquisition data; otherwise, it does not. The detailed process for calculating the target acquisition data is as follows: the address where the first acquisition data exceeding the threshold is stored is used as the starting cache address, and the address where the last acquisition data exceeding the threshold is stored is used as the ending cache address; then, the first cache address whose address sequence number is the median between the starting and ending cache addresses is read and input into the read port of the historical record cache unit 2. The result obtained from the read port is the target acquisition data, i.e., the midpoint data, denoted as med_pos.
[0073] Historical record cache unit 2 mainly stores all A / D acquisition results located between the start and end points during the midpoint calculation process.
[0074] Step 512: Read the third cache data stored under the third cache address. If the current collection count is equal to the preset collection count, then execute step 514 to upload all target collection data under the third cache address.
[0075] In this embodiment, the data acquisition and storage unit stores the results output by the midpoint calculation algorithm unit. Specifically, the third cache address is {R_ID, No}, and the stored third cache data is med_pos. Therefore, when... Figure 10 In the embodiment, when the second midpoint data of the test reaction vessel numbered 47 is stored, the storage address is {R_47,2}.
[0076] Based on this, when reading the third cache data stored at the third cache address, if No=40 exists, the channel acquisition completion flag (finish_flag) and the completed sampling cup position (finish_ID) are output to the data upload unit. It is understandable that... Figure 10 In this example, finish_ID = 47.
[0077] The data upload unit inputs {finish_ID,1} as the read address into the history cache unit 3. The output data of the history cache unit 3 is the required upload data. Simultaneously, the read address is incremented by 1 after each data read, until all data for that channel has been read. Plotting the data from one channel uploaded by the data upload unit into a curve yields the reaction curve of the sample after reagent addition, as shown below. Figure 11 As shown.
[0078] The data acquisition method described above, employing the midpoint method, can eliminate the influence of different rotation speeds within a cycle on the data collected, ensuring the accuracy of the results. Furthermore, the relative positions of the counting optical coupler, sample loading device, and optical detection device in this method are relatively flexible. Since each reaction vessel is assigned a number, these devices only need to be set to correspond to the position of any one reaction vessel, which greatly simplifies the installation of the device.
[0079] In one embodiment, such as Figure 12 As shown, a data acquisition method apparatus is proposed for use in a data acquisition system. The data acquisition system includes a counting optical coupler, an optical detection device, a reaction disk, and multiple reaction cups placed on the reaction disk. The counting optical coupler is used to detect the optical coupler signal. The reaction cup with a sample added at the sample application device is the test reaction cup. Data acquisition is required every time the test reaction cup rotates to the optical detection device. The optical detection device is used for data acquisition. The test reaction cup is set with a first cache address set, which includes multiple first cache addresses with consecutive address numbers. The data acquisition method apparatus includes:
[0080] The data caching module 1202 is used to, after detecting the signal start point of the reaction cup under test, acquire the collected data of each reaction cup under test and store the collected data as the first cache data in a corresponding first cache address, until the signal end point of the reaction cup under test is detected; wherein, one trigger change of the optocoupler signal corresponds to one reaction cup number;
[0081] The data acquisition module 1204 is used to read the first cache address with the median address number from multiple first cache addresses that store the acquired data, and use the read acquired data as the target acquired data. The target acquired data is used to indicate the true parameters of the reagent in the test reaction vessel.
[0082] Figure 13 An internal structural diagram of a data acquisition method device in one embodiment is shown. Figure 13 As shown, the data acquisition method device includes a processor, a memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement the data acquisition method. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to perform the data acquisition method. Those skilled in the art will understand that… Figure 13 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the data acquisition method and device to which the present application is applied. The specific data acquisition method and device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0083] A data acquisition method device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps: after detecting the signal start point of a reaction vessel to be tested, for each reaction vessel to be tested, the acquired data is stored as a first buffer data in a corresponding first buffer address until the signal end point of the reaction vessel to be tested is detected; wherein, one trigger change of the photocoupler signal corresponds to one reaction vessel number; among the multiple first buffer addresses storing the acquired data, the first buffer address with the median address number is read, and the read acquired data is used as the target acquired data, which is used to indicate the true parameters of the reagents in the reaction vessel to be tested.
[0084] A computer-readable storage medium storing a computer program, which, when executed by a processor, performs the following steps: after detecting the signal start point of a reaction vessel to be tested, acquiring data for each reaction vessel to be tested, storing the acquired data as first buffer data in a corresponding first buffer address, until the signal end point of the reaction vessel to be tested is detected; wherein, one trigger change of the optocoupler signal corresponds to one reaction vessel number; among the multiple first buffer addresses storing the acquired data, reading the first buffer address whose address sequence number is the median, and using the read acquired data as target acquired data, the target acquired data being used to indicate the true parameters of the reagents in the reaction vessel to be tested.
[0085] It should be noted that the above-mentioned data acquisition methods, devices, equipment, and computer-readable storage media belong to the same general inventive concept, and the contents of the embodiments of the data acquisition methods, devices, equipment, and computer-readable storage media are applicable to each other.
[0086] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0087] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0088] The above embodiments merely illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A data acquisition method, characterized in that, This invention is applied to a data acquisition system, which includes a counting optical coupler, an optical detection device, a reaction disk, and multiple reaction cups placed on the reaction disk. The reaction disk rotates, causing the reaction cups to pass sequentially through the counting optical coupler and the optical detection device. During the rotation of the reaction disk, each time a reaction cup rotates to the counting optical coupler, an optical coupler signal is triggered. The counting optical coupler is used to detect the optical coupler signal. The reaction cup with a sample added at the sample application device is the test reaction cup. Data acquisition is required every time the test reaction cup rotates to the optical detection device. The optical detection device is used for data acquisition. The test reaction cup is configured with a first cache address set, which includes multiple consecutive first cache addresses. The method includes: After detecting the signal start point of the reaction cup under test, each time the data of the reaction cup under test is acquired, the acquired data is stored as the first buffer data in a corresponding first buffer address until the signal end point of the reaction cup under test is detected; wherein, one trigger change of the optocoupler signal corresponds to one reaction cup number; Among the multiple first cache addresses that store the collected data, the first cache address with the median address number is read, and the read collected data is used as the target collected data. The target collected data is used to indicate the true parameters of the reagent in the test reaction cup. The test reaction vessel is also provided with a second buffer address, and the method further includes: Read the second cache data stored at the second cache address; wherein, the second cache data is used to determine whether to collect data from the reaction vessel to be tested, including the number of the reaction vessel to be collected, the unit collection count and the actual collection count of the reaction vessel to be tested, the unit collection count is used to indicate the number of times data collection needs to be performed on the reaction vessel to be tested, the actual collection count is used to indicate the number of times data collection is actually performed on the reaction vessel to be tested, and the initial value of the actual collection count is 0; If the second cached data indicates that data is collected from the test reaction vessel, then the step of collecting data from each test reaction vessel and storing the collected data as first cache data in a corresponding first cache address is executed. After obtaining the midpoint result of the test reaction vessel, the actual number of collections is updated. The test reaction vessel is also provided with a third cache address, which is used to store the target acquisition data. The method further includes: Read the third cache data stored under the third cache address; wherein, the third cache data includes the current number of collections of the reaction cup to be tested, and the current collection data is used to indicate the number of target collection data already stored in the third cache address; If the current number of collections equals the preset number of collections, then all target collection data under the third cache address will be uploaded.
2. The method according to claim 1, characterized in that, The step of reading the first cache address whose address sequence number is the median includes: The address where the first collected data that exceeds the preset data collection threshold is stored is used as the starting cache address, and the address where the last collected data that exceeds the preset data collection threshold is stored is used as the ending cache address. Read the first cache address whose address sequence number is the median between the starting cache address and the ending cache address.
3. The method according to claim 1, characterized in that, The data acquisition system also includes a sample loading device, which is used to determine whether the corresponding reaction cup needs to be acquired. The multiple reaction cups are sequentially numbered. The method further includes: When the optical coupler signal triggers a change, the reaction cup number corresponding to the sample dispensing device and the position of the reaction disk corresponding to the counting optical coupler device when the reaction cup corresponding to the sample dispensing device moves to the optical detection position are calculated.
4. The method according to claim 3, characterized in that, The method further includes: Each time the counting optocoupler is triggered, the current position of the reaction disk is used as the second buffer address and input to the address read port; If the cached result output by the address reading port is not 0, then the algorithm acquisition flag is output, the midpoint of the test reaction cup is calculated, the current reaction plate position is used as the second cache address, and data is rewritten in the second cache address, the data containing the updated actual acquisition count.
5. A data acquisition device, characterized in that, This system is applied to a data acquisition system, which includes a counting optical coupler, an optical detection device, a reaction disk, and multiple reaction cups placed on the reaction disk. The reaction disk rotates, causing the reaction cups to sequentially pass through the counting optical coupler and the optical detection device. During the rotation of the reaction disk, each time a reaction cup rotates to the counting optical coupler, an optical coupler signal is triggered. The counting optical coupler is used to detect the optical coupler signal. The reaction cup with a sample added at the sample application device is the test reaction cup. Data acquisition is required each time the test reaction cup rotates to the optical detection device. The optical detection device is used for data acquisition. The test reaction cup is configured with a first cache address set, which includes multiple consecutive first cache addresses. The device includes: The data caching module is used to, after detecting the signal start point of the reaction cup under test, acquire the collected data of each reaction cup under test and store the acquired data as the first cache data in a corresponding first cache address, until the signal end point of the reaction cup under test is detected; wherein, one trigger change of the optocoupler signal corresponds to one reaction cup number; The data acquisition module is used to read the first cache address with the median address number from multiple first cache addresses that store the acquired data, and use the read acquired data as the target acquired data. The target acquired data is used to indicate the true parameters of the reagent in the test reaction vessel. The reaction vessel to be tested is also provided with a second buffer address, and the data acquisition module is also used for: Read the second cache data stored at the second cache address; wherein, the second cache data is used to determine whether to collect data from the reaction vessel to be tested, including the number of the reaction vessel to be collected, the unit collection count and the actual collection count of the reaction vessel to be tested, the unit collection count is used to indicate the number of times data collection needs to be performed on the reaction vessel to be tested, the actual collection count is used to indicate the number of times data collection is actually performed on the reaction vessel to be tested, and the initial value of the actual collection count is 0; If the second cached data indicates that data is collected from the test reaction vessel, then the step of collecting data from each test reaction vessel and storing the collected data as first cache data in a corresponding first cache address is executed. After obtaining the midpoint result of the test reaction vessel, the actual number of collections is updated. The test reaction vessel is also provided with a third cache address, which is used to store the target acquisition data. The data acquisition module is also used for: Read the third cache data stored under the third cache address; wherein, the third cache data includes the current number of collections of the reaction cup to be tested, and the current collection data is used to indicate the number of target collection data already stored in the third cache address; If the current number of collections equals the preset number of collections, then all target collection data under the third cache address will be uploaded.
6. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it causes the processor to perform the steps of the method as described in any one of claims 1 to 4.
7. A data acquisition device, comprising a memory and a processor, characterized in that, The memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Dynamic optical signal processing method and device, equipment and storage medium
CN113899739A