| SourceCode/Bond/SGMeasurement/SGMeasurement.vcxproj.user | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SourceCode/Bond/SGMeasurement/SGMeasurementDlg.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
SourceCode/Bond/SGMeasurement/SGMeasurement.vcxproj.user
@@ -4,7 +4,7 @@ <RESOURCE_FILE>SGMeasurement.rc</RESOURCE_FILE> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <DebuggerFlavor>WindowsRemoteDebugger</DebuggerFlavor> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <RemoteDebuggerCommand>\\DESKTOP-IODBVIQ\SGMeasurement\$(ProjectName).exe</RemoteDebuggerCommand> SourceCode/Bond/SGMeasurement/SGMeasurementDlg.cpp
@@ -994,11 +994,21 @@ RC nRet = SGIF_GetCalcDataALL(DeviceID, value); if (nRet == RC_OK) { for (int i = 0; i < 4; ++i) { m_dOutValues[i] = value[i].Value; } double dNew = value[i].Value; if (fabs(m_dOutValues[i] - dNew) > 1e-6) { m_dOutValues[i] = dNew; // 更新绑定控件 UpdateData(FALSE); CString str; str.Format(_T("%.3f"), dNew); switch (i) { case 0: GetDlgItem(IDC_EDIT_OUT1)->SetWindowText(str); break; case 1: GetDlgItem(IDC_EDIT_OUT2)->SetWindowText(str); break; case 2: GetDlgItem(IDC_EDIT_OUT3)->SetWindowText(str); break; case 3: GetDlgItem(IDC_EDIT_OUT4)->SetWindowText(str); break; } } } } else { CString strError;