| | |
| | | // s1.AppendFormat(_T("Total S %8d \r\nTotal R %8d \r\n"), MySerialCom1.TotalSendBytes, MySerialCom1.TotalRecvBytes);
|
| | | s1 += intToString(pDoc->myHvSerialPort1.TotalRecvBytes) + _T("\r\n");
|
| | | // stepCount++;
|
| | | static double LastCalTime = GetTimemS();
|
| | |
|
| | | static double LastCalTime = 0;
|
| | | double thisTime = GetTimemS();
|
| | | if (thisTime - LastCalTime > 500)
|
| | | {
|
| | |
| | | }
|
| | | s2.Append(_T("\r\n"));
|
| | | }
|
| | | s2.Append(_T("\r\n"));
|
| | |
|
| | | for (int i = 8; i < (nCount + 15) / 16; i++)
|
| | | {
|
| | | s2.AppendFormat(_T("%3X: "), i * 16);
|
| | | for (int j = 0; j < 16; j++)
|
| | | {
|
| | | s2.AppendFormat(_T("%02X"), pDoc->MyKLink1.MEM.SDB[i * 16 + j]);
|
| | | if (j == 7) { s2.Append(_T(" ")); }
|
| | | else { s2.Append(_T(" ")); }
|
| | | }
|
| | | s2.Append(_T("\r\n"));
|
| | | }
|
| | |
|
| | | // s2.AppendFormat(_T("%d\r\n"), pDoc->MyKLink1.MEM.SDD[5]);
|
| | |
|
| | | nCount = 32;
|
| | |
| | | nStep++;
|
| | | // if (nStep == 2) { nStep = 3; }
|
| | | if (nStep > 4) { nStep = 0; }
|
| | | MonitorSuccessCount += nThisSuccessCount;
|
| | | MonitorFailCount += nThisFailCount;
|
| | | if (nThisFailCount == 0)
|
| | | {
|
| | | MonitorSuccessCount++;
|
| | |
|
| | |
|
| | | }
|
| | | else
|
| | | {
|
| | | MonitorFailCount++;
|
| | |
|
| | | }
|
| | | }
|
| | | return 0;
|