コード例 #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);
        }
コード例 #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);
     }
 }
コード例 #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);
     }
 }