Self-adapting simulation and code generation control method in Simulink

A code generation and control method technology, applied in the field of automotive electronics embedded system development, can solve the problems that cannot meet the needs of modeling and code generation, large system development time, cumbersome modeling process, etc., to save system development time, Improve generation efficiency and display intuitive effects
CN104091006AActive Publication Date: 2014-10-08CHINA NORTH ENGINE INST TIANJIN

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
CHINA NORTH ENGINE INST TIANJIN
Publication Date
2014-10-08

Smart Images

  • Figure 1
    Figure 1
Patent Text Reader

Abstract

The invention relates to a self-adapting simulation and code generation control method in Simulink. The method comprises the steps that (1), the Simulink.Parameter type or similar type parameters are created in MATLAB / Simulink; (2), an S function is written; (3), an S function module is created in Simulink model files, and the S function is connected to the S function module; (4), the name of the parameters is input into a GUI tool, and the tool automatically reads the information of the various parameters needed by the S function and sets parameters of the S function module; (5), a TLC file is written, the TLC file reads the parameter information of the S function and other information relevant to the S function, and determines data types of the parameters according to the serial number of the data types, and user-defined codes with different specified formats can be generated. The self-adapting simulation and code generation control method can greatly improve modeling and code generation efficiency, and has high practicability.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of automotive electronic embedded system development, in particular to automatic code generation based on MATLAB / Simulink, and in particular to a control method for self-defined module data type adaptive simulation and code generation in Simulink. Background technique

[0002] In the field of automotive electronics, embedded systems are used more and more widely, and most of them use microprocessors as the control core. The model-based V-type development method can realize the modeling and simulation of the controller model, rapid prototyping, automatic code generation, hardware-in-the-loop simulation and system application. MATLAB / Simulink is a modeling simulation and automatic code generation tool commonly used today, which can complete the entire process of modeling simulation, rapid prototyping and automatic code generation. Simulink provides a large number of built-in modules for modeling and code generation, b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More