Exemplo n.º 1
0
 public void DISCONNECT()
 {
     //TPLOCK = 0;
     status = UDSDemo.XL_DeactivateChannel(portHandle, accessMask);
     Console.WriteLine("Deactivate Channel  :" + status + Environment.NewLine);
     if (status != XLDefine.XL_Status.XL_SUCCESS)
     {
         PrintFunctionError();
     }
     Console.ForegroundColor = ConsoleColor.Red;
     Console.WriteLine("Device status: Device disconnected ");
     Console.ForegroundColor = ConsoleColor.White;
     rxThread.Abort(); // CHECK
 }