Automatic layout method of Simulink

An automatic layout and layout technology, applied in the fields of instrumentation, calculation, electrical and digital data processing, etc., can solve the problems of unreliable simulation results, difficulty in ensuring the execution sequence of modules, cumbersome and other problems, so as to minimize the number, optimize the layout, and avoid logic errors. Effect

Active Publication Date: 2019-10-01
北京灵思创奇科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The disadvantage of tagged modules is that it is difficult to ensure the execution order of the modules
If the output of module A is connected to the input of module B, and the input and output are connected through labels, it is possible that module B is executed first and module A is executed later, resulting in unreliable simulation results.
If you want to ensure the execution order of the modules, you must manually set the execution order of each module, which is very cumbersome

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic layout method of Simulink
  • Automatic layout method of Simulink
  • Automatic layout method of Simulink

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The technical solution of this patent will be further described in detail below in conjunction with specific embodiments.

[0036] see Figure 1-4 , an automatic layout method of Simulink, including the following steps:

[0037] S1: Obtain all information about the layout of the model, including module information and tree-like hierarchical relationships between modules. Module information includes position, height, width, module display text, input data type, input number, output data type, output number, etc.

[0038] S2: Organize the label type modules under the subsystem module. If there is a local label module, delete the local label module and connect it with a line. If there is a non-local label module, first traverse the module tree of the entire model to find all non-local label modules (Scoped or Global type) with the same name, and then divide them into two groups according to the read-write type. There must be only one write type, and there can be multip...

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

PUM

No PUM Login to view more

Abstract

The invention provides an automatic layout method of Simulink. The automatic layout method comprises the following steps: S1, acquiring all layout information of a model; S2, arranging a label type module below the subsystem module; S3, arranging input and output data of the module; S4, traversing all the modules and sub-modules from the root module at the top layer; and S5, when each module is processed, converting the information of the module into the input of Graphviz, and then calling a Graphviz algorithm to obtain an automatic layout result. The automatic layout method of Simulink can delete and replace the tag type modules by the connecting lines, so that the execution sequence among the modules can be determined and logic errors are avoided. Besides, the automatic layout method ofSimulink can reduce the number of input and output data, can minimize the number of connecting lines, and is more concise in the model. Moreover, the automatic layout method of Simulink automaticallyoptimizes the layout of the model by using a third-party open-source automatic layout engine, so that the layout quality of the model is greatly improved.

Description

technical field [0001] The invention relates to the field of graphical modeling tool MATLAB / Simulink, in particular to an automatic layout method of Simulink. Background technique [0002] MATLAB is a commercial mathematical software produced by MathWorks in the United States. It is mainly used for algorithm development, data visualization, data analysis, and numerical calculation. It is widely used in many fields such as scientific research and engineering calculation. Simulink is a graphical modeling tool in MATLAB, which is widely used in the modeling and simulation of linear systems, nonlinear systems, digital control and digital signal processing. Simulink provides a graphical design interface, with the module as the functional unit, connected through the signal line, the user sets the parameters through the parameter setting dialog box of the module, and the simulation results are displayed in the form of numerical values ​​and images. [0003] When using Simulink too...

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/50
CPCG06F30/367
Inventor 陈浩赵瑞永黄晓郭悦
Owner 北京灵思创奇科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products