Exemplo n.º 1
0
        public bool ComSetting(string CommAddr, ref SL_Comm_Util Comm)
        {
            bool ret = false;

            ElecsComm = new SL_Comm_Util(CommAddr, "115200", "8", "None", "1");
            if (ElecsComm.CommOpen())
            {
                Comm = ElecsComm; ret = true;
            }
            return(ret);
        }
Exemplo n.º 2
0
 public bool Open(string CommAddr, string Baudrate, string Parity, string DataBit, string StopBit)
 {
     ElecsComm = new SL_Comm_Util(CommAddr, Baudrate, DataBit, Parity, StopBit);
     if (ElecsComm.CommOpen())
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 3
0
 public bool Open(string CommAddr)
 {
     ElecsComm = new SL_Comm_Util(CommAddr, "115200", "8", "None", "1");  //20170724
     if (ElecsComm.CommOpen())
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }