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); }
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); } }
public bool Open(string CommAddr) { ElecsComm = new SL_Comm_Util(CommAddr, "115200", "8", "None", "1"); //20170724 if (ElecsComm.CommOpen()) { return(true); } else { return(false); } }