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) :

  • Parameter names in curly brackets denote that you can specify no value, one value, or multiple values for this parameter in the command line.
  • Parameter names in square brackets denote optional parameters.
   

Command

Parameters

Description

SetModuleParam

 

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:

SetModuleParam Process0/HierchBox1/module6 XLength 512

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.

Example for editing field parameters:

Before entering the command:

Entering the command

SetModuleParam Process0/module3 LUTcontent 4 12 13 14

has the following result:

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.

SetModuleParamProperty

 

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:

  • write: If the parameter can be switched in this direction, (for instance in the operator LinkParamTranslator), it becomes a write-parameter.

  • read: If the parameter can be switched in this direction, (for instance in the operator LinkParamTranslator), it becomes a read-parameter.

  • dynamic: If the parameter can be either dynamic or static, it hereby becomes a dynamic parameter (this replaces the command SetParamDynamic).

  • static: If the parameter can be either dynamic or static, it hereby becomes a static parameter (this replaces the command SetParamStatic).

position: Definition of an integer value for PropertyValue, which defines the position of the parameter in a list of parameters in a hierarchical box.

SetParamInt

 

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.

SetParamFloat

 

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.

 

SetParamEnum

 

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):

SetParamEnum Process0/SetSigSt Mode High

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.

SetParamString

 

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.

SetParamIntField

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.

 

SetParamFloatField

 

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.

 

SetParamStatic

 

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.

 

SetParamDynamic

 

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.

SetModuleParamType

 

FullModuleName

ParameterName

TypeFlag

{OtherTypeFlags}

 

Command for changing the type of a parameter. The following type flags are available:

  • Dynamic: If the parameter can be dynamic or static, this flag makes the parameter a dynamic parameter (replaces command SetParamStatic).
  • Static: If the parameter can dynamic or static, this flag makes the parameter a static parameter (replaces command SetParamStatic).

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.

SetLinkParam

 

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:

 

SetResourceMapping

 

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.

 

SplitLink

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).