GetInstance

Description:              This function returns the object value of a module instance.

Warning:               For use by advanced programmers only.  Effective use of this function requires a thorough understanding of VTS programming. 

Returns:                    Object

Usage:                       Script

Format:                      GetInstance(Module, Index)

Parameters:             Module     { Module }  { required }  { no default }

                                              Any expression for the code value of the module.

                                    Index     { numeric }  { required }  { no default }

                                              Any numeric expression indicating which instance of Module to get. The most recently started instance is instance 0.

Comments:               If the number requested is larger than the total number of instances for the module, the return value will be invalid.

See Also:

FindVariable | CalledInstances | NumInstances