Technical data

Compiler Directives
2-43
The System[Sysidx] scope is added to the search list, and it is searched before
anything else.
Figure 2-5: Modifying the Search Sequence
Using this technique makes it simpler to access embedded definitions. For
example, to refer to the system name without using
%with, you would have to
use:
CompiledModel.System[Sysidx].Name
Using the pair of %with statements as in the previous example, you can refer
to the system name simply by:
Name
Global Pool
%assign a = …
%assign b = …
Top-Level RTW Pool
CompiledModel {
}
%with CompiledModel.
System[Sysidx]
1
2
3