﻿WEBVTT

00:00:07.189 --> 00:00:10.583
Hi and welcome to the short introduction to
the most important actions

00:00:10.608 --> 00:00:13.590
of MES Model and Refactor 
from the interface category.

00:00:14.812 --> 00:00:18.893
With these actions you can quickly and 
easily change the interface of subsystems.

00:00:19.694 --> 00:00:21.931
The first action is called
move interface

00:00:21.955 --> 00:00:25.374
which allows you to rearrange the
port numbers of a subsystem.

00:00:29.669 --> 00:00:31.547
In newer simulink versions 
you can also change

00:00:31.572 --> 00:00:34.129
the port order directly
at the subsystem.

00:00:38.764 --> 00:00:42.741
In older versions this is only possible
from within the subsystem.

00:00:44.487 --> 00:00:47.387
With move interface you can easily change
the port order

00:00:47.411 --> 00:00:49.900
of imports or outports 
with a small dialog.

00:01:13.088 --> 00:01:16.123
This is especially useful 
to improve the layout

00:01:16.147 --> 00:01:19.923
or to adapt the port order of a subsystem 
to an external interface.

00:01:23.756 --> 00:01:26.820
The next action is called 
rename signal imports forward.

00:01:27.804 --> 00:01:30.028
It helps you to quickly rename a signal

00:01:30.052 --> 00:01:32.340
that crosses
multiple subsystem levels.

00:01:38.783 --> 00:01:43.236
Usually a signal like this passes through
several levels of your model hierarchy.

00:01:43.609 --> 00:01:46.129
And also splits up to
multiple subsystems.

00:01:50.542 --> 00:01:54.308
If you now want to rename the complete
signal without MES MoRe,

00:01:54.332 --> 00:01:56.683
you have to manually navigate 
through your model

00:01:56.707 --> 00:01:59.034
to rename all line labels
and ports

00:01:59.058 --> 00:02:01.597
which is very 
time consuming and tedious.

00:02:11.928 --> 00:02:12.937
And so on.

00:02:14.135 --> 00:02:17.723
With MES MoRe you can simply
select the signal you want to rename

00:02:21.111 --> 00:02:25.444
and start the action rename signal
and ports forward from the MoRe menu.

00:02:31.738 --> 00:02:34.051
Now you can enter
your new signal name

00:02:38.939 --> 00:02:40.300
and click ok.

00:02:41.800 --> 00:02:46.836
Which automatically renames all ports and 
line labels along the entire signal path

00:02:46.860 --> 00:02:48.419
with all of its branches.

00:02:59.596 --> 00:03:02.235
You can start renaming 
at the selected line

00:03:03.647 --> 00:03:05.936
or at the source of the signal.

00:03:13.840 --> 00:03:17.278
So if you want to rename the whole signal
with all its branches

00:03:17.303 --> 00:03:19.303
starting at the source of the signal

00:03:19.365 --> 00:03:22.180
you don't have to manually navigate 
back to the source.

00:03:45.939 --> 00:03:47.939
When the signal enters a model reference,

00:03:49.741 --> 00:03:51.524
as in this example here,

00:03:52.087 --> 00:03:55.846
the action asks you whether to include 
the referenced model or not.

00:04:18.089 --> 00:04:19.384
If you choose yes

00:04:19.757 --> 00:04:23.428
the action also renames
the signal within the referenced model.

00:04:52.164 --> 00:04:55.506
You can also rename 
go to from tags on the signal path,

00:04:56.307 --> 00:04:58.307
or apply the tool's preferences

00:04:58.600 --> 00:05:01.022
to all blocks and lines 
on the signal path.

00:05:13.545 --> 00:05:15.596
Applying your predefined preferences

00:05:15.621 --> 00:05:17.085
allows you for example

00:05:17.268 --> 00:05:20.643
to enable signal label propagation
along the signal path,

00:05:21.135 --> 00:05:25.660
or to apply other customizations 
such as the color of port blocks.