59 lines
1.9 KiB
Markdown
59 lines
1.9 KiB
Markdown
+++
|
|
title = "Simulink"
|
|
author = ["Dehaeze Thomas"]
|
|
draft = false
|
|
category = "Tools and Software"
|
|
+++
|
|
|
|
Tags
|
|
: [Matlab]({{< relref "matlab.md" >}})
|
|
|
|
|
|
## Useful Key Bindings {#useful-key-bindings}
|
|
|
|
| Key Binding | Action |
|
|
|----------------|-----------------------------|
|
|
| `spc` | Fit to view |
|
|
| `ctrl-shift-A` | Rearrange all the blocks |
|
|
| `ctrl-shift-I` | Open the Property Inspector |
|
|
| `ctrl-G` | Create a subsystem |
|
|
| `ctrl-J` | Show the Sampling Time |
|
|
| `ctrl-T` | Run Model |
|
|
| `ctrl-shit-T` | Stop Model |
|
|
| `ctrl-D` | Update Model |
|
|
| `ctrl-B` | Build Model |
|
|
| `ctrl-H` | Open Model Explorer |
|
|
|
|
Tips:
|
|
|
|
- It is possible to share configuration between files with **referenced configuration**
|
|
|
|
|
|
## Control Simulink with the keyboard {#control-simulink-with-the-keyboard}
|
|
|
|
<https://www.mathworks.com/help/simulink/ug/summary-of-mouse-and-keyboard-actions.html>
|
|
|
|
|
|
## Linearize portion of Simulink file {#linearize-portion-of-simulink-file}
|
|
|
|
<https://in.mathworks.com/help/slcontrol/ug/specify-model-portion-to-linearize.html>
|
|
|
|
|
|
## Configure Simulink Programmatically {#configure-simulink-programmatically}
|
|
|
|
<https://fr.mathworks.com/help/simulink/slref/common-block-parameters.html>
|
|
|
|
|
|
## Import Geometry in Simscape Multi-Body {#import-geometry-in-simscape-multi-body}
|
|
|
|
Best format: `.STEP` (it keeps the geometrical feature such as circles which is not the case with STL).
|
|
|
|
If we want to import several parts as one solid:
|
|
|
|
- create an assembly with all these parts
|
|
- made a "defeature" of the assembly and same as a new part
|
|
- then export to "defeatured" part as a STEP file
|
|
|
|
When exporting an assembly as a STEP file, it cannot be imported into Simscape.
|
|
To make it work, first same the assembly as a "part" in Solidworks, then export the "part" to a STEP file.
|