在本视频中,我们为您展示您如何在MoRe的帮助下,为您的Simulink模型自动创建高质量且完全符合规范的布局。了解您的专属Simulink优化工具!
本文章目前仅提供英文版本。
自动布局与改进布局
Auto Layout
The ‘Auto Layout’ action in MES Model & Refactor (MoRe) automatically creates a clean, guideline-compliant layout for your current subsystem with just one click.
How Does Auto Layout Improve Your Layout and Model Readability?
- Arranges blocks in a left-to-right data flow
- Aligns blocks horizontally
- Positions them vertically to reduce line crossings and unnecessary bends
- Routes signal lines as straight as possible
- Optimizes spacing to prevent overlaps
Among many other additional layout refinements that enhance clarity and consistency.
You can apply 'Auto Layout' to:
- The entire subsystem
- A selected area only
This gives you the flexibility to clean a specific area of your model without affecting the entire subsystem.
Customization Options
Auto Layout' also lets you customize its behavior through Preferences → Config File. For example, you can add color to blocks or enable signal label propagation for lines.
In addition, you can choose to skip certain actions in specific situations. For instance, you can configure your project so that blocks without ports are not included in 'Auto Layout' and remain in their original positions.
This way, you can adapt MoRe’s 'Auto Layout' to fit your exact needs.
Refine Layout
The ‘Refine Layout’ action also creates a clean and uniform layout, but with one important difference: it is based on your existing layout.
- ‘Auto Layout’ reorganizes the subsystem according to predefined rules.
- Refine Layout preserves your structural intent. It respects how you initially arranged blocks and then improves alignment, spacing, and line routing within those boundaries.
How Does ‘Refine Layout’ Improve Your Layout While Preserving Its Original Structure?
Refine Layout gives you full control over the overall layout. You roughly position blocks and lines where you want them, and the action takes care of the detailed optimization.
You can apply it multiple times:
- Run Refine Layout
- Adjust block positions manually
- Run it again
- Repeat until the result matches your expectations
This iterative workflow allows you to refine the layout step by step.
When Should You Use Auto Layout vs. Refine Layout for Simulink Layout Optimization?
The Key Difference
Auto Layout → creates a new optimized structure
Refine Layout → optimizes your current structure
Use Auto Layout when:
- Your entire model’s layout is messy or inconsistent
- You need strict guideline compliance
- You want fast restructuring after major changes
Use Refine Layout when:
- You like your current structure
- You want controlled optimization
- You want to make incremental changes
- You prefer iterative layout refinement
Would You Like to Explore MoRe Further?
If you are interested in making your model-based design more efficient, we encourage you to take a closer look at how the MES Model & Refactor (MoRe) can help streamline your workflow. And here is some great news for MXAM users: starting with version 10, MoRe comes built right in at no additional cost, so you can integrate it seamlessly into your existing processes.
Transform Your Modeling and Create Simply Better Models!
Gain practical insights into developing and securing safety-critical embedded software for series production using Simulink, in accordance with ISO 26262 (Part 6). Modeling guidelines and testing are also covered, followed by an assessment of ISO 26262 readiness of controller functions to conclude the class.