Click or drag to resize

Controller Constructor

Initializes a new instance of the Controller class, which is used to access the different domains of the controller.

Namespace:  ABB.Robotics.Controllers
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public Controller()
Exceptions
ExceptionCondition
GeneralExceptionA General Exception has occurred.
Remarks
You must call the Dispose(Boolean) method to avoid a memory leak when the instance is no longer needed. A good rule is to create only one instance of this class and use it throughout your application.
Examples
This example creates a Controller instance in the constructor of the application. At places where a Controller is needed a reference to the instance created in the constructor is used.
private Controller myControllerRef = null;
   public TpsViewRefDoc()
{
       // 
       // Required for Windows Form Designer support
       // 
       InitializeComponent();

       // Create Controller instance, that can be used all over my 
       // application
       myControllerRef = new Controller();

       // Init rapid data, provide reference to Controller
       this.InitRapidData(myControllerRef);
}
See Also