摘要: /// <summary> /// 获取串口称数据 /// </summary> /// <returns></returns> public static string GetWeight() { string weight = ""; SerialPort myPort = new SerialPort(); myPort.PortName = "COM2";//端口名 myPort.BaudRate = 2400; //波特率 myPort.DataBits = 8;//数据位 ... 阅读全文
posted @ 2012-07-05 08:26 幸福~伞 阅读(653) 评论(0) 推荐(0)