Parameterizing Operators and Links
|
Case Sensitivity and Slashes |
|
|
|
The following commands are case sensitive. Use forward slashes to indicate pathes. |
|
Parameter Notation Syntax |
|
|
|
The notation used below for describing the parameters of individual commands is based on the Wirth Syntax Notation (WSN) :
|
|
Command |
Parameters |
Description |
|---|---|---|
|
|
FullModuleName ParameterName [FieldIndex] Value {OtherValues} |
Command for setting a module parameter. Attention: Use this command only for setting an existent parameter to a specific value. You cannot use this command for creating metadata parameters. (For creating new metadata parameters, use command SetParamString instead.) Example:
Field parameters: If you refer to a field parameter, you need to specify parameter FieldIndex before specifying a Value. Only when referring to field parameters, you can specify further values after Value.
Command SetModuleParam has the same functionality as (depending on the parameter you use) the commands SetParamInt, SetParamFloat, SetParamEnum, SetParamString, SetParamIntField, and SetParamFloatField. However, these commands are for export only. Use SetModuleParam when you are writing scripts manually. Exception: If you want to add a new metadata parameter, you need to use SetParamString when writing scripts manually. See definition of command SetParamString. |
|
|
FullModuleName ParameterName PropertyName PropertyValue {OtherPropertyValue}
|
Command for changing the properties of a module parameter. This command may replace SetModuleParamType. . Single property names may have multiple values. You can change th following properties: access: You can list several flags here as value:
position: Definition of an integer value for PropertyValue, which defines the position of the parameter in a list of parameters in a hierarchical box. |
|
|
FullModuleName ParameterName Value
|
Used for TCL export only. Command for setting an integer parameter. Attention: This command is used in TCL export from VisualApplets to a *.tcl file. Don’t use this command in scripts you write manually. Use command SetModuleParam instead. |
|
|
FullModuleName ParameterName Value
|
Used for TCL export only. Command for setting a floating point parameter. Attention: This command is used in TCL export from VisualApplets to a *.tcl file. Don’t use this command in scripts you write manually. Use command SetModuleParam instead.
|
|
|
FullModuleName ParameterName Value |
Used for TCL export only. Command for setting an addressed enum parameter. Value is the string of the enum value. Example (for an instance of operator SetSignalStatus that is placed on level Process0 and has the name SetSigSt):
Sets parameter Mode of SetSigSt that is located in Process0 to High. Attention: This command is used in TCL export from VisualApplets to a *.tcl file. Don’t use this command in scripts you write manually. Use command SetModuleParam instead. |
|
|
FullModuleName ParameterName Value
|
Use this command to define metadata parameters for a specific module. Attention: Don’t use this command for setting an existent module parameter to a new value, even if the module parameter is of type string. For setting an existent module parameter to a new value, always use command SetModuleParam in your scripts. In TCL export files, command SetParamString is used for setting any string parameter, even if it is an existent module parameter. However, this is not practicable in scripts you write manually. |
|
FullModuleName ParameterName Index Value {OtherValues}
|
Used for TCL export only. Command for setting a field parameter of type integer. Setting field Index to Value1, the following fields are populated with the following values in the given order. Attention: This command is used in TCL export from VisualApplets to a *.tcl file. Don’t use this command in scripts you write manually. Use command SetModuleParam instead.
|
|
|
|
FullModuleName ParameterName Index Value {OtherValues} |
Used for TCL export only. Command for setting a field parameter of type float. Setting field Index to Value1, the following fields are populated with the following values in the given order. Attention: This command is used in TCL export from VisualApplets to a *.tcl file. Don’t use this command in scripts you write manually. Use command SetModuleParam instead.
|
|
|
FullModuleName ParameterName
|
Used for TCL export only. Command for making a parameter static. If a parameter can be static as well as dynamic, in most cases the parameter is set to dynamic per default. Use this command to set such a parameter to static. Attention: This command is used in TCL export from VisualApplets to a *.tcl file. Don’t use this command in scripts you write manually. Use command SetModuleParamType instead.
|
|
|
FullModuleName ParameterName |
Used for TCL export only. Command for making a parameter dynamic. Works only if the parameter can be dynamic at all. Attention: This command is used in TCL export from VisualApplets to a *.tcl file. Don’t use this command in scripts you write manually. Use command SetModuleParamType instead. |
|
|
FullModuleName ParameterName TypeFlag {OtherTypeFlags}
|
Command for changing the type of a parameter. The following type flags are available:
Dynamic and Static mutually exclude each other. When using type flags Dynamic or Static, this comand has the same functionality as the commands SetParamStatic and SetParamDynamic. However, use SetModuleParamType when you are writing scripts manually. |
|
|
FullModuleName PortName ParameterName Value { OtherParameterName OtherParameterValue }
|
Command for configuring the format of links. The link is identified via the connection node (port) of a module. The names of the link format parameters are the same as in the VisualApplets GUI. Attention: When writing your TCL script manually, the command is only applicable for parameters that can be changed. If you try to set a link parameter that cannot be changed, you will get an according error message:
|
|
|
FullModuleName ResourceName [Index] NewMapping |
Command for changing the mapping of resources to a module. The resource ResourceName will be mapped to the new index NewMapping. In case the module allocates multiple resources of the same type, use the optional parameter Index for selecting the resource.
|
|
FullModuleName PortName [Number] |
Command for creating a module BRANCH. The new branch module is inserted on the link that goes out of module FullModuleName on port NodeName. The new branch module has Number outgoing ports. If you don’t use the optional parameter Number, the new branch module has two out ports. The return value of function SplitLink is the FullModuleName of the new branch module (full hierarchical path to the module, including the module name). |
