CN111445989B - Simulation learning method of refiner-analyzer simulator - Google Patents

Simulation learning method of refiner-analyzer simulator Download PDF

Info

Publication number
CN111445989B
CN111445989B CN202010224024.0A CN202010224024A CN111445989B CN 111445989 B CN111445989 B CN 111445989B CN 202010224024 A CN202010224024 A CN 202010224024A CN 111445989 B CN111445989 B CN 111445989B
Authority
CN
China
Prior art keywords
analyzer
simulator
refiner
upper computer
data
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.)
Active
Application number
CN202010224024.0A
Other languages
Chinese (zh)
Other versions
CN111445989A (en
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.)
Zhuhai Gaoruite Medical Technology Co ltd
Original Assignee
Zhuhai Gaoruite Medical Technology 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 Zhuhai Gaoruite Medical Technology Co ltd filed Critical Zhuhai Gaoruite Medical Technology Co ltd
Priority to CN202010224024.0A priority Critical patent/CN111445989B/en
Publication of CN111445989A publication Critical patent/CN111445989A/en
Application granted granted Critical
Publication of CN111445989B publication Critical patent/CN111445989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/40ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the management of medical equipment or devices, e.g. scheduling maintenance or upgrades
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/50ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for simulation or modelling of medical disorders
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/70ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for mining of medical data, e.g. analysing previous cases of other patients

Abstract

The invention discloses a simulation learning method of a refiner-analyzer simulator, which comprises a microprocessor, a memory, a first communication port and a second communication port which are arranged on an integrated circuit board in a chassis, wherein the first communication port is connected with an upper computer; and connecting the first communication port with the upper computer, starting the upper computer and the refiner-analyzer simulator, and responding and feeding back data to an instruction sent by the upper computer by taking the communication log in the memory as a data source until the end, and returning to a standby state.

Description

Simulation learning method of refiner-analyzer simulator
Technical Field
The invention relates to the technical field of medical equipment, in particular to a simulation learning method of a refiner-plasma analyzer simulator.
Background
In the male reproduction special department of diagnosis and treatment institutions such as hospitals or physical examination centers, the biochemical index test of seminal plasma is a basic test means, and a full-automatic seminal plasma biochemical analyzer is the main equipment for executing the test. The device is similar to the fully automatic biochemical analyzer widely used at present, and the main difference is that the sample types are different. The full-automatic seminal plasma biochemical analyzer is combined with a special reagent to detect biochemical indexes of a seminal plasma sample.
The full-automatic refined pulp biochemical analyzer generally consists of an analyzer main machine (lower computer) and an upper computer. The upper computer is provided with operation software of the analyzer, and provides functions of a human-computer interface, data processing, report output and the like, and the analyzer host (lower computer) completes sample test work such as sample dispensing, reagent dispensing, reaction monitoring and the like. The upper computer is connected with the lower computer through a communication port. The upper computer instruction is sent to the lower computer through the communication port, and the lower computer sends the contents such as instrument state, measurement data and the like to the upper computer through the communication port.
In general, in the process of developing and debugging the operation software of an upper computer, when a link of interaction with a lower computer is involved, the upper computer must be connected with a real analyzer. Also, during operations such as operation software training and demonstration, some functions that interact with the lower computer also need to be connected to the real analyzer. Thus, when the real analyzer is inconvenient to connect, the debugging or demonstration of the whole functions of the upper computer software is inconvenient.
To solve the above problems, simulation machines are used by most developers. The simulation machine is a computer device provided with software for simulating the real analyzer, and the device is connected with the upper computer through a communication port instead of the real analyzer, receives an instruction of the upper computer and feeds back data to the upper computer. For the upper computer, the simulator is not different from the real analyzer.
However, in the above prior art, the following drawbacks mainly exist: in order to fully simulate a real instrument, the existing simulator needs to consider various possible instruction sequences, so that the workload of codes is very large. The simulation machine is designed for improving the development efficiency of the upper computer software, and if the simulation machine needs a great deal of work, the simulation machine is contrary to the original purpose; the existing simulator depends on the simulated analyzer, if the program of the analyzer is changed, the code of the simulator needs to be changed, and the workload is repeated; the existing simulator is basically fixed for data returned by a simulated instrument, and even if the data is changed, the data is in a preset mode, so that the simulator cannot completely simulate the real situation for debugging an upper computer program.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention aims to provide a simulation learning method of a refiner-analyzer simulator, which is updated at any time by arranging a simulator capable of automatically learning, so that the reality and effectiveness of the simulation function of the simulator are ensured.
In order to achieve the above purpose, the technical scheme of the invention is as follows:
a simulation learning method of a refiner-analyzer simulator comprises a microprocessor, a memory, a first communication port and a second communication port which are arranged on an integrated circuit board in a case, wherein when the refiner-analyzer simulator learns: connecting the first communication port with an upper computer, connecting the second communication port with an analyzer, starting the upper computer, a refiner pulp analyzer simulator and the analyzer after connection is completed, operating the analyzer to traverse all instructions, and recording communication data between the upper computer and the analyzer into a memory of the refiner pulp analyzer simulator in a communication log mode; when the refiner pulp analyzer simulator simulates: and connecting the first communication port with the upper computer, starting the upper computer and the refiner-analyzer simulator, and responding and feeding back data to an instruction sent by the upper computer by taking the communication log in the memory as a data source until the end, and returning to a standby state.
Further, each record in the communication log includes a transmission direction of the information, transmission content and a time stamp.
Further, after the refiner's analyzer simulator receives the instruction sent by the software of the upper computer from the first port: inquiring and positioning the record position of the same instruction in the data source, judging the sending direction of the record, determining the sending direction to be towards the upper computer, reading a time stamp (T1) in the record, then reading the next record from the current position of the data source, repeating the judging, reading the time stamp (T2) in the next record, and reserving the data stream in the record as data to be sent.
Further, when the refiner feeding back data to the upper computer, the refiner simulator: and after the data to be sent are reserved, starting a system to delay, wherein the time interval is T2-T1, and the delay is finished, and the refiner analyzer simulator sends the data to be sent to the software of the upper computer.
Further, the refiner analyzer simulator repeatedly judges, continues to read the record in the data source until the sending direction in the record is not sent towards the upper computer, and ends the feedback data and returns to the standby state.
Further, a mode switch key is arranged on the refiner plasma analyzer simulator and used for switching between learning modes and simulating modes.
According to the simulation learning method of the refiner-analyzer simulator, all instructions of the upper computer are traversed, communication data between the upper computer and the analyzer are recorded in a memory of the refiner-analyzer simulator in a communication log mode, so that the refiner-analyzer simulator completely simulates a real analyzer, when the refiner-analyzer simulator simulates the analyzer to be connected with the upper computer, real data obtained in the learning process are used as data sources, real feedback can be obtained when software debugging and software function demonstration are carried out on the upper computer, and real feedback can be obtained when a program of the upper computer is debugged. Meanwhile, the simulator has a learning function, can update, and can store the data of the actual operation of the analyzer and the upper computer in the memory again according to the mode after updating and changing the program of the analyzer, so that the simulator simulates the actual analyzer.
Drawings
FIG. 1 is a schematic diagram of a refiner-analyzer simulator of the present invention;
FIG. 2 is a schematic diagram of a connection of learning modes of the refiner according to the present invention;
FIG. 3 is a schematic diagram of the connection of the simulation modes of the refiner according to the present invention;
FIG. 4 is a simulation flow chart of the refiner.
Detailed Description
In order that those skilled in the art will better understand the solution of the present invention, the following description of the technical solution in the embodiment of the present invention will be clearly and completely described with reference to the accompanying drawings in which it is apparent that the described examples are only a part of examples, not all examples of the present invention. All other embodiments obtained by those skilled in the art based on the examples herein without making any inventive effort shall fall within the scope of the present invention.
In the description of the present embodiment, the terms "inner", "outer", "front", "rear", "left", "right", etc. indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, and are merely for convenience of description and simplification of description, and do not indicate or imply 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 invention. Furthermore, the terms "first," "second," and the like, are used merely to distinguish between similar objects and should not be construed as a particular order or sequence, it being understood that such uses may be interchanged where appropriate.
In order to clearly illustrate the design concept of the present invention, the present invention will be described with reference to examples.
Examples
A simulation learning method of a refiner-analyzer simulator comprises a microprocessor 4, a memory 5, a first communication port 6 and a second communication port 7 which are arranged on an integrated circuit board in a chassis, wherein when the refiner-analyzer simulator learns: connecting the first communication port 6 with an upper computer, connecting the second communication port 7 with an analyzer, starting the upper computer, a refiner pulp analyzer simulator and the analyzer after connection is completed, operating the analyzer to traverse all instructions, and recording communication data between the upper computer and the analyzer into a memory of the refiner pulp analyzer simulator in a communication log mode; when the refiner pulp analyzer simulator simulates: and connecting the first communication port with the upper computer, starting the upper computer and the refiner-analyzer simulator, and responding and feeding back data to an instruction sent by the upper computer by taking the communication log in the memory as a data source until the end, and returning to a standby state.
As shown in fig. 1, the internal structure of the refiner-analyzer simulator of the invention comprises a case 1, a power supply 2 and a control board 3, wherein the power supply 2 and the control board 3 are arranged in the case 1, the control board 3 is an integrated circuit board, a microprocessor 4, a memory 5, a first communication port 6 and a second communication port 7 are arranged on the control board 3, a mode switch 8 is also arranged on a side panel of the case 1, and the mode switch 8 is connected with the control board 3 and is responsible for switching a learning mode and a simulation mode of the refiner-analyzer simulator.
The upper computer A is a PC, a communication port for connecting with the refiner pulp analyzer simulator B is arranged on the upper computer, and a communication port for connecting with the refiner pulp analyzer simulator is also arranged on the refiner pulp biochemical analyzer C, as shown in figure 2. Fig. 2 is a schematic diagram of connection of the refiner-analyzer simulator in the learning mode, in which the upper computer, the refiner-analyzer simulator and the analyzer are connected as shown in fig. 3, the mode switch 8 of the refiner-analyzer simulator is switched to the learning mode, the refiner-analyzer simulator is powered on and started, the analyzer and the upper computer are started according to the normal operation flow, the analyzer is operated normally, and all instructions are traversed, at this time, all communication data between the upper computer and the analyzer are recorded in the memory 5 by the refiner-analyzer simulator in a mode of communication log files. In the communication log file, each record contains time, transmission direction and specific data stream information.
After the learning process of the seminal plasma analyzer simulator is finished, when the software debugging and the function demonstration are carried out on the analyzer by utilizing the seminal plasma analyzer simulator, the seminal plasma analyzer simulator enters a simulation mode, and in the simulation process: the method comprises the steps of connecting a seminal plasma analyzer simulator with an upper computer according to the diagram 3, switching a mode switch 8 to a simulation mode, starting the seminal plasma analyzer simulator and the upper computer, taking a communication log file obtained by the seminal plasma analyzer simulator in a learning mode as a data source, after receiving an instruction of a program of the upper computer from a communication port, inquiring and positioning a recording position of the same instruction in the data source by a microprocessor 4, judging the transmitting direction of the record, determining the transmitting direction of the record to be towards the upper computer, reading a time stamp (T1) in the record, then reading the next record from the current position of the data source by the microprocessor 4, repeatedly judging, reading the time stamp (T2) in the next record, and reserving the data stream in the record as data to be transmitted. And after the data to be transmitted is reserved, starting a system to delay, wherein the time interval is T2-T1, the delay is ended, the refiner analyzer simulator transmits the data to be transmitted to the software of the upper computer, the refiner analyzer simulator repeatedly judges, continues to read the record in the data source until the transmitting direction in the record is not transmitted towards the upper computer, and ends the feedback data and returns to the standby state.
When the lower computer software, the upper computer software or the communication protocol and the like are changed or a new working condition needs to be simulated, only the learning mode needs to be switched again, the communication log file is built, and the program of the refiner-analyzer simulator does not need to be modified.
In the above example, by traversing all instructions of the upper computer, communication data between the upper computer and the analyzer is recorded in a memory of the refiner-plasma analyzer simulator in a communication log manner, so that the refiner-plasma analyzer simulator completely simulates a real analyzer, when the refiner-plasma analyzer simulator simulates the analyzer to be connected with the upper computer, real data obtained in a learning process is used as a data source, and real feedback can be obtained when the upper computer performs software debugging and software function demonstration, and real feedback can be obtained when an upper computer program is debugged. Meanwhile, the simulator has a learning function, can update, and can store the data of the actual operation of the analyzer and the upper computer in the memory again according to the mode after updating and changing the program of the analyzer, so that the simulator simulates the actual analyzer.
Compared with the existing virtual machine, the refiner pulp analyzer simulator adopting the learning simulation method has a smaller code quantity and a shorter development period, and even if the simulated analyzer software is changed, the codes of the refiner pulp analyzer simulator are not required to be changed, so that the refiner pulp analyzer simulator can simulate the real data of a real analyzer, has no fixed mode, and can comprehensively reflect the real situation in an upper computer program.
It should be noted that some of the structures may be selected differently than the specific examples given above. These are all made by those skilled in the art based on their basic skills on the understanding of the idea of the invention and are not exemplified here.
Finally, it is to be understood that the above embodiments are merely exemplary embodiments employed for the purpose of illustrating the principles of the present invention, however, the present invention is not limited thereto. Various modifications and improvements may be made by those skilled in the art without departing from the principles and spirit of the invention, and such modifications and improvements are also considered within the scope of the invention.

Claims (6)

1. The simulation learning method of the refiner-analyzer simulator is characterized in that the refiner-analyzer simulator comprises a microprocessor, a memory, a first communication port and a second communication port which are arranged on an integrated circuit board in a chassis, and when the refiner-analyzer simulator learns: connecting the first communication port with an upper computer, connecting the second communication port with an analyzer, starting the upper computer, a refiner pulp analyzer simulator and the analyzer after connection is completed, operating the analyzer to traverse all instructions, and recording communication data between the upper computer and the analyzer into a memory of the refiner pulp analyzer simulator in a communication log mode; when the refiner pulp analyzer simulator simulates: and connecting the first communication port with the upper computer, starting the upper computer and the refiner-analyzer simulator, and responding and feeding back data to an instruction sent by the upper computer by taking the communication log in the memory as a data source until the end, and returning to a standby state.
2. The method of claim 1, wherein each record in the communication log includes a direction of transmission of information, a content of transmission, and a time stamp.
3. The method for learning a refiner-analyzer simulator of claim 1, wherein after the refiner-analyzer simulator receives the instruction sent by the software of the host computer from the first communication port: inquiring and positioning the record position of the same instruction in the data source, judging the sending direction of the record, determining the sending direction to be towards the upper computer, reading the time stamp T1 in the record, then reading the next record from the current position of the data source, repeating the judging, reading the time stamp T2 in the next record, and reserving the data stream in the record as data to be sent.
4. The method for learning a refiner-analyzer simulator of claim 1, wherein the refiner-analyzer simulator feeds back data to the host computer: and after the data to be transmitted is reserved, starting a system to delay, wherein the time interval is T2-T1, and the delay is finished, and the refiner analyzer simulator transmits the data to be transmitted to the software of the upper computer.
5. The method according to claim 1, wherein the refiner analyzer simulator repeatedly determines, continues to read the record in the data source until the transmission direction in the record is not toward the host computer, and ends the feedback data, and returns to the standby state.
6. The simulation learning method of the refiner-plasma analyzer simulator of claim 1, wherein a mode switch key is arranged on the refiner-plasma analyzer simulator for switching between learning and simulation modes.
CN202010224024.0A 2020-03-26 2020-03-26 Simulation learning method of refiner-analyzer simulator Active CN111445989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010224024.0A CN111445989B (en) 2020-03-26 2020-03-26 Simulation learning method of refiner-analyzer simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010224024.0A CN111445989B (en) 2020-03-26 2020-03-26 Simulation learning method of refiner-analyzer simulator

Publications (2)

Publication Number Publication Date
CN111445989A CN111445989A (en) 2020-07-24
CN111445989B true CN111445989B (en) 2023-06-13

Family

ID=71655689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010224024.0A Active CN111445989B (en) 2020-03-26 2020-03-26 Simulation learning method of refiner-analyzer simulator

Country Status (1)

Country Link
CN (1) CN111445989B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2301766Y (en) * 1997-08-05 1998-12-23 卢贵东 Computer simulator for palpation and auscultation of heart and lung
CN103312554B (en) * 2012-03-16 2017-03-01 阿里巴巴集团控股有限公司 A kind of method of testing of multiserver interactive service and system
CN104007661B (en) * 2014-04-29 2016-12-07 中国人民解放军空军航空大学军事仿真技术研究所 A kind of separate unit simulator realizes the emulation mode of multiple aircraft formation
CN106066827A (en) * 2016-05-30 2016-11-02 中车株洲电力机车研究所有限公司 A kind of software test scenario building method, data relay device and system
CN108170889A (en) * 2017-11-28 2018-06-15 北京天地玛珂电液控制系统有限公司 A kind of emulation test method and system of hydraulic bracket controller software
US11062804B2 (en) * 2018-02-16 2021-07-13 Vital Connect, Inc. Synthetic simulation system for testing of physiological monitoring devices
CN109712701A (en) * 2018-12-10 2019-05-03 上海联影医疗科技有限公司 Slave computer simulator and master system test method
CN110768863B (en) * 2019-10-10 2023-04-28 南京创维信息技术研究院有限公司 Scheme for simulating and testing AIOT equipment

Also Published As

Publication number Publication date
CN111445989A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
US4454577A (en) Linked data systems
KR870008250A (en) Automatic test system
JPH05216712A (en) Computer system, method for performing inner-viewing task on computer system and i/o processor assembly
US6279123B1 (en) System for viewing and monitoring embedded processor operation
EP1118939A2 (en) Software debugger user interface
CN114328223A (en) Information testing method, device, equipment and storage medium
CN111212103A (en) SCA software radio station interface simulation system and method
CN116681013B (en) Simulation verification method, platform, device, equipment and medium of network chip
CN111445989B (en) Simulation learning method of refiner-analyzer simulator
CN100416512C (en) Embedded apparatus debugging method and debugging tool therefor
CN113157508A (en) Test method, system, device, equipment and storage medium of embedded system
JP2008135008A (en) Program module verification method
JPH11194960A (en) Software testing device
CN109783417B (en) Serial port communication device and method
US20030225566A1 (en) JTAG server
CN1312587C (en) An embedded real time operating system fault analysis positioning system and method
CN117370093B (en) Chip debugging method, device, equipment and storage medium
JPS63193236A (en) Method and apparatus for testing computer and/or software
US20070198816A1 (en) Emulation system for a single-chip multiple-microcontroller and emulation method thereof
JP2004021751A (en) Debug system, debug program, and debug program storage medium
KR101401296B1 (en) Testing system and method based on message logging
JP2007164348A (en) Emulator
Li et al. Research of “Stub” remote debugging technique
CN116028364A (en) BMC remote debugging method, device and equipment
CN115793582A (en) Industrial control algorithm debugging method, system and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant