.

Controller.Disconnect

Disconnects the controller from a physical controller. This allows the controller object to later be connected to a different controller.

Version History

Introduced in MPX 2.0.

Result

Void

Visual Basic

Syntax

Sub Disconnect()

Sample Code

 
' Make sure we are disconnected before connecting to new controller
If controller.IsConnected Then
    controller.Disconnect()
End If

' Now connect to new controller
controller.Type     = Mpx.ControllerType.Remote
controller.Location = "192.168.1.74"
controller.Connect()


Sample Application

 

C#

Syntax

void Disconnect();

Sample Code

 
// Make sure we are disconnected before connecting to new controller
if (controller.IsConnected)
{
    controller.Disconnect();
}

// Now connect to new controller
controller.Type     = Mpx.ControllerType.Remote;
controller.Location = "192.168.1.74";
controller.Connect();
                 

 

 

See Also

Connect
IsConnected

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering