CN116306712A - Data acquisition method, device, computer equipment and computer readable storage medium - Google Patents

Data acquisition method, device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN116306712A
CN116306712A CN202310196054.9A CN202310196054A CN116306712A CN 116306712 A CN116306712 A CN 116306712A CN 202310196054 A CN202310196054 A CN 202310196054A CN 116306712 A CN116306712 A CN 116306712A
Authority
CN
China
Prior art keywords
optocoupler
target data
acquired
identification information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310196054.9A
Other languages
Chinese (zh)
Inventor
田子良
陈明锋
冯鑫育
王兴红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Comen Medical Instruments Co Ltd
Original Assignee
Shenzhen Comen Medical Instruments Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Comen Medical Instruments Co Ltd filed Critical Shenzhen Comen Medical Instruments Co Ltd
Priority to CN202310196054.9A priority Critical patent/CN116306712A/en
Publication of CN116306712A publication Critical patent/CN116306712A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0008General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/08Design features of general application for actuating the drive
    • G06M1/10Design features of general application for actuating the drive by electric or magnetic means
    • G06M1/101Design features of general application for actuating the drive by electric or magnetic means by electro-optical means
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the invention discloses a data acquisition method, a device, computer equipment and a computer readable storage medium, which relate to the technical field of data processing, and the method comprises the steps that S1, position information and optocoupler identification information of an object to be acquired are acquired, and whether the position information is consistent with the optocoupler identification information or not is determined; s2, under the condition that the position information is consistent with the optocoupler identification information, determining the current position of the object to be acquired, acquiring first target data corresponding to the current position, and storing the first target data into a target data set; s3, determining whether the next position of the current position is a target position; and S4, under the condition that the position next to the current position is the target position, collecting first target data in the target data set to obtain second target data, and accurately detecting the number of objects to be acquired such as sample acquisition containers by comprehensively considering the position information and the optocoupler information, thereby improving the accuracy of detecting the sample acquisition containers.

Description

Data acquisition method, device, computer equipment and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data acquisition method, a data acquisition device, a computer device, and a computer readable storage medium.
Background
The accurate data acquisition is one of important links in the fields of computer data analysis, biochemistry and the like, and particularly in the field of biochemistry, the accurate data acquisition directly determines the success or failure of an experiment. Taking the biochemical field as an example, there are special sample collection containers such as reaction cups, etc., and if information identification of the sample collection container is wrong, the result of the experiment will still be directly affected.
The conventional information identification mode for the sample collection container is realized by adopting an optocoupler technology, so that the counting accuracy is low and the counting is easily interfered by external factors, thereby causing error statistics and missing statistics and greatly influencing the data collection of the sample collection container.
Disclosure of Invention
In view of the foregoing, it is an object of the present application to provide a data acquisition method, apparatus, computer device and computer readable storage medium, which can solve at least some of the above problems.
In a first aspect, an embodiment of the present application provides a data acquisition method, applied to a first device, where the method includes:
s1, acquiring position information and optocoupler identification information of an object to be acquired, and determining whether the position information is consistent with the optocoupler identification information;
s2, under the condition that the position information is consistent with the optocoupler identification information, determining the current position of the object to be acquired, acquiring first target data corresponding to the current position, and storing the first target data into a target data set;
s3, determining whether the next position of the current position is a target position;
and S4, under the condition that the position next to the current position is the target position, summarizing the first target data in the target data set to obtain second target data.
In one possible implementation manner, after the step of obtaining the position information and the optocoupler identification information of the object to be acquired and determining whether the position information is consistent with the optocoupler identification information, the method further includes, before the step of determining whether the next position of the current position is the target position:
and under the condition that the position information and the optocoupler identification information are inconsistent, setting the object to be acquired at an initial position, clearing all first target data in the target data set, and repeatedly executing S1 until the position information and the optocoupler identification information are consistent, determining the current position of the object to be acquired, and acquiring the first target data corresponding to the current position.
In a possible implementation manner, after the step of determining whether the next position of the current position is the target position, the method further includes:
setting the object to be acquired at the position next to the current position and updating the current position to the position next to the current position under the condition that the position next to the current position is not the target position;
and repeating S1 to S3 until the position next to the current position is the target position, and taking all the first target data as second target data.
In a possible implementation manner, the determining the current position of the object to be acquired includes:
and determining the current position of the object to be acquired according to at least one of the position information and the optocoupler identification information.
In a possible implementation manner, the first device is configured to be externally connected to a driver and a motion mechanism corresponding to the object to be collected, and before the step of obtaining the position information and the optocoupler identification information of the object to be collected, the method further includes:
under the condition of receiving a position control instruction, controlling the movement mechanism to work through the driver;
the obtaining the position information and the optocoupler identification information of the object to be acquired includes:
receiving the position information sent by the driver;
and receiving the optocoupler identification information sent by the movement mechanism.
In one possible implementation, the driver includes an encoder, the receiving the location information sent by the driver includes:
and receiving the position information sent by the encoder.
In a possible implementation manner, the first device is in communication connection with the driver, and in a case that the position information and the optocoupler identification information are inconsistent, the setting the object to be acquired at an initial position includes:
and under the condition that the position information is inconsistent with the optocoupler identification information and a position resetting instruction is received, setting the object to be acquired at the initial position through the driver.
In a second aspect, embodiments of the present application provide a data acquisition device, the device including:
the acquisition module is used for acquiring the position information and the optocoupler identification information of the object to be acquired and determining whether the position information is consistent with the optocoupler identification information or not;
the first determining module is used for determining the current position of the object to be acquired under the condition that the position information is consistent with the optocoupler identification information, acquiring first target data corresponding to the current position, and storing the first target data into a target data set;
a second determining module, configured to determine whether a next position of the current position is a target position;
and the third determining module is used for summarizing the first target data in the target data set to obtain second target data under the condition that the position next to the current position is the target position.
In a third aspect, an embodiment of the present application provides a computer device, where the computer device includes a memory and a processor, where the memory stores a computer program, and the computer program when executed by the processor implements the data collection method provided in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by one or more processors, implements the data collection method provided in the first aspect.
According to the data acquisition method, the position information and the optocoupler identification information of the object to be acquired are acquired, the position information and the optocoupler identification information are further analyzed, under the condition that the position information is consistent with the optocoupler identification information, the current position of the object to be acquired is determined, first target data corresponding to the current position are acquired, the first target data are stored in a target data set, whether the next position of the current position is the target position is finally determined, and under the condition that the next position of the current position is the target position, the first target data in the target data set are summarized to obtain second target data.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being understood that the drawings in the following description are only some embodiments of the present invention and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a method flowchart of a data acquisition method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a data acquisition device provided in the present application;
fig. 3 is a schematic functional block diagram of a data acquisition device provided in the present application;
fig. 4 is an internal structure diagram of a computer device according to an embodiment of the present application.
Icon:
the device comprises a data acquisition device 200, a motor 210, a reaction disc 220, a shaft 230, a code disc 240, a counting optocoupler 250, a motor 210, a counting optocoupler 250 and a control module 260;
the data acquisition device 300, the first determining module 320, the second determining module 330 and the third determining module 340.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The various embodiments of the present application summarize again, the expression "or" at least one of a or/and B "includes any or all combinations of the words listed simultaneously. For example, the expression "a or B" or "at least one of a or/and B" may include a, may include B or may include both a and B.
In the description of the present application, it should be noted that, if the terms "upper," "lower," "inner," "outer," and the like indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, or the azimuth or the positional relationship in which the inventive product is conventionally put in use, it is merely for convenience of describing the present application and simplifying the description, and it is not indicated or implied that the apparatus or element referred to must have a specific azimuth, be configured and operated in a specific azimuth, and thus should not be construed as limiting the present application.
Furthermore, the terms "first," "second," and the like, if any, are used merely for distinguishing between descriptions and not for indicating or implying a relative importance.
It should be noted that, without conflict, features in embodiments of the present application may be combined with each other.
Referring to fig. 1, fig. 1 is a flowchart of a data acquisition method according to an embodiment of the present application, and each step of the method will be described in detail below.
S1, acquiring position information and optocoupler identification information of an object to be acquired, and determining whether the position information is consistent with the optocoupler identification information.
In this embodiment, the position information and the optocoupler identification information of the object to be acquired may be acquired through a first device, which may be a lower computer, and belongs to a computer that may directly control a sub-device and acquire a status of the sub-device, where the sub-device may be a data acquisition device corresponding to the data acquisition method of this embodiment.
Specifically, the object to be collected may be a container, such as a reaction cup, and for convenience of understanding, the object to be collected in this embodiment and the embodiments described below may be regarded as a reaction cup, the position information may be a position of the reaction cup on the data collecting device corresponding to the position of the reaction cup obtained in the embodiments described below, and the optocoupler identification information is an electrical signal obtained in the optocoupler identification technology. According to the position information and the optocoupler identification information, the position of an object to be acquired such as a reaction cup can be directly or indirectly obtained, whether the position of the object to be acquired such as the reaction cup is accurate or not can be judged by comparing the position information and the optocoupler identification information, the situation of missing acquisition and wrong acquisition is avoided, and the accuracy of data acquisition of the object to be acquired such as the reaction cup can be improved.
In some embodiments, the position information and the optocoupler identification information of the object to be collected may be collected in advance and stored in the memory, and the first device may directly read the position information and the optocoupler identification information in the memory to further determine the accuracy of the position of the object to be collected, such as the reaction cup.
In some embodiments, the memory read by the first device may be provided in the data acquisition device in the embodiments described below.
In some embodiments, the memory read by the first device may be a memory device externally connected to the data acquisition device in the following embodiments, so as to facilitate replacement of memories with parameters of different types, sizes, and the like.
In some embodiments, the memory read by the first device may be disposed in the first device, and the first device may establish communication with the data acquisition device mentioned in the foregoing embodiment or a storage device connected to the data acquisition device to acquire the position information and the optocoupler identification information of the object to be acquired, and may perform analysis after the data is acquired by the memory disposed in the first device, so as to avoid a situation that communication interruption occurs when the first device acquires data with an external device such as the data acquisition device mentioned in the foregoing embodiment or the storage device connected to the data acquisition device mentioned in the foregoing embodiment.
In some embodiments, if the position information and the optocoupler identification information of the object to be acquired are stored in the memory provided in the data acquisition device mentioned in the above embodiments, or in the case of being stored in the storage device externally connected to the data acquisition device mentioned in the above embodiments, when the first device and the data acquisition device or the storage device externally connected to the data acquisition device have communication interruption, and when the communication is to be recovered, the data acquisition device or the memory externally connected to the data acquisition device can transmit the transmission data corresponding to the position where the communication interruption occurs, so as to avoid the situation of data retransmission or missing transmission.
S2, under the condition that the position information is consistent with the optocoupler identification information, determining the current position of the object to be acquired, acquiring first target data corresponding to the current position, and storing the first target data into a target data set.
In this embodiment, the position information and the optical coupler identification information are consistent and may indicate that the position of the object to be collected, such as a reaction cup, is accurate, the first device may determine the current position of the object to be collected, such as the reaction cup, according to the position information and the optical coupler identification information, and collect sample information of the object to be collected, such as the reaction cup, in the current position through the data collecting device in the embodiment described below, so as to obtain first target data, where the first device may send a data collecting instruction to the data collecting device to instruct the data collecting device to collect data, and the first device may store the obtained first target data in the target data set.
In one possible implementation manner, after the step of obtaining the position information and the optocoupler identification information of the object to be acquired and determining whether the position information is consistent with the optocoupler identification information, the method further includes, before the step of determining whether the next position of the current position is the target position:
and under the condition that the position information and the optocoupler identification information are inconsistent, setting the object to be acquired at an initial position, clearing all first target data in the target data set, and repeatedly executing S1 until the position information and the optocoupler identification information are consistent, determining the current position of the object to be acquired, and acquiring the first target data corresponding to the current position.
In this embodiment, if the first device detects that the position information and the optocoupler identification information are inconsistent, the first device may generate a control instruction, and instruct the data acquisition device to set the object to be acquired, such as the reaction cup, at the initial position through the control instruction, clear all the first target data in the target data set in the above embodiment, and then repeatedly execute S1, so as to avoid the situation of erroneous acquisition such as repeated data acquisition.
In one possible implementation manner, the first device is configured to connect to a driving device and a motion mechanism corresponding to an object to be collected, and before the step of obtaining the position information and the optocoupler identification information of the object to be collected, the method further includes:
under the condition of receiving the position control instruction, controlling the movement mechanism to work through a driver;
acquiring position information and optocoupler identification information of an object to be acquired, including:
receiving the position information sent by the driver;
and receiving the optocoupler identification information sent by the movement mechanism.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a data acquisition device provided in the present application, where a motion mechanism includes a motor 210, a reaction disc 220, a shaft 230, a code disc 240 and a counting optocoupler 250, the motor 210 and the counting optocoupler 250 are respectively electrically connected to a control module 260, a driver may be disposed in the motor, not shown in the drawing, and the driver is electrically connected to the motor 210, where the control module 260 may be understood as a lower computer in the above embodiment. Specifically, the position control instruction may be used to instruct the driver to drive the motor to work, where the motor 210 is in transmission connection with the code wheel 240, the motor 210 works, the code wheel 240 rotates along with the rotation of the motor 210, the reaction disk 220 also rotates along with the code wheel 240 after the code wheel 240 rotates, the reaction disk 220 is loaded with an object to be collected such as a reaction cup, and the counting optocoupler 250 can generate optocoupler identification information after the code wheel 240 rotates. The first device may obtain position information from the drive and the first device may obtain optocoupler identification information from the moving structure.
Optionally, the driver includes an encoder, receiving the position information sent by the driver, including:
and receiving the position information sent by the encoder.
In this embodiment, the encoder stores rotation information, where the rotation information is used to indicate the number of cup bits that the motor needs to rotate, and the position information sent by the encoder can be understood as the current number of rotations of the motor corresponds to the rotation position information of the reaction disc 220.
In some embodiments, the rotation information may be stored in the encoder, and the rotation information may also be issued to the encoder by the lower computer, so that the rotation information may be modified by the lower computer to meet the actual rotation requirement.
S3, determining whether the next position of the current position is the target position.
In this embodiment, the target position information may be understood as the position of the reaction cup corresponding to the reaction disk 220, and for example, if there are 10 loading slots of the reaction cup corresponding to the reaction disk 220, that is, it may be understood that the reaction disk 220 may load 10 reaction cups at a time, and if the target position is 10, the reaction disk 220 starts to rotate from the initial position to the position corresponding to the 10 th reaction cup.
And S4, under the condition that the position next to the current position is the target position, summarizing the first target data in the target data set to obtain second target data.
In this embodiment, if the first device detects that the next position of the current position is the target position, it indicates that the position identification of the reaction cup corresponding to the reaction disc 220 is completed, where data acquisition is performed on the load in the reaction cup at the corresponding position during each rotation of the reaction disc 220 to obtain a plurality of first target data, and after the corresponding verification of the reaction cup position is completed, all the first target data obtained by acquisition are the second target data finally obtained in this embodiment.
According to the data acquisition method, the position information and the optocoupler identification information of the object to be acquired are acquired, the position information and the optocoupler information are further analyzed, the current position of the object to be acquired is determined under the condition that the position information and the optocoupler identification information are consistent, first target data corresponding to the current position are acquired, the first target data are stored in a target data set, whether the next position of the current position is the target position is finally determined, the first target data in the target data set are summarized under the condition that the next position of the current position is the target position, second target data are obtained, the number of the object to be acquired such as a sample acquisition container can be accurately checked by comprehensively considering the position information and the optocoupler information, and the accuracy of detection of the sample acquisition container is improved.
In one possible embodiment, after the step of determining whether the next position to the current position is the target position, the method further comprises:
setting the object to be acquired at the next position of the current position and updating the current position to the next position of the current position under the condition that the next position of the current position is not the target position;
and repeatedly executing S1 to S3 until the position next to the current position is the target position, and taking all the first target data as second target data.
Specifically, if the first device monitors that the next position of the current position is not the target position, which indicates that the detection of the reaction cup on the reaction disc 220 has not been completed yet, the current position may be added with 1 until the next position of the current position is detected as the target position, that is, in this embodiment, the processes from S1 to S3 are repeatedly executed, and the corresponding position identification process is completed.
Optionally, determining the current position of the object to be acquired includes:
and determining the current position of the object to be acquired according to at least one of the position information and the optocoupler identification information.
In this embodiment, the position information sent by the encoder and the optocoupler identification information identified by the counting optocoupler 250 can both determine the position of the object to be collected, such as the reaction cup, and comparing the position information with the optocoupler identification information can avoid whether the position of the reaction cup has error conditions such as position identification error, missing statistics, and the like, can ensure the accuracy of data collection, and avoid irreversible influence of error collected data on experiments.
In one possible implementation manner, the first device is in communication connection with the driver, and sets the object to be acquired at an initial position in the case that the position information and the optocoupler identification information are inconsistent, including:
and under the condition that the position information is inconsistent with the optocoupler identification information and a position resetting instruction is received, setting the object to be acquired at an initial position through a driver.
In the embodiment, during the process of position identification or data acquisition of the objects in the reaction cup, the position reset instruction issued by the lower computer can be used for re-acquisition at any time, so that the influence of the invalid acquisition process on experimental results is avoided.
In summary, according to the data acquisition method provided by the application, the position information and the optocoupler identification information of the object to be acquired are acquired, the position information and the optocoupler information are further analyzed, under the condition that the position information and the optocoupler identification information are consistent, the current position of the object to be acquired is determined, first target data corresponding to the current position are acquired, the first target data are stored in a target data set, whether the next position of the current position is the target position is finally determined, under the condition that the next position of the current position is the target position, the first target data in the target data set are summarized, second target data are obtained, the number of the object to be acquired such as a sample acquisition container can be accurately checked by comprehensively considering the position information and the optocoupler information, and the accuracy of detecting the sample acquisition container is improved.
Corresponding to the above method embodiment, the present application further provides a data acquisition device 300, please refer to fig. 3, fig. 3 is a data acquisition device provided in the embodiment of the present application, where the data acquisition device 300 in the present application may be the data acquisition device 200 in the above embodiment, and the device includes:
an acquisition module 310, configured to acquire position information and optocoupler identification information of an object to be acquired, and determine whether the position information is consistent with the optocoupler identification information;
the first determining module 320 is configured to determine a current position of an object to be collected, collect first target data corresponding to the current position, and store the first target data in a target data set, where the position information is consistent with the optocoupler identification information;
a second determining module 330, configured to determine whether a next position of the current position is a target position;
and a third determining module 340, configured to aggregate the first target data in the target data set to obtain the second target data when the position next to the current position is the target position.
According to the data acquisition device, the acquisition module is used for acquiring the position information and the optocoupler identification information of the object to be acquired, further analyzing the position information and the optocoupler identification information, determining the current position of the object to be acquired through the first determination module under the condition that the position information is consistent with the optocoupler identification information, acquiring first target data corresponding to the current position, storing the first target data into the target data set, determining whether the next position of the current position is the target position through the second determination module, determining whether the next position of the current position is the target position through the third determination module, and summarizing the first target data in the target data set under the condition that the next position of the current position is the target position to obtain second target data, accurately checking the number of the object to be acquired such as a sample acquisition container through comprehensively considering the position information and the optocoupler identification information, and improving the accuracy of detection of the sample acquisition container.
The application further provides a computer device, please refer to fig. 4, and fig. 4 is an internal structure diagram of the computer device provided in the embodiment of the application. The computer device includes a processor, a memory, and a network interface coupled by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program, where the computer program when executed by the processor may cause the processor to implement the data collection method applied to the computer device in the above embodiment. The internal memory may also store a computer program which, when executed by the processor, causes the processor to perform the data acquisition method. Those skilled in the art will appreciate that the structures shown in FIG. 4 are block diagrams only and do not constitute a limitation of the computer device on which the present aspects apply, and that a particular computer device may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
The embodiment of the application also discloses a computer readable storage medium, and the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the data acquisition method as in the embodiment of the method is realized.
According to the data acquisition method, the device, the computer equipment and the computer readable storage medium, the position information and the optical coupler identification information of the object to be acquired are acquired, the position information and the optical coupler information are further analyzed, under the condition that the position information is consistent with the optical coupler identification information, the current position of the object to be acquired is determined, first target data corresponding to the current position are acquired, the first target data are stored in the target data set, finally whether the next position of the current position is the target position is determined, under the condition that the next position of the current position is the target position, the first target data in the target data set are summarized, the second target data are obtained, the number of the object to be acquired such as a sample acquisition container can be accurately checked through comprehensively considering the position information and the optical coupler information, and the accuracy of detecting the sample acquisition container is improved.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.

Claims (10)

1. A data acquisition method, applied to a first device, the method comprising:
s1, acquiring position information and optocoupler identification information of an object to be acquired, and determining whether the position information is consistent with the optocoupler identification information;
s2, under the condition that the position information is consistent with the optocoupler identification information, determining the current position of the object to be acquired, acquiring first target data corresponding to the current position, and storing the first target data into a target data set;
s3, determining whether the next position of the current position is a target position;
and S4, under the condition that the position next to the current position is the target position, summarizing the first target data in the target data set to obtain second target data.
2. The data acquisition method according to claim 1, wherein after the step of acquiring the position information and the optocoupler identification information of the object to be acquired and determining whether the position information is identical to the optocoupler identification information, the method further includes, before the step of determining whether the next position to the current position is the target position:
and under the condition that the position information and the optocoupler identification information are inconsistent, setting the object to be acquired at an initial position, clearing all first target data in the target data set, and repeatedly executing S1 until the position information and the optocoupler identification information are consistent, determining the current position of the object to be acquired, and acquiring the first target data corresponding to the current position.
3. The data acquisition method according to claim 1 or 2, wherein after the step of determining whether the next position to the current position is a target position, the method further comprises:
setting the object to be acquired at the position next to the current position and updating the current position to the position next to the current position under the condition that the position next to the current position is not the target position;
and repeating S1 to S3 until the position next to the current position is the target position, and taking all the first target data as second target data.
4. The data acquisition method of claim 1, wherein the determining the current location of the object to be acquired comprises:
and determining the current position of the object to be acquired according to at least one of the position information and the optocoupler identification information.
5. The method for collecting data according to claim 2, wherein the first device is configured to be externally connected to a driver and a movement mechanism corresponding to the object to be collected, respectively, and before the step of obtaining the position information and the optocoupler identification information of the object to be collected, the method further comprises:
under the condition of receiving a position control instruction, controlling the movement mechanism to work through the driver;
the obtaining the position information and the optocoupler identification information of the object to be acquired includes:
receiving the position information sent by the driver;
and receiving the optocoupler identification information sent by the movement mechanism.
6. The data acquisition method of claim 5 wherein the drive includes an encoder, and the receiving the position information sent by the drive includes:
and receiving the position information sent by the encoder.
7. The data acquisition method according to claim 5, wherein the first device is communicatively connected to the driver, and the setting the object to be acquired in an initial position in the case where the position information and the optocoupler identification information are inconsistent includes:
and under the condition that the position information is inconsistent with the optocoupler identification information and a position resetting instruction is received, setting the object to be acquired at the initial position through the driver.
8. A data acquisition device, the device comprising:
the acquisition module is used for acquiring the position information and the optocoupler identification information of the object to be acquired and determining whether the position information is consistent with the optocoupler identification information or not;
the first determining module is used for determining the current position of the object to be acquired under the condition that the position information is consistent with the optocoupler identification information, acquiring first target data corresponding to the current position, and storing the first target data into a target data set;
a second determining module, configured to determine whether a next position of the current position is a target position;
and the third determining module is used for summarizing the first target data in the target data set to obtain second target data under the condition that the position next to the current position is the target position.
9. A computer device, characterized in that it comprises a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, implements the data acquisition method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by one or more processors, implements the data acquisition method of any one of claims 1-7.
CN202310196054.9A 2023-02-24 2023-02-24 Data acquisition method, device, computer equipment and computer readable storage medium Pending CN116306712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310196054.9A CN116306712A (en) 2023-02-24 2023-02-24 Data acquisition method, device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310196054.9A CN116306712A (en) 2023-02-24 2023-02-24 Data acquisition method, device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116306712A true CN116306712A (en) 2023-06-23

Family

ID=86800763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310196054.9A Pending CN116306712A (en) 2023-02-24 2023-02-24 Data acquisition method, device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116306712A (en)

Similar Documents

Publication Publication Date Title
US10409587B2 (en) Method for programming vehicle electronic control modules
CN106886494B (en) Automatic interface testing method and system
US10363638B2 (en) Method for controlling a screwing process
EP3968030A1 (en) Method and apparatus for automatic engagement with analyzer, computer device and storage medium
CN113157524B (en) Big data based exception problem solving method, system, equipment and storage medium
CN108227674A (en) For the method and system of diagnosis or the configuration of vehicle
CN116306712A (en) Data acquisition method, device, computer equipment and computer readable storage medium
CN113225232B (en) Hardware testing method and device, computer equipment and storage medium
CN105786680B (en) Memory pre-analysis methods and its system after Kernel Panic
CN114564002B (en) Method and device for quickly diagnosing lost packet and computer equipment
CN111428708A (en) License plate checking method and device, computer equipment and storage medium
CN100388220C (en) Method and device for monitoring an electronic circuit
US20220050121A1 (en) System and method for device specific quality control
US11080161B2 (en) Control device, and processing method in event of failure in control device
CN116610551A (en) Code coverage rate calculation method, device, equipment and medium
CN113483799A (en) Magnetic encoder detection method, magnetic encoder detection device, computer equipment and storage medium
CN110309057B (en) Automatic script-based flow project testing method and related equipment
CN112596961A (en) Automatic testing method and system for satellite-borne computer
CN110506298B (en) Control device and operating method for the same
CN112306038A (en) Detection method, detection device and diagnosis equipment
CN111722997A (en) Abnormality detection method for automated testing and computer-readable storage medium
CN111157750B (en) Automatic sample injection control method and related device
CN116913364B (en) Flash memory read interference test method and system, electronic equipment and storage medium
CN111367816B (en) Mobile test method and device, computer equipment and storage medium
CN114756012B (en) Control system configuration information verification method and control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination