MATLAB XPC TARGET RELEASE NOTES Uživatelský manuál Strana 13

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 51
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 12
Dymola 2013 FD01 Release notes 13
Basic Functionality
A selection of all variables called “phi” in a model can be made using the following
annotation.
model Selection1
annotation (__Dymola_selections={
Selection(name="MySelection",
match={MatchVariable(name="*.phi")})});
end Selection1;
The selection feature can be activated by extending the model containing the selections
annotation:
model MyFullRobot
extends Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.fullRobot;
extends Selection1;
end MyFullRobot;
It results in the following content of the variable browser:
In addition to the selection, parameters and states are preselected.
Introducing New Names
The MatchVariable has an attribute newName. When newName is used, the variable is
included in a new subtree with the name of the selection. To use the same variable name as
before one can use
newName="%componentPath%%name%" or alternatively %path%.
model Selection2
annotation (__Dymola_selections={
Selection(name="MySelection",
match={MatchVariable(name="*.phi", newName="%path%")})});
end Selection2;
It results in the following additional content of the variable browser:
Zobrazit stránku 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 50 51

Komentáře k této Příručce

Žádné komentáře