CN106776321A - A kind of winged guard system software emulation contrast conversion method based on dynamic link library - Google Patents

A kind of winged guard system software emulation contrast conversion method based on dynamic link library Download PDF

Info

Publication number
CN106776321A
CN106776321A CN201611169183.5A CN201611169183A CN106776321A CN 106776321 A CN106776321 A CN 106776321A CN 201611169183 A CN201611169183 A CN 201611169183A CN 106776321 A CN106776321 A CN 106776321A
Authority
CN
China
Prior art keywords
guard system
interface
winged
information
dynamic link
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
CN201611169183.5A
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.)
Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC
Original Assignee
Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC
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 Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC filed Critical Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC
Publication of CN106776321A publication Critical patent/CN106776321A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Conversion method is contrasted the present invention relates to a kind of winged guard system software emulation based on dynamic link library, initialization interface, task scheduling interface and the input/output interface for flying pipe software are stated first in dynamic link library engineering, the threaded file for being formed will be compiled afterwards to import in matlab, line interface of going forward side by side is associated, and software test is realized finally by input, output, real-time task interface is called in real-time task.The present invention merely add the code that external interface is called, and guard system software source code is flown without change;By means of Matlab softwares, all output variables can be shown, be stored etc. with operation, it is convenient directly perceived;The need for can be according to software test, only dynamic link library call parameters need to be changed, it is possible to carry out software unit testing, software configuration item test;Can iron bird experiment before with system design model contrast simulation, can ahead of time find software and system design error, reduce software change risk.

Description

A kind of winged guard system software emulation contrast conversion method based on dynamic link library
Technical field
Fly keyholed back plate reason technical field the invention belongs to aviation, and in particular to a kind of winged guard system based on dynamic link library is soft Part simulation comparison conversion method, can be used for software test and system emulation contrast verification.
Background technology
Flight management system (FMS hereinafter referred to as flies guard system), as the core of digitlization avionics system, is aircraft On the most complicated avionic device.It carries out navigation, guidance, communication, winged control, power, aerodynamic force and other information High integrity and decision-making, not only significantly alleviate the work load of pilot, and can carry out data with ground air traffic control system Crosslinking, Real-Time Sharing weather information enters nearly landing on schedule with flight plan, vector aircraft is updated, and avoids flight delay, carries Airport utilization rate high.Therefore, flight management system can further improve the flight quality and fuel efficiency of aircraft, be to reduce to fly The effective means of row cost, the lifting market competitiveness.
In existing winged guard system software development process, software test is carried out after the completion of Software Coding, and Main Means are Runs software each function interface is tested, and iron bird experiment is transferred to after the completion of software test, and there are the following problems for this flow:
1) software test needs to write extra test code, for running corresponding function interface;
2) software test needs to draw input/output variable for different function interfaces, and test result observation is not directly perceived;
3) system design and software are realized only just being verified whether to iron bird experimental stage consistent, lack a kind of in software The means that the design initial stage contrasts with system design.
The content of the invention
The purpose of the present invention is exactly to solve the above problems, there is provided a kind of winged guard system software based on dynamic link library Simulation comparison conversion method, for reducing tester's workload in the software test stage, and provides a kind of before iron bird is tested It was found that Software for Design even new tool, the new method of system design problem.
The technical problem to be solved in the invention is as follows:
1) the extra test code that software test needs to write is reduced;
2) observe software test result more directly perceived;
3) proving time that system design is realized with software is done sth. in advance.
Winged guard system software emulation contrast conversion method of the present invention based on dynamic link library, including:
Step one, in the first engineering, definition fly guard system initialization interface, fly guard system real-time task scheduling interface, Fly guard system input information assignment interface and winged guard system output information assignment interface;
Step 2, in the winged guard system initialization interface winged guard system output information and intermediate variable are carried out initially Change and set, the input information of winged guard system is carried out into assignment in the winged guard system input information assignment interface, fly described Winged guard system output information is carried out into assignment in guard system software output information assignment interface, in winged guard system real-time task scheduling Winged guard system periodic duty is called in interface;
Step 3, by the winged guard system initialization interface, fly guard system real-time task scheduling interface, fly guard system input Information assignment interface and winged guard system output information assignment interface are claimed as export interface;
Step 4, compiling form dynamic link library and threaded file;
Step 5, the dynamic link library and threaded file are introduced into the second engineering, and by second engineering Input and output are configured according to the interface of the dynamic link library, and the winged guard system initialization interface is called afterwards;
Step 6, by second engineering, call the winged guard system real-time task scheduling to connect according to real-time task Mouth, the information needed flown in guard system input information assignment interface and winged guard system output information assignment interface, are emulated Test.
Preferably, first engineering includes dynamic link library engineering, and second engineering includes system function engineering, The system function engineering installation is made suitable to the order that solver sends into can receive the relevant information from solver When response.
In such scheme preferably, the winged guard system input information include surface instruction information, sensor information with And status information of equipment.
In such scheme preferably, the winged guard system output information includes download information, equipment operation command information And control instruction information.
In such scheme preferably, the control instruction information include rudder face control instruction information, brake instruction information, Nose Wheel Steering command information and throttle commands information.
After using above technical scheme, following advantage is capable of achieving:
1) present invention merely add the code that external interface is called, and guard system software source code is flown without change;
2) by means of Matlab softwares, all output variables can be shown, be stored etc. with operation, it is convenient directly perceived;
3) the need for can be according to software test, dynamic link library call parameters need to only be changed, it is possible to carry out software list Unit's test, software configuration item test;
4) can iron bird experiment before with system design model contrast simulation, can ahead of time find software and system design mistake By mistake, software change risk is reduced.
Brief description of the drawings
Accompanying drawing 1 is preferable to carry out for winged guard system software emulation of the present invention based on dynamic link library contrasts the one of conversion method The flow chart of example.
Specific embodiment
To make the purpose, technical scheme and advantage of present invention implementation clearer, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is further described in more detail.In the accompanying drawings, identical from start to finish or class As label represent same or similar element or the element with same or like function.Described embodiment is the present invention A part of embodiment, rather than whole embodiments.Embodiment below with reference to Description of Drawings is exemplary, it is intended to used It is of the invention in explaining, and be not considered as limiting the invention.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.Under Face is described in detail with reference to accompanying drawing to embodiments of the invention.
In the description of the invention, it is to be understood that term " " center ", " longitudinal direction ", " transverse direction ", "front", "rear", The orientation or position relationship of the instruction such as "left", "right", " vertical ", " level ", " top ", " bottom ", " interior ", " outward " are based on accompanying drawing institute The orientation or position relationship for showing, are for only for ease of the description present invention and simplify description, rather than the dress for indicating or implying meaning Put or element with specific orientation, with specific azimuth configuration and operation, therefore it is not intended that must be protected to the present invention The limitation of scope.
Winged guard system software emulation contrast conversion method of the present invention based on dynamic link library, as shown in figure 1, including:
Step one, in the first engineering, definition fly guard system initialization interface, fly guard system real-time task scheduling interface, Fly guard system input information assignment interface and winged guard system output information assignment interface;
Step 2, in the winged guard system initialization interface winged guard system output information and intermediate variable are carried out initially Change and set, the input information of winged guard system is carried out into assignment in the winged guard system input information assignment interface, fly described Winged guard system output information is carried out into assignment in guard system software output information assignment interface, in winged guard system real-time task scheduling Winged guard system periodic duty is called in interface;
Step 3, by the winged guard system initialization interface, fly guard system real-time task scheduling interface, fly guard system input Information assignment interface and winged guard system output information assignment interface are claimed as export interface;
Step 4, compiling form dynamic link library and threaded file;
Step 5, the dynamic link library and threaded file are introduced into the second engineering, and by second engineering Input and output are configured according to the interface of the dynamic link library, and the winged guard system initialization interface is called afterwards;
Step 6, by second engineering, call the winged guard system real-time task scheduling to connect according to real-time task Mouth, the information needed flown in guard system input information assignment interface and winged guard system output information assignment interface, are emulated Test.
The present invention is described in further details below by embodiment.
In the present embodiment, an engineering includes dynamic link library engineering, such as the dynamic link library engineering in VC++ Win32Dynamic-link Library, second engineering include system function engineering, the system function engineering installation into The relevant information from solver can be received, and appropriate response is made in the order sent to solver, such as in Matlab S-Function Bulider (hereinafter referred to as S- functions), above-mentioned solver be Simulink, it is to be understood that S- functions It refer to the One function of (i.e. computer language, is different from the system module of Simulink) description by the way of non-patterned Block.User can use the language such as MATLAB codes, C, C++, FORTRAM to write S- functions.S- functions are by a kind of specific language Method is constituted, and for describing and realizes the dynamical systems such as continuous system, discrete system and hybrid system;S- functions can receive to come From the relevant information of Simulink solvers, and appropriate response is made in the order sent to solver, and this reciprocation is non- Often similar to Simulink system modules and the reciprocation of solver.One complete S- function of structural system contains description Whole abilities needed for dynamical system, every other service condition is all the special case of this structural system.Often S- Function Modules Block is the core of whole Simulink dynamical systems
Specific embodiment of the invention is as follows:
1) a newly-built dynamic link library engineering in Visual C++6.0, winged guard system software source code is imported into In this engineering;
2) derived function interface is needed defined in dynamic link library engineering, for being adjusted subsequently in Matlab softwares With the function interface details of definition are:
KVB_Init flies guard system software initialization interface;
KVB_RT_Proc flies guard system software real-time task scheduling interface;
KVB_Input flies guard system software input information assignment interface;
KVB_Output flies guard system software output information assignment interface.
3) winged guard system output information and intermediate variable are carried out into Initialize installation in winged guard system initialization function; Fly that the information needed for winged guard system is carried out into assignment in guard system input information assignment function;In winged guard system software output information Winged guard system output information is carried out into assignment in assignment interface, data record is convenient for observation;In winged guard system software reality When task dispatch interface in call winged guard system periodic duty.
Above-mentioned winged guard system input information includes surface instruction information, sensor information and status information of equipment;It is above-mentioned Flying guard system output information includes download information, equipment operation command information and control instruction information.
It should be noted that in the present embodiment, above-mentioned surface instruction refers to the instruction sent by earth station, sensor information Comprising various winged guard system outside crosslinking sensor informations, comprising sensor fault word, equipment state includes electromechanical equipment, power The state status of equipment etc..
In the present embodiment, above-mentioned download information refers to the information for descending into earth station for pointing out pilot, equipment operation Instruction refers to the instruction for controlling other systems equipment, and above-mentioned control instruction information includes rudder face control instruction information, brake Command information, Nose Wheel Steering command information and throttle commands information.
4) input, output, initialization, real-time task are claimed as export interface in dynamic link library engineering;
5) compile after the completion of can produce two files, be by suffix " lib " and " dll " and file be put into Matlab work mesh Under record;
6) set up a user-defined S function interface in Matlab softwares, double-click after opening by input and output according to The interface of dynamic link library is configured, and calls initialization interface after dynamic link library is loaded into, and is called in real-time task Input, output, real-time task interface;
7) after the completion of processing, the model (mdl files) that winged guard system software can serve as in a Matlab is transported OK, support emulation and test job.
It is last it is to be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations.To the greatest extent Pipe has been described in detail to the present invention with reference to the foregoing embodiments, it will be understood by those within the art that:It is still Technical scheme described in foregoing embodiments can be modified, or which part technical characteristic is equally replaced Change;And these modifications or replacement, do not make the essence of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution God and scope.

Claims (5)

1. a kind of winged guard system software emulation based on dynamic link library contrasts conversion method, it is characterised in that including:
Step one, in the first engineering, definition flies guard system initialization interface, flies guard system real-time task scheduling interface, flies pipe System is input into information assignment interface and winged guard system output information assignment interface;
Step 2, winged guard system output information and intermediate variable are carried out into initialization in the winged guard system initialization interface set Put, the input information of winged guard system is carried out into assignment in the winged guard system input information assignment interface, in the winged piping Winged guard system output information is carried out into assignment in system software output information assignment interface, in winged guard system real-time task scheduling interface In call winged guard system periodic duty;
Step 3, by the winged guard system initialization interface, fly guard system real-time task scheduling interface, fly guard system input information Assignment interface and winged guard system output information assignment interface are claimed as export interface;
Step 4, compiling form dynamic link library and threaded file;
Step 5, the dynamic link library and threaded file are introduced into the second engineering, and by the input of second engineering Output is configured according to the interface of the dynamic link library, and the winged guard system initialization interface is called afterwards;
Step 6, by second engineering, the winged guard system real-time task scheduling interface is called according to real-time task, is flown The information needed that guard system is input into information assignment interface and winged guard system output information assignment interface, carries out emulation testing.
2. the winged guard system software emulation based on dynamic link library as claimed in claim 1 contrasts conversion method, and its feature exists In first engineering includes dynamic link library engineering, and second engineering includes system function engineering, the system function work Journey is arranged to receive the relevant information from solver, and appropriate response is made in the order sent to solver.
3. the winged guard system software emulation based on dynamic link library as claimed in claim 1 contrasts conversion method, and its feature exists In the winged guard system input information includes surface instruction information, sensor information and status information of equipment.
4. the winged guard system software emulation based on dynamic link library as claimed in claim 1 contrasts conversion method, and its feature exists In the winged guard system output information includes download information, equipment operation command information and control instruction information.
5. the winged guard system software emulation based on dynamic link library as claimed in claim 4 contrasts conversion method, and its feature exists In the control instruction information includes rudder face control instruction information, brake instruction information, Nose Wheel Steering command information and throttle Command information.
CN201611169183.5A 2016-11-30 2016-12-16 A kind of winged guard system software emulation contrast conversion method based on dynamic link library Pending CN106776321A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2016110822586 2016-11-30
CN201611082258 2016-11-30

Publications (1)

Publication Number Publication Date
CN106776321A true CN106776321A (en) 2017-05-31

Family

ID=58893304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611169183.5A Pending CN106776321A (en) 2016-11-30 2016-12-16 A kind of winged guard system software emulation contrast conversion method based on dynamic link library

Country Status (1)

Country Link
CN (1) CN106776321A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255149A (en) * 2017-12-08 2018-07-06 中国航空工业集团公司成都飞机设计研究所 It is a kind of to be remotely controlled the method that unmanned plane flies guard system failure of removing
CN110347589A (en) * 2019-06-11 2019-10-18 烽火通信科技股份有限公司 A kind of software unit testing automated detection method and system
CN110362615A (en) * 2019-05-09 2019-10-22 中国航空工业集团公司西安航空计算技术研究所 Towards multipair as intelligent data driven table method and device with complex interface
CN110750835A (en) * 2019-10-14 2020-02-04 中国航空工业集团公司沈阳飞机设计研究所 Automatic test platform for state diagram of aircraft system and building method thereof
CN113238834A (en) * 2021-05-31 2021-08-10 北京世冠金洋科技发展有限公司 Processing method and device of simulation model file and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101592921A (en) * 2008-05-29 2009-12-02 上海电气集团股份有限公司 A kind of mechanical system of wind generating set method of emulation
CN102915386A (en) * 2012-04-25 2013-02-06 清华大学 HLA (Human Leukocyte Antigen)-based Adams simulation model integrated platform and method
CN104375421A (en) * 2014-11-24 2015-02-25 西北工业大学 Aircraft engine part modeling method based on control system development platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101592921A (en) * 2008-05-29 2009-12-02 上海电气集团股份有限公司 A kind of mechanical system of wind generating set method of emulation
CN102915386A (en) * 2012-04-25 2013-02-06 清华大学 HLA (Human Leukocyte Antigen)-based Adams simulation model integrated platform and method
CN104375421A (en) * 2014-11-24 2015-02-25 西北工业大学 Aircraft engine part modeling method based on control system development platform

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255149A (en) * 2017-12-08 2018-07-06 中国航空工业集团公司成都飞机设计研究所 It is a kind of to be remotely controlled the method that unmanned plane flies guard system failure of removing
CN108255149B (en) * 2017-12-08 2020-12-29 中国航空工业集团公司成都飞机设计研究所 Method for remotely clearing faults of unmanned aerial vehicle flight management system
CN110362615A (en) * 2019-05-09 2019-10-22 中国航空工业集团公司西安航空计算技术研究所 Towards multipair as intelligent data driven table method and device with complex interface
CN110362615B (en) * 2019-05-09 2024-05-24 中国航空工业集团公司西安航空计算技术研究所 Multi-object intelligent data table driving method and device with complex interface
CN110347589A (en) * 2019-06-11 2019-10-18 烽火通信科技股份有限公司 A kind of software unit testing automated detection method and system
CN110750835A (en) * 2019-10-14 2020-02-04 中国航空工业集团公司沈阳飞机设计研究所 Automatic test platform for state diagram of aircraft system and building method thereof
CN110750835B (en) * 2019-10-14 2022-09-20 中国航空工业集团公司沈阳飞机设计研究所 Automatic test platform for state diagram of aircraft system and building method thereof
CN113238834A (en) * 2021-05-31 2021-08-10 北京世冠金洋科技发展有限公司 Processing method and device of simulation model file and electronic equipment
CN113238834B (en) * 2021-05-31 2023-08-08 北京世冠金洋科技发展有限公司 Simulation model file processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN106776321A (en) A kind of winged guard system software emulation contrast conversion method based on dynamic link library
CN107942720A (en) A kind of online flight Simulation System of portable type ground
EP2591419B1 (en) Simulating and testing avionics
CN104670508B (en) Flight management system of aircraft
CN104573182B (en) A kind of design method for aircraft Multimode Control System
CN107132771B (en) A kind of carrier rocket flight quality efficient emulation verification method
US11176832B2 (en) Systems and methods to integrate real-time internet-connected aircraft data for cargo planning
CN108089976A (en) A kind of method for building flight management system software virtual testing environment
US20220051584A1 (en) Flight Management System Operator
CN111124927B (en) Testing method for multi-partition airborne software
CN108108329A (en) The more characteristic analysis methods of IMA system dynamic restructuring strategies
US20200035116A1 (en) System and method for cloud-based flight management system familiarization training
CN108089975A (en) A kind of method of constructing environment Control System Software virtual testing environment
EP3599599A1 (en) System and method for cloud-based flight management system familiarization training
CN113985920A (en) Portable heterogeneous unmanned aerial vehicle formation flying aircraft simulator
US20040122637A1 (en) System and methods for development and testing of payload interaction
KR20130072565A (en) Scenario-based simulation system of satellite flight software
Prosvirin et al. Model-based solution and software engineering environment for UAV critical onboard applications
Denney et al. An integrated safety and systems engineering methodology for small unmanned aircraft systems
CN104503824A (en) Wingmanship analysis validation system oriented to civil air traffic control
CN102495745B (en) Avionics system distributed data loading management control method
CN112612297A (en) Airworthiness verification system and method for civil aircraft automatic flight control system
CN113867173B (en) Unmanned aerial vehicle centralized cluster type hardware-in-loop simulation system and method
EP2597600A1 (en) Apparatus and method for automatic status check of an aircraft
CN221707905U (en) Unmanned aerial vehicle semi-physical simulation 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication