Beispiel #1
0
 public void ReadLog(String logFilename)
 {
     try
     {
         GecoSiLogger.OpenOutStreamLogger();
         Start();
         driver = new SiDriver(new LogFilePort(logFilename), this).Start();
     }
     catch (Exception e)
     {
         e.PrintStackTrace();
     }
 }
Beispiel #2
0
 public void Connect(String portname)
 {
     try
     {
         GecoSiLogger.Open("######");
         GecoSiLogger.LogTime("Start " + portname);
         Start();
         var port = new SerialPort(portname, 2000);
         port.Open();
         driver = new SiDriver(new SerialComPort(port), this).Start();
     }
     catch (Exception e)
     {
         siListener.Notify(CommStatus.FatalError, "Port in use");
     }
 }