CN105718617B - The reversed method for automatic modeling of Bus structural body tested automatically for Matlab - Google Patents
The reversed method for automatic modeling of Bus structural body tested automatically for Matlab Download PDFInfo
- Publication number
- CN105718617B CN105718617B CN201410733779.8A CN201410733779A CN105718617B CN 105718617 B CN105718617 B CN 105718617B CN 201410733779 A CN201410733779 A CN 201410733779A CN 105718617 B CN105718617 B CN 105718617B
- Authority
- CN
- China
- Prior art keywords
- structural body
- bus structural
- input
- bus
- layer
- 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
Abstract
The invention belongs to aero-engine control law model field of automatic testing, provide a kind of reversed method for automatic modeling of Bus structural body tested automatically for Matlab.It include: the test case data 1) in automatic collection EXCEL file;2) tested model is automatically read, input and output end all in tested model are searched, which input/output terminal of discrimination includes BUS structural body, which input/output terminal does not include BUS structural body;3) it is directed to the input/output terminal comprising BUS structural body, read in it includes BUS structural body, using multiway tree preamble ergodic algorithm, the number and title of each Bus structural body are parsed layer by layer, while being recorded the path of leaf node and title in each BUS structural body and being stored in caching array;4) according in caching array path and title, since root node, reversed automatic modeling layer by layer, until all leaf nodes.
Description
Technical field:
The invention belongs to aero-engine control law model field of automatic testing.
Background technique:
Currently, the automatic test application of model based on Matlab is more and more, the test of model automatic simulation is developed in V process
Play the role of very important, any exploitation (including model development) process, as long as the intervention of someone, is all necessarily deposited in verifying
In various mistakes, therefore, the effect of emulation and test is extremely important, plays the role of making a final check, V&V refers to
Validation and Verification first has to correctly do things, and then verifies whether to have done correct thing.
During model automatic test and validation, a very important ring is exactly to need to generate tested Harness model,
Since model itself is various, all models how are parsed, tested model is then automatically generated and is very important.It is pushing up
Bus structural body is all necessarily used in the model of layer model and intermediate each layer, therefore, analytic modell analytical model will be encountered to Bus structural body
Parsing, since Bus structural body is also complicated and changeable, multifarious.And most importantly Matlab owns on the market
Version to the identification containing Bus structural body be not very well, when generating tested model Harness, can not automatically parse,
Input terminal and output end signal comprising Bus structural body are generated, Bus structural body or right can only be removed by modifying model
Harness model just can be generated after simplifying in Bus structural body.Therefore, to the parsing with Bus structural body with reversed automatic modeling
Technical relation the success or failure tested automatically.If solving the parsing to all Bus structural bodies and reversed Auto-Modelling Technology, that
Model is tested automatically just can really be applied.
Summary of the invention:
Goal of the invention: the present invention provides a kind of reversed method for automatic modeling of Bus structural body tested automatically for Matlab.
Technical solution:
A kind of reversed method for automatic modeling of Bus structural body tested automatically for Matlab.Include:
1) test case data in automatic collection EXCEL file;
2) tested model is automatically read, input and output end all in tested model, which input and output of discrimination are searched
End includes BUS structural body, which input/output terminal does not include BUS structural body;
3) be directed to the input/output terminal comprising BUS structural body, read in it includes BUS structural body, using multiway tree preamble
Ergodic algorithm, parses the number and title of each Bus structural body layer by layer, while recording leaf node in each BUS structural body
Path and title are stored in caching array;
4) according in caching array path and title, since root node, reversed automatic modeling layer by layer, until all
Leaf node;
5) model after the modeling of encapsulation automatic reverse, exports the Harness for that can test automatically under Matlab environment
Model.
The utility model has the advantages that
After applying the present invention, the Bus structural body that can automatically identify various complexity, by a large amount of test and verification,
Right-on model can be established automatically according to the reversed of Bus structural body hierarchical structure, and line relationship is correct, compiling is logical
It crosses, meets all requirements tested automatically.Manpower is liberated, solving must be artificial when being tested using matlab tool
Establish the defect of tested Harness model.
Detailed description of the invention
Fig. 1 is the method for the present invention flow chart.
Specific embodiment
A kind of reversed method for automatic modeling of Bus structural body tested automatically for Matlab.As shown in Figure 1, comprising:
1) test case is read in: the test case data in automatic collection EXCEL file;
2) model is read in: automatically read tested model, search input and output end all in tested model, discrimination which
Input/output terminal includes BUS structural body, which input/output terminal does not include BUS structural body;
3) traversal parsing BUS structural body: for the input/output terminal comprising BUS structural body, read in it includes BUS structure
Body parses the number and title of each Bus structural body using multiway tree preamble ergodic algorithm layer by layer, while recording each BUS knot
The path of leaf node and title are stored in caching array in structure body;
4) automatic reverse models: reversely being built automatically layer by layer since root node according to the path and title that cache in array
Mould, until all leaf nodes;
5) automatic packaging Harness model: all inputs and output is arranged in the model after encapsulation automatic reverse modeling automatically
The association attributes at end, final output are the Harness model that can be tested automatically under Matlab environment.
The compiling process of the software section of the method for the present invention is as follows:
Claims (1)
1. a kind of reversed method for automatic modeling of Bus structural body tested automatically for Matlab characterized by comprising
1) test case data in automatic collection EXCEL file;
2) tested model is automatically read, input and output end all in tested model, which input/output terminal packet of discrimination are searched
Structural body containing BUS, which input/output terminal do not include BUS structural body;
3) be directed to the input/output terminal comprising BUS structural body, read in it includes BUS structural body, using multiway tree preamble traverse
Algorithm, parses the number and title of each Bus structural body layer by layer, while recording the path of leaf node in each BUS structural body
It is stored in caching array with title;
4) according in caching array path and title, since root node, reversed automatic modeling layer by layer, until all leaves
Node;
5) model after the modeling of encapsulation automatic reverse, exports the Harness model for that can test automatically under Matlab environment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410733779.8A CN105718617B (en) | 2014-12-05 | 2014-12-05 | The reversed method for automatic modeling of Bus structural body tested automatically for Matlab |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410733779.8A CN105718617B (en) | 2014-12-05 | 2014-12-05 | The reversed method for automatic modeling of Bus structural body tested automatically for Matlab |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105718617A CN105718617A (en) | 2016-06-29 |
CN105718617B true CN105718617B (en) | 2019-03-29 |
Family
ID=56143942
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410733779.8A Active CN105718617B (en) | 2014-12-05 | 2014-12-05 | The reversed method for automatic modeling of Bus structural body tested automatically for Matlab |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105718617B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107451064B (en) * | 2017-08-16 | 2020-08-18 | 北京车和家信息技术有限责任公司 | Automatic test method, device, computer equipment and readable storage medium |
CN109614329B (en) * | 2018-12-06 | 2021-11-02 | 中国航空工业集团公司洛阳电光设备研究所 | Software test case aided design method based on interface control file |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005085888A1 (en) * | 2004-03-05 | 2005-09-15 | Vfs Technologies Limited | Testing of embedded systems |
CN102508692B (en) * | 2011-09-28 | 2014-03-12 | 天津大学 | Simulation and verification method of control method of near space aircraft |
CN103970591B (en) * | 2014-05-28 | 2017-04-12 | 山东大学 | Matlab-ATP (Matrix Laboratory-Array Transform Processor) integrated automation calling method |
CN104155596B (en) * | 2014-08-12 | 2017-01-18 | 北京航空航天大学 | Artificial circuit fault diagnosis system based on random forest |
-
2014
- 2014-12-05 CN CN201410733779.8A patent/CN105718617B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105718617A (en) | 2016-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103995781B (en) | A kind of component testing case generation method based on model | |
CN104408264B (en) | It is a kind of that system and method is verified based on the Embedded Storage Controller asserted | |
CN105512105A (en) | Semantic parsing method and device | |
CN111694741A (en) | Test case design method based on path depth coverage | |
CN103761681A (en) | Intelligent comparison method of SCD and Excel virtual terminal table of intelligent substation | |
CN111221693B (en) | Verification method, system, device and storage medium for NOR flash configuration module | |
CN104391796B (en) | A kind of test case analytic method | |
CN103425584A (en) | Large-scale application regression testing information processing method based on Java bytecode | |
CN108197026A (en) | Method, device and equipment for testing simulation software of wind generating set and storage medium | |
CN103377123B (en) | A kind of web page code automated testing method and device | |
CN103605556A (en) | Virtual test subject integrally-constructing system and method | |
CN104317995A (en) | PSpice (P simulation program with integrated circuit emphasis) AD (analogue/digital) circuit simulation-based single-failure automatic injection method | |
CN106778280A (en) | A kind of long-range leak PoC write methods of filled type and leak detection method | |
CN103440363B (en) | Abnormal signal source tracing method in a kind of FPGA placement-and-routing post-simulation | |
CN105718617B (en) | The reversed method for automatic modeling of Bus structural body tested automatically for Matlab | |
CN103780624A (en) | General application layer network communication protocol application method for complicated system | |
CN104699473A (en) | Timing constraint file generation method and device and RTL (Register Transfer Level) simulation equipment | |
CN104090995B (en) | The automatic generation method of rebar unit grids in a kind of ABAQUS tire models | |
CN104133948B (en) | A kind of simulation model generation method, system and simulation model | |
CN105740579A (en) | Construction method for connection of UVM verification platform | |
CN106776275B (en) | A kind of testing process automatic generation method based on Packet Multiplexing | |
CN106777729A (en) | A kind of algorithms library simulation and verification platform implementation method based on FPGA | |
CN102495778B (en) | System and method for testing single-packet regular matching logic | |
CN108629124A (en) | A kind of simulation parameter data auto-generation method based on activity diagram path | |
CN105335156B (en) | A kind of method and system of java object serialization |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: No. 104, Liangxi Road, Binhu District, Wuxi City, Jiangsu Province Patentee after: AECC AERO ENGINE CONTROL SYSTEM INSTITUTE Address before: 214063 Jiangsu city of Wuxi province Liangxi Road No. 792 Patentee before: AVIC AVIATION MOTOR CONTROL SYSTEM INSTITUTE |