Assigning Names to Module Instances

Each module instance must be assigned a name. This can be done in one of the following ways:

      The SetInstanceName() SetInstanceName function has been added to VTS. This function takes two parameters: Instance and Name. Instance is the object value of the module to which the name is to be assigned. Name is the text string name of the instance (please refer to SetInstanceName for detailed information on SetInstanceName()).

Note: With the inception of retained variables, all tags are now launched with the tag name being the instance name of the tag.

      The name parameter in the Thread function also sets the name of an instance. (All applications are launched in a separate thread with the application name being the thread/instance name.)

      If an instance name is not explicitly set, an instance name is inherited from the nearest parent's name. If none of the parents have an explicit name, the name "Default" is used.

Setting the instance name will cause all the Retained variables to be reloaded with the values for that instance. Instance names may be changed dynamically.