Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Opal_Create_Alias

Creates a new alias which is used as a reference to an absolute path of a parameter or signal. The alias is appended to the current list of aliases.


The alias's name is a no case-sensitive string that should be unique. It should not contains the following special character: asterisk (*) and question mark (?). It consist of partitions and a name, or a name only. A partition is an organizational unit, or container, used to organize aliases into a hierarchical structure. Partitions and name of the alias are separated by slash (/) characters.


The topmost partition in any partition is called the root partition. A partition that is below another partition is called a subpartition. A partition above a subpartition is called the parent partition. The root partition is a slash (/) characters.


Below are examples of valid alias' name:

  • myAliasName
  • /myPartition/myAliasName
  • /myRootPartition/myChildrenPartition/myAliasName

When using alias API functions, many syntaxes is available to refer to one specific alias.

For example, an alias called /myPartition/myAlias can be referenced with the following syntax:

  • /myPartition/myAlias,
  • myPartition/myAlias or
  • myAlias (required a unique name)



Note: the last syntax is only available if no other partitions contain an alias with the name myAlias.



With Matlab/Simulink, the absolute path of a parameter is the concatenation of the path of the block that contains the parameter and the name of the parameter.

Below are examples of parameter's paths of a SineWave block:

  • Subsystem/SineWave/Amplitude
  • Subsystem/SineWave/Frequency

By analogy, with Matlab/Simulink, the absolute path of a signal is the concatenation of the path of the block that outputs the signal and the signal's label. If the label is empty in the Simulink model, the port's name that outputs the signal is used instead of the label.

Below are examples of paths for a signal at the outport 1 of a SineWave block:

  • SubSystem/SineWave/MySignalLabel, or
  • SubSystem/SineWave/Port1



Note: any of the following kind of signals can be referenced: control signals, acquisition signals, and dynamic signals.



Required Control

System Control

See also

Opal_Remove_Alias, Opal_Rename_Alias

Opal_Create_Alias


OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter