CN104881356B - The method for detecting abnormality and ventilator of ventilator - Google Patents
The method for detecting abnormality and ventilator of ventilator Download PDFInfo
- Publication number
- CN104881356B CN104881356B CN201410073811.4A CN201410073811A CN104881356B CN 104881356 B CN104881356 B CN 104881356B CN 201410073811 A CN201410073811 A CN 201410073811A CN 104881356 B CN104881356 B CN 104881356B
- Authority
- CN
- China
- Prior art keywords
- user interface
- program
- ventilator
- running state
- file
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention proposes a kind of method for detecting abnormality of ventilator, ventilator executes the user interface UI program for having ventilator, this method comprises: creation monitoring running state file, running state information of the monitoring running state file for the user interface UI program operation process of recording respiration machine;When the user interface UI program of ventilator runs to preset operating state point, user interface UI running state of programs information is written into monitoring running state file;When needing to carry out abnormality detection the ventilator, monitoring running state file is analyzed to judge user interface UI program with the presence or absence of abnormal according to user interface UI running state of programs information.The method of the embodiment of the present invention can effectively detect whether the user interface program of ventilator is abnormal and occurs position, to bring convenience for abnormality processing, save anomaly detection time.The invention also provides a kind of ventilators.
Description
Technical field
The present invention relates to the field of medical instrument technology, in particular to the method for detecting abnormality and ventilator of a kind of ventilator.
Background technique
UI (user interface) program of ventilator is once delivered for use, and the operating status of program would become hard to track.For going out
Existing some unusual conditions, it is also difficult to find reason.This is a very severe problem, once the interface UI delivered goes out status
Condition, case study and positioning are by the highly difficult of change.And the existing processing to ventilator UI interface problem, usually by exploitation
Personnel are by checking that relevant code goes to solve, and this method is time-consuming, and arduously, and effect is undesirable, sporadic for those,
The problem of needing specified conditions just to occur, this method, which can hardly effectively check problem, to be come, and ventilator is made to there is peace
Full hidden danger.
Summary of the invention
The purpose of the present invention aims to solve at least one of described technological deficiency.
For this purpose, an object of the present invention is to provide a kind of method for detecting abnormality of ventilator.This method can be examined effectively
Whether the user interface program for measuring ventilator is abnormal and occurs position, to bring convenience for abnormality processing, saves
Anomaly detection time.
Another object of the present invention is to propose a kind of ventilator.
To reach the purpose, the embodiment of first aspect present invention provides a kind of method for detecting abnormality of ventilator,
The ventilator executes the user interface UI program for having ventilator, the described method comprises the following steps: creation monitoring running state
File, the monitoring running state file are used to record the operating status of the user interface UI program operation process of the ventilator
Information;When the user interface UI program of the ventilator runs to preset operating state point, Xiang Suoshu monitoring running state text
The user interface UI running state of programs information is written in part;When needing to carry out abnormality detection the ventilator, to institute
Monitoring running state file is stated to be analyzed to judge user circle according to the user interface UI running state of programs information
Face UI program is with the presence or absence of abnormal.
The method for detecting abnormality of ventilator according to an embodiment of the present invention, (i.e. by the monitoring running state file of creation
File existing for whole process) recording respiration machine user interface UI program operating status, in this way, work as ventilator user interface UI
When run-time error or exception occur for program, such as: for being difficult to the problem of debugging and tracking, by monitoring running state file
In record relevant information, thus, can be analyzed according to the record of monitoring running state file, simply and easily find user
Where the run-time error of interface UI program, brought convenience for subsequent abnormality processing and program debugging.This method has to breathing
The simple and effective advantage of the abnormality detection of machine.
In addition, the method for detecting abnormality of ventilator according to the above embodiment of the present invention can also have following additional skill
Art feature:
It is in some instances, described when the user interface UI program of the ventilator runs to preset operating state point,
It is written into the monitoring running state file after the user interface UI running state of programs information, further includes: if sentenced
The user interface UI program of breaking is not over operation, then when the user interface UI program of the ventilator run to it is next pre-
If when operating status point, being updated to the monitoring running state file.
In some instances, judging the user interface UI program, there are after exception, further includes: according to the user
Interface UI running state of programs information judges position of the exception in the program code of the user interface UI program.
In some instances, further includes: according to position of the exception in the program code of the user interface UI program
It sets, said program code is debugged.
In some instances, the user interface UI running state of programs information includes: the user interface UI program
Operation data and operating status point.
The embodiment of second aspect of the present invention provides a kind of ventilator, and the ventilator execution has user interface UI journey
Sequence, the ventilator include: creation module, and for creating monitoring running state file, the monitoring running state file is used for
Record the running state information of the user interface UI program operation process of the ventilator;Writing module, in the breathing
When the user interface UI program of machine runs to preset operating state point, the user is written in Xiang Suoshu monitoring running state file
Interface UI running state of programs information;Monitoring modular, for being analyzed according to the monitoring running state file
User interface UI running state of programs information judges the user interface UI program with the presence or absence of abnormal.
Ventilator according to an embodiment of the present invention passes through the monitoring running state file (i.e. file existing for whole process) of creation
The operating status of the user interface UI program of recording respiration machine, in this way, when operation mistake occurs for the user interface UI program of ventilator
When accidentally or abnormal, such as: for being difficult to the problem of debugging and tracking, by recording relevant letter in monitoring running state file
Breath, thus, it can be analyzed according to the record of monitoring running state file, simply and easily find the fortune of user interface UI program
Where row mistake, brought convenience for subsequent abnormality processing and program debugging.
In addition, ventilator according to the above embodiment of the present invention can also have the following additional technical features:
In some instances, the write module is also used to: when the user interface UI program of the ventilator is run to down
When one preset operating state point, the monitoring running state file is updated.
In some instances, the monitoring modular be also used to judge the user interface UI program there are after exception,
Judge the exception in the program code of the user interface UI program according to the user interface UI running state of programs information
In position.
In some instances, further includes: debugging module, for according to the exception the user interface UI program journey
Position in sequence code, debugs said program code.
In some instances, the user interface UI running state of programs information includes: the user interface UI program
Operation data and operating status point.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Of the present invention and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart of the method for detecting abnormality of ventilator according to an embodiment of the invention;
Fig. 2 is the flow chart of the method for detecting abnormality of ventilator in accordance with another embodiment of the present invention;And
Fig. 3 is the structural block diagram of ventilator according to an embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
In the description of the present invention, it is to be understood that, term " longitudinal direction ", " transverse direction ", "upper", "lower", "front", "rear",
The orientation or positional relationship of the instructions such as "left", "right", "vertical", "horizontal", "top", "bottom" "inner", "outside" is based on attached drawing institute
The orientation or positional relationship shown, is merely for convenience of description of the present invention and simplification of the description, rather than the dress of indication or suggestion meaning
It sets or element must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as to limit of the invention
System.
In the description of the present invention, it should be noted that unless otherwise specified and limited, term " installation ", " connected ",
" connection " shall be understood in a broad sense, for example, it may be mechanical connection or electrical connection, the connection being also possible to inside two elements can
, can also indirectly connected through an intermediary, for the ordinary skill in the art to be to be connected directly, it can basis
Concrete condition understands the concrete meaning of the term.
The method for detecting abnormality and ventilator of ventilator according to an embodiment of the present invention are described below in conjunction with attached drawing.
Fig. 1 is the flow chart of the method for detecting abnormality of ventilator according to an embodiment of the invention.As shown in Figure 1, root
According to the method for detecting abnormality of the ventilator of one embodiment of the invention, wherein ventilator executes the user interface UI for having ventilator
Program, the method for detecting abnormality include the following steps:
Step S101: creation monitoring running state file is (whole i.e. in the user interface UI program operation process of ventilator
Existing file), operating status of the monitoring running state file for the user interface UI program operation process of recording respiration machine
Information.Wherein, user interface UI running state of programs information includes: the operation data and operating status of user interface UI program
Point.
Step S102: it when the user interface UI program of ventilator runs to preset operating state point, is supervised to operating status
It surveys and user interface UI running state of programs information is written in file.That is, when the user interface of user and ventilator carries out
When interaction, user interface UI program is correspondingly run, and monitoring running state file can record user interface UI program and run
The data information of journey.It, can be by related in monitoring running state file record such as being difficult to the problem of debugging and tracking
Information.
Wherein, preset operating state point is, for example, the place for needing logging program operating status.
Step S103: when needing to carry out abnormality detection the ventilator, monitoring running state file is analyzed
To judge user interface UI program with the presence or absence of abnormal according to user interface UI running state of programs information.
Further, judging user interface UI program, there are after exception, further includes: is transported according to user interface UI program
Row status information judges position of the exception in the program code of user interface UI program.Such as above-mentioned is difficult to adjust
The problem of examination and tracking, the record of corresponding relevant information is carried out, in monitoring running state file so as to basis
These relevant informations are found where problem.
Further, program code can be carried out according to position of the exception in the program code of user interface UI program
Debugging.It, can be with a definite target in view to the program generation that problem occurs on the basis of to the reason of being quickly found program exception
Code is debugged.
In specific example of the invention, multiple preset operating state points can be set, such as in user interface UI program
When operation, it is easy to appear the corresponding place setting preset operating state point in place of problem, in this way, if it is determined that user interface UI
Program is not over operation, then when the user interface UI program of ventilator runs to next preset operating state point, to fortune
Row status monitoring file is updated.Record to guarantee monitoring running state file is more complete.
As shown in connection with fig. 2, as a specific example, this method comprises:
Step S201: startup program, i.e. starting user interface UI program.
Step S202: judging that file whether there is, that is, judges whether there is monitoring running state file, save if it does not exist
The file (i.e. monitoring running state file) of operating status then creates the file for saving operating status;This file if it exists, then not
It re-creates, directly existing file is operated.That is, if so, then follow the steps S204, it is no to then follow the steps
S203。
Step S203: creation file, i.e. creation monitoring running state file.And execute step S204.
Step S204: write operation is carried out to file.I.e. in the place for needing logging program operating status, written document behaviour is carried out
Make;It is needing to record the related data for the problem of debugging, the place of state, is carrying out operating writing-file.Repeat the step
Until meeting the condition of step S205.
Step S205: program exits.
The method for detecting abnormality of ventilator according to an embodiment of the present invention, (i.e. by the monitoring running state file of creation
File existing for whole process) recording respiration machine user interface UI program operating status, in this way, work as ventilator user interface UI
When run-time error or exception occur for program, such as: for being difficult to the problem of debugging and tracking, by monitoring running state file
In record relevant information, thus, can be analyzed according to the record of monitoring running state file, simply and easily find user
Where the run-time error of interface UI program, brought convenience for subsequent abnormality processing and program debugging.This method has to breathing
The simple and effective advantage of the abnormality detection of machine.
Fig. 3 is the schematic diagram of ventilator according to an embodiment of the invention.Wherein, ventilator execution has user interface UI
Program, as shown in figure 3, ventilator according to an embodiment of the invention 300, comprising: creation module 310,320 and of writing module
Monitoring modular 330.
Wherein, for creation module 310 for creating monitoring running state file, monitoring running state file is described for recording
The running state information of the user interface UI program operation process of ventilator, wherein user interface UI running state of programs information
It include: the operation data and operating status point of the user interface UI program.Writing module 320 is used for user circle in ventilator
When face UI program runs to preset operating state point, user interface UI running state of programs is written into monitoring running state file
Information.Monitoring modular 330 is used to analyze monitoring running state file to be believed according to user interface UI running state of programs
Breath judges user interface UI program with the presence or absence of abnormal.
Further, writing module 320 is also used to: when the user interface UI program of ventilator runs to next default fortune
When row state point, monitoring running state file is updated.
In one embodiment of the invention, monitoring modular 330 is also used to judging that it is abnormal that user interface UI program exists
Later, according to the abnormal position in the program code of user interface UI program of user interface UI running state of programs information judgement
It sets.
Further, ventilator 300, further includes: debugging module (not shown), debugging module are used for according to exception
Position in the program code of user interface UI program, debugs program code.
It should be noted that the specific implementation procedure of the ventilator of the embodiment of the present invention refers to the upper of the embodiment of the present invention
The description to method stated does not repeat them here to reduce redundancy.
Ventilator according to an embodiment of the present invention passes through the monitoring running state file (i.e. file existing for whole process) of creation
The operating status of the user interface UI program of recording respiration machine, in this way, when operation mistake occurs for the user interface UI program of ventilator
When accidentally or abnormal, such as: for being difficult to the problem of debugging and tracking, by recording relevant letter in monitoring running state file
Breath, thus, it can be analyzed according to the record of monitoring running state file, simply and easily find the fortune of user interface UI program
Where row mistake, brought convenience for subsequent abnormality processing and program debugging.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, not to the schematic representation of the term
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with
A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding
And modification, the scope of the present invention is by appended claims and its equivalent limits.
Claims (4)
1. a kind of method for detecting abnormality of ventilator, which is characterized in that the ventilator executes the user interface UI for having ventilator
Program the described method comprises the following steps:
Monitoring running state file is created, the monitoring running state file is used to record the user interface UI journey of the ventilator
The running state information of sort run process;
When the user interface UI program of the ventilator runs to preset operating state point, Xiang Suoshu monitoring running state file
The middle write-in user interface UI running state of programs information;If it is determined that the user interface UI program is not over operation,
Then when the user interface UI program of the ventilator runs to next preset operating state point, to the monitoring running state
File is updated;
When needing to carry out abnormality detection the ventilator, the monitoring running state file is analyzed according to
User interface UI running state of programs information judges the user interface UI program with the presence or absence of abnormal, wherein if the user
There is exception in interface UI program, then judge the exception in the user according to the user interface UI running state of programs information
Position in the program code of interface UI program, further according to the position in the program code of the user interface UI program, to institute
Program code is stated to be debugged.
2. the method for detecting abnormality of ventilator according to claim 1, which is characterized in that the user interface UI program fortune
Row status information includes: the operation data and operating status point of the user interface UI program.
3. a kind of ventilator, which is characterized in that the ventilator execution has user interface UI program, and the ventilator includes:
Creation module, for creating monitoring running state file, the monitoring running state file is for recording the ventilator
User interface UI program operation process running state information;
Writing module, for when the user interface UI program of the ventilator runs to preset operating state point, to the fortune
The user interface UI running state of programs information is written in row status monitoring file;When the user interface UI journey of the ventilator
When sort run is to next preset operating state point, the monitoring running state file is updated;
Monitoring modular, for being analyzed the monitoring running state file to run shape according to the user interface UI program
State information judges the user interface UI program with the presence or absence of abnormal, wherein if there is exception in the user interface UI program,
Judge the exception in the program code of the user interface UI program according to the user interface UI running state of programs information
In position, further according to position of the exception in the program code of the user interface UI program, to said program code
It is debugged.
4. ventilator according to claim 3, which is characterized in that the user interface UI running state of programs packet
It includes: the operation data and operating status point of the user interface UI program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410073811.4A CN104881356B (en) | 2014-02-28 | 2014-02-28 | The method for detecting abnormality and ventilator of ventilator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410073811.4A CN104881356B (en) | 2014-02-28 | 2014-02-28 | The method for detecting abnormality and ventilator of ventilator |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104881356A CN104881356A (en) | 2015-09-02 |
CN104881356B true CN104881356B (en) | 2019-06-04 |
Family
ID=53948859
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410073811.4A Active CN104881356B (en) | 2014-02-28 | 2014-02-28 | The method for detecting abnormality and ventilator of ventilator |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104881356B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103182118A (en) * | 2011-12-30 | 2013-07-03 | 北京谊安医疗***股份有限公司 | Oxygen flow quantity monitoring method and equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5490036B2 (en) * | 2011-02-14 | 2014-05-14 | 株式会社Nttドコモ | Test equipment |
CN102541740B (en) * | 2012-01-04 | 2016-03-30 | 广东欧珀移动通信有限公司 | A kind of mobile phone notes automated testing method based on Android |
-
2014
- 2014-02-28 CN CN201410073811.4A patent/CN104881356B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103182118A (en) * | 2011-12-30 | 2013-07-03 | 北京谊安医疗***股份有限公司 | Oxygen flow quantity monitoring method and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104881356A (en) | 2015-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20110314450A1 (en) | Analyzing computer code development actions and process | |
US9946634B2 (en) | System and method for determining test coverage | |
US10761963B2 (en) | Object monitoring in code debugging | |
US8752019B2 (en) | Version control for medical anesthesia devices | |
Grunske et al. | Experience with fault injection experiments for FMEA | |
CN106662869B (en) | System and method for advanced process control | |
CN103399815A (en) | Automated testing method and automated testing device | |
KR20120068529A (en) | Error examination method and apparatus | |
CN103198016A (en) | Software error positioning method based on joint dependent probability modeling | |
KR101467243B1 (en) | Built in test system of flight control system and method thereof | |
US10558513B2 (en) | System management apparatus and system management method | |
EP3667448A1 (en) | Detection apparatus, detection method, detection program and recording medium that records detection program | |
JP5230587B2 (en) | Ladder program program test apparatus, ladder program test method, and ladder program test program | |
CN104881356B (en) | The method for detecting abnormality and ventilator of ventilator | |
JP2014021577A (en) | Apparatus, system, method, and program for failure prediction | |
JP2021177402A (en) | Information processor, information processing method, and computer program | |
JP2016164727A (en) | Test case selection device | |
US9165007B2 (en) | Log message optimization to ignore or identify redundant log messages | |
Fort et al. | Fault tolerant design of a field data modular readout architecture for railway applications | |
JP5404666B2 (en) | User interface design device | |
US8645815B2 (en) | GUI evaluation system, GUI evaluation method, and GUI evaluation program | |
US11181896B2 (en) | Diagnosing apparatus, diagnosing method, and computer readable medium storing diagnosing program | |
US10565078B2 (en) | Detecting and reporting unintended state changes | |
WO2016103229A1 (en) | A method for verifying a safety logic in an industrial process | |
Höfig et al. | MetaFMEA-A framework for reusable FMEAs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |