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:
|
|
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:
|
|
| |
Required Control | Configuration control |
---|---|
Usage | RtlabApi.CreateAlias(aliasName, referencePath) |
Input |
|
Output | None |
Exception |
|
| |
Examples | |
---|---|
Related Items | RemoveAlias, LoadAlias, GetValueByAlias, SetValueByAlias. |
Modules | import RtlabApi |