本图片展示了一台笔记本电脑,背景为MES Model & Refactor (MoRe)快速入门指南。
图片:MES Model & Refactor (MoRe)快速入门指南

Streamlined Model-Based Design with MES Model & Refactor

本文章目前仅提供英文版本。

MES Model & Refactor (MoRe) is a Simulink extension that simplifies model creation and refactoring. By automating repetitive modeling tasks, MoRe can cut these time-consuming activities by up to 90%.

In addition, MoRe helps you achieve layout-compliant, more readable, and maintainable models, making it a great quality-enhancing, efficiency-boosting tool.



Note: If you are already an MES Model Examiner (MXAM) Functional Safety Solution user or are interested in acquiring it you will be happy to know that MoRe is automatically included, starting with version 10. This makes its integration into your toolchain seamless.

本图片展示了MES Model & Refactor (MoRe)的菜单界面,其中包含“开始”按钮。
图片:MES Model & Refactor (MoRe)启动键

Quick Start to MoRe

Once you have installed MoRe, all you need to do is to look for it in a separate tab in your upper Simulink menu:

本图片展示了MES Model & Refactor (MoRe)的菜单界面。
图片:MES Model & Refactor (MoRe)操作菜单

Menu & Functionalities

Take a look at all of MoRe’s actions below. Simply click on them to apply the action to your model as needed.

Throughout this article, we will go through some of the main actions of MES Model & Refactor. Continue reading to get a quick overview of how this tool can help make your work easier.

Top MoRe Actions To Accelerate Model-Based Design

Find out how these features enable streamlined model-based design and deliver models that combine visual clarity with technical precision.

1. Auto Layout

This action saves you time by performing repetitive tasks with just one click. It automates tedious operations such as aligning blocks horizontally and placing them vertically or arranging blocks to follow a left-to-right data flow. As a result, you not only get cleaner and more uniform layouts but also models that are more readable and, most importantly, compliant with modeling guidelines.

Furthermore, you can apply the ‘Auto Layout’ feature to the entire subsystem or to a selected area.

Take a look at the video to see a demonstration.

视频: MES Model & Refactor (MoRe)的操作Auto Layout(自动布局)展示

In addition, the ‘Auto Layout’ feature also allows you to set custom parameters through the “Preferences → Config File” menu option. In this menu, you will find various customization settings.


For example, if you want to adjust block height to reduce line bends, you can use the “OptimizeBlockHeights” setting, which has a self-explanatory name. You can set it to true or false depending on your preference. The same approach applies to the other customization options. You can find more information about these in the MoRe Documentation section.

本图片展示了MES Model & Refactor (MoRe)中Auto Layout(自动布局)和Refine Layout(优化布局)的区别
图片:MES Model & Refactor (MoRe)中Auto Layout(自动布局)和Refine Layout(优化布局)的区别

2. Refine Layout

Just as with the ‘Auto Layout’ action, the ‘Refine Layout’ action gives you a clean and uniform layout. You can also apply it to the entire subsystem or to a selected subarea. The main difference is that the ‘Refine Layout’ action produces a result based on your existing layout.

本图片展示了MES Model & Refactor (MoRe)的Refine Layout(优化布局)在进行手动调整后的应用案例。
图片:MES Model & Refactor (MoRe)的Refine Layout(优化布局)在进行手动调整后的应用案例

As shown in the image, the Auto Layout action does not respect the original structure and instead reorganizes the model based on its predefined parameters and criteria. The key difference is that the Refine Layout action preserves your original structure while optimizing the model within those boundaries, performing tasks such as aligning blocks or improving line routing.

You can also apply the ‘Refine Layout’ action as many times as needed. For example, if you add a new element to your subsystem or decide to move something within the model. Below, you can see an example.

本图片展示了在MES Model & Refactor (MoRe)中添加跨层级信号的示例。
图片:在MES Model & Refactor (MoRe)中添加跨层级信号的示例

3. Add Cross-Hierarchy Signal

This action connects a selected block or signal to an inport of another block within the same model. If the source block/signal and the target inport are in different subsystems, the action automatically creates any necessary subsystem inports, outports, and connecting lines to bridge the hierarchy.

How does this work?

  • First, select the targeted source block or signal line. Then, right-click on it and choose ‘Signal Routing → Add Cross-Hierarchy Signal’.
  • Next, set the destination of the signal in the ‘Block Path’ pop-up window.
  • You can either enter the target block path directly or select the block manually in the Simulink editor and click ‘Get Selected Block’.
  • After that, go to the Port panel and choose the target port where the signal should be connected.
  • You can select an existing free inport or choose ‘Create new’ to create a new target inport (this option is only available if the target block is a subsystem).
  • MoRe will automatically pre-fill the signal name with the original name, which you can keep or edit as needed.

Watch the video below to see a guided tutorial:

视频: MES Model & Refactor (MoRe)的添加跨层级信号操作
本图片展示了在MES Model & Refactor (MoRe)中反向移除非总线型跨层级信号的示例。
图片:在MES Model & Refactor (MoRe)中反向移除非总线型跨层级信号的示例

4. Remove Cross-Hierarchy Signal Backwards

This action allows you to save time by sparing you of having to manually remove a bus signal and a non-bus signal backwards across a subsystem hierarchy. It removes all lines, GoTo/ From blocks, subsystem inports/outports, bus selector outports, and bus creator inports along the path and stops at a chosen stopping block.

You can specify how far you want to remove the signal in the dialog called ‘Choose Stopping Block’. The dialog will present several options, indicating the maximum safe removal point so that other signal branches do not lose their source signal.

本图片展示了如何在MES Model & Refactor (MoRe)中反向移除总线型跨层级信号。
图片:在MES Model & Refactor (MoRe)中反向移除总线型跨层级信号

If a bus line is selected, the action opens another dialog where you can choose the bus signal to remove. Finally, to remove the entire bus, simply select the top node and click OK to proceed.

本图片展示了在MES Model & Refactor (MoRe)中正向移除非总线型跨层级信号的示例。
图片:在MES Model & Refactor (MoRe)中正向移除非总线型跨层级信号的示例

Remove Cross-Hierarchy Signal Forward

This action saves time by eliminating the need to manually remove a bus signal and a non-bus signal forward through a subsystem hierarchy.
It follows all signal branches and removes all lines, GoTo/ From blocks, subsystem inports/outports, bus selector outports, and bus creator inports along the way and stops at non-virtual blocks.

本图片展示了在MES Model & Refactor (MoRe)中正向移除总线型跨层级信号的示例。
图片:在MES Model & Refactor (MoRe)中正向移除总线型跨层级信号的示例

If a bus line is selected, the action opens a dialog where you can choose the bus signal to be removed. If the signal was used at some non-virtual destination blocks, the action opens a dialog named 'Blocks To Be Adapted' after removing the signals. This dialog shows the paths of the non-virtual blocks that need to be adapted somehow by the modeler because they lost at least one input signal during the action.

Take a look at the demonstration below to see how it works:

视频: MES Model & Refactor (MoRe)的操作移除跨层级信号展示

5. Convert GoTo/Froms to Lines

This MoRe action converts GoTo/From connections to lines. You can convert all connections within your subsystem or select specific ones. It also works for GoTo/From blocks that span across different subsystems or model sections.

Take a look at the video below to see it in action:

视频: MES Model & Refactor (MoRe)中将GoTo与From转换为连线的操作展示

6. Accelerate Bus Management and Relocation

This MoRe feature combines multiple capabilities that dramatically accelerate bus management, enabling truly streamlined model-based design. These actions are:

  • Create bus: This action creates a bus from your selected signals by generating a new bus creator and rerouting the signal lines into it.
    The feature also handles signals connected to destination blocks. Finally, it automatically adds the corresponding bus selectors after the bus creator and reroutes the signals to the destination ports.
  • Merge bus selectors: This action merges selected bus selector blocks into a single bus selector. It only works when the bus selectors share the same source port.
  • Move blocks up: This action moves the selected blocks to the parent system one layer above.
  • Move blocks down: This action moves the selected blocks one layer down into the selected target subsystem.
  • Split bus selector by destination: This action allows you to split a bus selector so that each of the destination blocks has its own bus selector.

To see how all these actions make handling buses a lot faster and more efficient watch the video.

视频: MES Model & Refactor (MoRe)中加速总线管理与迁移的操作展示
本图片展示了如何在MES Model & Refactor (MoRe)中访问文档。
图片:如何在MES Model & Refactor (MoRe)中访问文档

Getting Started with MoRe

Once you have the tool installed, you can access the User Guide from the upper menu by clicking "Help > Documentation". Be sure to check out our dedicated MoRe resources in the MES Knowledge Library for tips on maximizing the tool's value and to help you master streamlined model-based design.

联系我们

本图片是Elena Bley的肖像照。
Elena Bley
Senior Manager Marketing & Webinars

*必须填写

Please calculate 8 plus 9.