CN112764728A - Automatic programming method and system suitable for embedded software of breathing machine - Google Patents

Automatic programming method and system suitable for embedded software of breathing machine Download PDF

Info

Publication number
CN112764728A
CN112764728A CN202011633345.2A CN202011633345A CN112764728A CN 112764728 A CN112764728 A CN 112764728A CN 202011633345 A CN202011633345 A CN 202011633345A CN 112764728 A CN112764728 A CN 112764728A
Authority
CN
China
Prior art keywords
ventilation mode
ventilation
source code
control
control source
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
CN202011633345.2A
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.)
Beijing Aeonmed Co Ltd
Original Assignee
Beijing Aeonmed 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 Beijing Aeonmed Co Ltd filed Critical Beijing Aeonmed Co Ltd
Priority to CN202011633345.2A priority Critical patent/CN112764728A/en
Publication of CN112764728A publication Critical patent/CN112764728A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the field of breathing machines, in particular to an automatic programming method and system suitable for embedded software of a breathing machine, wherein the method comprises the following steps: establishing a ventilation mode database, wherein the database is used for storing relevant information of a plurality of ventilation modes; reading ventilation mode information of a ventilation mode database by using a circulation statement, and outputting each ventilation mode to a control source code by using a writing file statement; compiling and testing the generated control source code, and adjusting an output format; the specific portion of the control source code for each ventilation mode is adjusted and the automatically generated control source code is compiled and tested. The method of the invention can reduce the programming workload of the embedded software, reduce the error rate of manual coding and improve the working efficiency and the software development quality.

Description

Automatic programming method and system suitable for embedded software of breathing machine
Technical Field
The invention relates to the field of breathing machines, in particular to an automatic programming method and system suitable for embedded software of a breathing machine.
Background
At present, with the wide application of the breathing machine, the development and upgrading speed of the breathing machine is fast. The development of embedded software in the breathing machine plays a great part in the development task of the breathing machine. At present, an automatic programming method applied to embedded software of a breathing machine is urgently needed, the programming workload of the embedded software can be reduced, the manual coding error rate is reduced, and the working efficiency and the software development quality are improved.
Disclosure of Invention
The invention aims to solve the technical problems and provides an automatic programming method of embedded software in a breathing machine, which structures monitoring parameters, control processes, control time sequences, display parameters, mode specific attributes and the like of various ventilation modes of the breathing machine into fields capable of being stored in a database, reads data in the database through software and directly generates the embedded software, so that the design is coding, and the software programming work is simple; therefore, the quality of software coding is improved, the labor intensity is reduced, and the working efficiency is improved.
To achieve the above object, embodiment 1 of the present invention proposes an automatic programming method suitable for embedded software of a ventilator, the method including:
establishing a ventilation mode database, wherein the database is used for storing relevant information of a plurality of ventilation modes;
reading ventilation mode information of a ventilation mode database by using a circulation statement, and outputting each ventilation mode to a control source code by using a writing file statement;
compiling and testing the generated control source code, and adjusting an output format;
the specific portion of the control source code for each ventilation mode is adjusted and the automatically generated control source code is compiled and tested.
As an improvement of the above method, the ventilation pattern database comprises:
and (3) ventilation mode: ventilation mode number and name;
ventilation mode and control sequence stage relation table: time sequence stage number, conversion condition, post stage number, ventilation mode number and process number;
control timing phase table: a time sequence stage number and a time sequence stage name;
a control process table: a process number and a process name;
ventilation mode versus monitoring parameters table: a ventilation mode number and a monitoring parameter number;
a monitoring parameter table: monitoring parameter number, monitoring parameter name, data type, display name, display unit, effective value range, upper limit alarm limit and lower limit alarm limit;
an alarm information table: the alarm information number, the alarm information name and the monitoring parameter number;
ventilation mode and setting parameter relation table: a ventilation mode number and a setting parameter number;
setting a parameter table: setting parameter numbers, setting parameter names, data types, value ranges, adjusting step length display names and display units.
As an improvement of the above method, the software development tool comprises: VC + +, VS and Python.
As an improvement of the above method, reading the ventilation pattern information of the ventilation pattern database by using a loop statement specifically includes:
ergodic control process table
Traversal ventilation pattern table
Ergodic control time sequence stage table
Traversal control sequence stage end
Traversing setting parameter table or monitoring parameter table
Output time sequence control, monitoring control and alarm control source code
Traversing set-up parameter table or monitor parameter table end
Traversal of ventilation pattern table end
And ending the traversal control process table.
As an improvement of the above method, the adjusting the output format includes: line feed and indentation.
As an improvement of the above method, the method further comprises: and optimizing the automatically generated control source code.
Embodiment 2 of the present invention proposes an automatic programming system suitable for embedded software of a ventilator, the system comprising: a ventilation pattern database, an automatic programming module and a compiling and testing module;
the ventilation mode database is used for storing relevant information of a plurality of ventilation modes;
the automatic programming module is used for reading ventilation mode information of the ventilation mode database by using a circulation statement and outputting each ventilation mode to the control source code by using a write file statement;
the compiling and testing module is used for compiling and testing the generated control source code and adjusting the output format; the specific portion of the control source code for each ventilation mode is adjusted and the automatically generated control source code is compiled and tested.
The invention has the advantages that:
the method and the system can reduce the programming workload of the embedded software, reduce the error rate of manual coding and improve the working efficiency and the software development quality.
Drawings
FIG. 1 is a flow chart of an automated programming method for ventilator embedded software, in accordance with an embodiment of the present invention;
fig. 2 is a schematic diagram of the ventilation pattern database of the present invention.
Detailed Description
The technical solution of the present invention will be described in detail below with reference to the accompanying drawings.
The embodiment 1 of the invention provides an automatic programming method suitable for embedded software of a breathing machine, and the method has two feasible preconditions that: (1) most control processes, control time sequences, control parameters, monitoring parameters and alarm information of all ventilation modes in the respirator are common, codes of a special part only occupy a small proportion, and the code part of the special part can set control conditions to select and output codes; (2) files can be created and read and written through software programming.
As shown in fig. 1, the method includes:
step 1) establishing a ventilation mode database;
designing a ventilation mode, a control time sequence, a control parameter, a monitoring parameter, alarm information and a relationship among the ventilation mode, the control time sequence, the control parameter, the monitoring parameter, the alarm information and the relationship among the ventilation mode, the monitoring parameter, the alarm information and the relationship among;
step 2) reading ventilation mode information of a ventilation mode database, and outputting a control source code of each mode by using a loop statement;
selecting a common programming tool: VC + +, VS, Python, etc., write a loop statement that reads the ventilation pattern information of the ventilation pattern database:
the C + + example statement is as follows:
Figure BDA0002877543710000031
traversing the control process table, outputting functions (methods), e.g. "void VG70:: VentControl ()".
Traversal pattern table
Traversal timing phase table
End of traversal sequence stage
Traversing setting parameter table or monitoring parameter table
Output time sequence control, monitoring control and alarm control source code
Finishing traversing set parameter table or monitoring parameter table
Traversal pattern table end
Traversal control process table end
Step 3) compiling and testing the automatically generated source code, and adjusting the output format (line feed and indentation);
step 4) adjusting the special part source code output programming of each ventilation mode, and compiling and testing the automatically generated source codes;
and 5) manually optimizing software (reusable and normalized sorting).
Embodiment 2 of the present invention proposes an automatic programming system suitable for embedded software of a ventilator, the system comprising: a ventilation pattern database, an automatic programming module and a compiling and testing module;
the ventilation mode database is used for storing relevant information of a plurality of ventilation modes;
the automatic programming module is used for reading ventilation mode information of the ventilation mode database by using a circulation statement and outputting each ventilation mode to the control source code by using a write file statement;
the compiling and testing module is used for compiling and testing the generated control source code and adjusting the output format; the specific portion of the control source code for each ventilation mode is adjusted and the automatically generated control source code is compiled and tested.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and are not limited. Although the present invention has been described in detail with reference to the embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A method for automated programming of ventilator embedded software, the method comprising:
establishing a ventilation mode database, wherein the database is used for storing relevant information of a plurality of ventilation modes;
reading ventilation mode information of a ventilation mode database by using a circulation statement, and outputting each ventilation mode to a control source code by using a writing file statement;
compiling and testing the generated control source code, and adjusting an output format;
the specific portion of the control source code for each ventilation mode is adjusted and the automatically generated control source code is compiled and tested.
2. The automated programming method for ventilator embedded software according to claim 1, wherein the ventilation pattern database comprises:
and (3) ventilation mode: ventilation mode number and name;
ventilation mode and control sequence stage relation table: time sequence stage number, conversion condition, post stage number, ventilation mode number and process number;
control timing phase table: a time sequence stage number and a time sequence stage name;
a control process table: a process number and a process name;
ventilation mode versus monitoring parameters table: a ventilation mode number and a monitoring parameter number;
a monitoring parameter table: monitoring parameter number, monitoring parameter name, data type, display name, display unit, effective value range, upper limit alarm limit and lower limit alarm limit;
an alarm information table: the alarm information number, the alarm information name and the monitoring parameter number;
ventilation mode and setting parameter relation table: a ventilation mode number and a setting parameter number;
setting a parameter table: setting parameter numbers, setting parameter names, data types, value ranges, adjusting step length display names and display units.
3. The automated programming method for ventilator embedded software according to claim 1, wherein the software development tool comprises: VC + +, VS and Python.
4. The automatic programming method suitable for the embedded software of the ventilator according to claim 2, wherein the reading of the ventilation pattern information of the ventilation pattern database by the loop statement specifically comprises:
ergodic control process table
Traversal ventilation pattern table
Ergodic control time sequence stage table
Traversal control sequence stage end
Traversing setting parameter table or monitoring parameter table
Output time sequence control, monitoring control and alarm control source code
Traversing set-up parameter table or monitor parameter table end
Traversal of ventilation pattern table end
And ending the traversal control process table.
5. The automated programming method for ventilator embedded software according to claim 4, wherein the adjusting the output format comprises: line feed and indentation.
6. The automated programming method for ventilator embedded software according to claim 4, further comprising: and optimizing the automatically generated control source code.
7. An automated programming system adapted for use with ventilator embedded software, the system comprising: a ventilation pattern database, an automatic programming module and a compiling and testing module;
the ventilation mode database is used for storing relevant information of a plurality of ventilation modes;
the automatic programming module is used for reading ventilation mode information of the ventilation mode database by using a circulation statement and outputting each ventilation mode to the control source code by using a write file statement;
the compiling and testing module is used for compiling and testing the generated control source code and adjusting the output format; the specific portion of the control source code for each ventilation mode is adjusted and the automatically generated control source code is compiled and tested.
CN202011633345.2A 2020-12-31 2020-12-31 Automatic programming method and system suitable for embedded software of breathing machine Pending CN112764728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011633345.2A CN112764728A (en) 2020-12-31 2020-12-31 Automatic programming method and system suitable for embedded software of breathing machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011633345.2A CN112764728A (en) 2020-12-31 2020-12-31 Automatic programming method and system suitable for embedded software of breathing machine

Publications (1)

Publication Number Publication Date
CN112764728A true CN112764728A (en) 2021-05-07

Family

ID=75699638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011633345.2A Pending CN112764728A (en) 2020-12-31 2020-12-31 Automatic programming method and system suitable for embedded software of breathing machine

Country Status (1)

Country Link
CN (1) CN112764728A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020059259A1 (en) * 1999-07-29 2002-05-16 Curt Lee Cotner Using database management system's infrastructure to invoke a stored procedure for creating and preparing a database application
CN104199675A (en) * 2014-09-26 2014-12-10 佛山市恒南微科技有限公司 System capable of quick system development based on database parameter utilization
CN104463411A (en) * 2014-10-30 2015-03-25 洪范宗 Operating state monitoring device and method for respirators
CN206950432U (en) * 2017-01-23 2018-02-02 哈尔滨医科大学 A kind of noninvasive double level respirator remote signal regulator control systems
CN108052549A (en) * 2017-11-27 2018-05-18 中山路得斯空调有限公司 A kind of method that source data is automatically converted to entity category code
CN109933601A (en) * 2019-01-24 2019-06-25 深圳壹账通智能科技有限公司 Data base management method, system, computer installation and readable storage medium storing program for executing
CN110134381A (en) * 2019-04-02 2019-08-16 珠海安居宝电子科技有限公司 A kind of system and method intelligently generating source code configuration for alarm host machine

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020059259A1 (en) * 1999-07-29 2002-05-16 Curt Lee Cotner Using database management system's infrastructure to invoke a stored procedure for creating and preparing a database application
CN104199675A (en) * 2014-09-26 2014-12-10 佛山市恒南微科技有限公司 System capable of quick system development based on database parameter utilization
CN104463411A (en) * 2014-10-30 2015-03-25 洪范宗 Operating state monitoring device and method for respirators
CN206950432U (en) * 2017-01-23 2018-02-02 哈尔滨医科大学 A kind of noninvasive double level respirator remote signal regulator control systems
CN108052549A (en) * 2017-11-27 2018-05-18 中山路得斯空调有限公司 A kind of method that source data is automatically converted to entity category code
CN109933601A (en) * 2019-01-24 2019-06-25 深圳壹账通智能科技有限公司 Data base management method, system, computer installation and readable storage medium storing program for executing
CN110134381A (en) * 2019-04-02 2019-08-16 珠海安居宝电子科技有限公司 A kind of system and method intelligently generating source code configuration for alarm host machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周海珊: "基于嵌入式Linux的呼吸机软件设计和实现", 《万方学位论文》, pages 1 - 65 *

Similar Documents

Publication Publication Date Title
US5375239A (en) Use of build status indicators in connection with building of complex computer programs from source code parts
CN109254907B (en) Java-based interface test report generation method and system
CN104407973A (en) Automatic unit test realizing method and device
CN109918081B (en) Compiling method and compiler
JP4877068B2 (en) Software development support program, software development support method
CN109934507A (en) A kind of method and device of operation flow scheduling
CN110928760B (en) Unit test method and device in embedded system
CN111723009A (en) Framework system of python automated testing series products
CN112764728A (en) Automatic programming method and system suitable for embedded software of breathing machine
CN116150099A (en) Method for automatically generating ktr file based on keyle
CN111966523B (en) Method, system, equipment and medium for managing electric appliance parameters
CN112148588B (en) Automatic analysis method and test tool for object resources of automatic test
JPH03223901A (en) Semiconductor manufacturing equipment
CN100367233C (en) Program execution control mode
CN111931017A (en) Intelligent configuration method and system suitable for coal preparation plant
CN113190514B (en) Method for inputting data into electronic document according to priority order
CN112711406A (en) LabVIEW-based test flow editing and analyzing and thread interaction method
CN111966304B (en) EGD mode-based data reading method
JPH02220145A (en) Program tracing system
JPH08137521A (en) Program management method
JPS6310239A (en) Patch production system for high-level language
CN113867714A (en) Automatic code generation method adaptive to multiple languages
CN114327413A (en) Method for implementing data processing engine for programmable controller
CN117667725A (en) Database script generation method, device and equipment and readable storage medium
CN117632102A (en) Method and system for generating module interface file based on excel

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