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.
CreateAlias
Group | Alias |
---|---|
Description | Create 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 consists 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:
When using alias’ API functions, many syntax is available to refer to one specific alias. For example, an alias called “/myPartition/myAlias” can be referenced with the following syntax:
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:
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:
Note: any of the following kind of signals can be referenced: control signals, acquisition signals and dynamic signals. |
Required Control | Configuration control |
Usage | RtlabApi.CreateAlias(aliasName, referencePath) |
Input |
|
Output | None |
Exception |
|
Examples | |
Related Items | RemoveAlias, LoadAlias, GetValueByAlias, SetValueByAlias. |
Modules | import RtlabApi |
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