Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the automatic routing tool in Simulink/System Generator?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how the automatic routing tool in Simulink/System Generator is. The content of the article is of high quality. Therefore, Xiaobian shares it with you as a reference. I hope that after reading this article, you will have a certain understanding of relevant knowledge.

preface

This tool works with Matlab versions after 2011b, and if layout type is set to GraphPlot, versions after 2015b are required. Layout type will be discussed later.

Put the decompressed folder under Matlab search path. What is Matlab search path? A very simple way is to type "path" under the command line window of Matlab, and you can print it out, as shown below. Here, I put it under the first path.

image-20200630142039797

Execute sl_refresh_customizations command to refresh context menu

Double-click the.mltbx file

image-20200630105339847

The installation dialog box will pop up and follow the normal installation steps.

image-20200630105412769

Execute sl_refresh_customizations command again

Install Graphviz, download the installation package from the official website (we also provide one in the download folder), after installation, you need to manually add system variables, I need to add C:\Program Files\Graphviz 2.44.1\bin path.

In the download folder, there is an example directory, below which there is a very messy mdl file, we can test this file, right-click the blank space of simulink, click Auto Layout above.

image-20200630113025886

The results of automatic routing are shown in the following figure:

image-20200630135126908

Operation complete!!!

Note:

Under src/config.txt, you can select the layout policy through the parameter layout_type;

Auto Layout is irreversible and cannot be reversed by Ctrl+z, so remember to save it before performing this operation;

Parameters that can be modified are in src/config.txt. If you are not satisfied with the default parameters, you can modify them yourself;

For partial Auto Layout, first select the module and line to be laid out, and then right-click Auto Layout;

Auto Layout can be executed from the command line in Matlab

About Simulink/System Generator automatic routing tools is how to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report