| | |
| | | // ON_BN_CLICKED(IDC_BUTTON_CLEAR_STAT, &CMTerm2CommDevView::OnBnClickedButtonClearStat)
|
| | | // ON_BN_CLICKED(IDC_BUTTON_READ, &CMTerm2CommDevView::OnBnClickedButtonRead)
|
| | | // ON_BN_CLICKED(IDC_BUTTON11, &CMTerm2CommDevView::OnBnClickedButton11)
|
| | | // ON_BN_CLICKED(IDC_BUTTON12, &CMTerm2CommDevView::OnBnClickedButton12)
|
| | | // ON_BN_CLICKED(IDC_BUTTON13, &CMTerm2CommDevView::OnBnClickedButton13)
|
| | | ON_BN_CLICKED(IDC_BUTTON12, &CMTerm2CommDevView::OnBnClickedButton12)
|
| | | ON_BN_CLICKED(IDC_BUTTON13, &CMTerm2CommDevView::OnBnClickedButton13)
|
| | | END_MESSAGE_MAP()
|
| | |
|
| | |
|
| | |
| | |
|
| | | ///*
|
| | | //WY
|
| | | if (nStep == 1)
|
| | | if (nStep == 0)
|
| | | {
|
| | | DataType = pDoc->MyKLink1.KLDataTypeWY;
|
| | | DCount = 16;
|
| | |
| | | }
|
| | | ///*
|
| | | //WR
|
| | | if (nStep==2)
|
| | | if (nStep==0)
|
| | | {
|
| | | DataType = pDoc->MyKLink1.KLDataTypeWR;
|
| | | DCount = 32;
|
| | |
| | | }
|
| | | //*/
|
| | | //DT
|
| | | if (nStep == 3)
|
| | | if (nStep == 1)
|
| | | {
|
| | | DataType = pDoc->MyKLink1.KLDataTypeDT;
|
| | | DCount = 96;
|
| | |
| | | }
|
| | | int ByteAddr = 0;
|
| | | //SDT
|
| | | if (nStep >= 4 && nStep <= 7)
|
| | | if (nStep >= 2 && nStep <= 4)
|
| | | {
|
| | | int nBlock = nStep - 4;
|
| | | int nBlock = nStep - 2;
|
| | | DataType = pDoc->MyKLink1.KLDataTypeSDT;
|
| | | ByteAddr = nBlock * 128;
|
| | | DCount = 128;
|
| | |
| | |
|
| | | nStep++;
|
| | | // if (nStep == 2) { nStep = 3; }
|
| | | if (nStep > 7) { nStep = 0; }
|
| | | if (nStep > 4) { nStep = 0; }
|
| | | if (nThisFailCount == 0)
|
| | | {
|
| | | MonitorSuccessCount++;
|
| | |
| | | int r = pDoc->myHvSerialPort1.Close();
|
| | | s1.Format(_T("%d %s"), r, pDoc->myHvSerialPort1.m_strResult);
|
| | | SysLog(s1);
|
| | |
|
| | | double REPO_RATE(0.0);
|
| | | REPO_RATE = _tstof(_T(""));
|
| | | s1.Format(_T("RAPO_RATE = %f \n"), REPO_RATE);
|
| | | SysLog(s1);
|
| | |
|
| | |
|
| | | }
|
| | |
|