03 2017 档案

成功
摘要:byte[] RxBuffer; int length = 12; //结构体长度 void pt_DataReceived(object sender, PortDataReciveEventArgs e) { int loopIndex = 0; byte[] data = new byte[l 阅读全文

posted @ 2017-03-30 09:45 MILUMI 阅读(271) 评论(0) 推荐(0)

疯掉的拼接
摘要://if (flag) //{ bytReceiveArray = e.Data; // flag = false; // num = bytReceiveArray.Length / by.Length; // renum = bytReceiveArray.Length % by.Length; 阅读全文

posted @ 2017-03-28 20:32 MILUMI 阅读(155) 评论(0) 推荐(0)

解析发送
摘要://发送测试 dt = ParaToDataTableHelper.GetDataTable(); byte[] bytSendArray = new byte[1000]; //发送数据缓冲区 byte[] by = new byte[12]; //单条信息发送数组 int num = 5;//发 阅读全文

posted @ 2017-03-28 15:27 MILUMI 阅读(210) 评论(0) 推荐(0)

一条条发
摘要:comPort.Open(); //发送 dt = ParaToDataTableHelper.GetDataTable(); byte[] bytSendArray = new byte[100]; //发送数据缓冲区 SampRepInfor para = new SampRepInfor(); 阅读全文

posted @ 2017-03-28 15:26 MILUMI 阅读(220) 评论(0) 推荐(0)

com发送
摘要:comPort.Open(); //发送 dt = ParaToDataTableHelper.GetDataTable(); byte[] bytSendArray = new byte[100]; //发送数据缓冲区 SampRepInfor para = new SampRepInfor(); 阅读全文

posted @ 2017-03-28 10:29 MILUMI 阅读(320) 评论(0) 推荐(0)

字符串拼接
摘要:all = new byte[(by.Length + bytSendArray.Length)*20]; for (i = 0; i < 10; i++ ) { Buffer.BlockCopy(by, 0, all, i*(by.Length + bytSendArray.Length), by 阅读全文

posted @ 2017-03-28 10:25 MILUMI 阅读(137) 评论(0) 推荐(0)

COM
摘要:// byte[] bytSendArray = new byte[100]; //发送数据缓冲区 // for (int i = 0; i < 100; i++) // { // bytSendArray[i] = 0xAC; // } // //bytSendArray[1] = 0xAA; / 阅读全文

posted @ 2017-03-27 10:59 MILUMI 阅读(238) 评论(0) 推荐(0)

笨方法的combox级联
摘要:private void SuckRegion_SelectionChanged(object sender, SelectionChangedEventArgs e) { //var para = ViewModelHelper.SampArmMainWindowViewModel.SampArm 阅读全文

posted @ 2017-03-22 18:58 MILUMI 阅读(310) 评论(0) 推荐(0)

导航