public void PhiMeasureFinish() { myUart.Pack_Debug_out(null, "[Texture] PhiMeasureFinish,Psi index=" + MeasureIndex_Psi.ToString() + "total=" + myApi.AnglePsi.Length.ToString() + "Group index=" + GroupIndex_Psi.ToString() + "total=" + PsiStartAngle.Length.ToString()); if (MeasureIndex_Psi < myApi.AnglePsi.Length - 1) { MeasureIndex_Psi++; myUart.Pack_Debug_out(null, "[Texture] next Psi,index=" + MeasureIndex_Psi.ToString()); myApi.SendAngleA(myApi.AnglePsi[MeasureIndex_Psi]); timerUartRecv.Interval = 1000 * 10; timerUartRecv.Enabled = true; } else { chartRealTime.Series.Clear(); myApi.SaveTxt(dtprint, textBoxSampleName.Text, SampleSn[GroupIndex_Psi].ToString(), FaceExp[GroupIndex_Psi].ToString(), BM[GroupIndex_Psi].ToString()); dtprint.Clear(); MeasureIndex_Psi = 0; if ((GroupIndex_Psi < PsiStartAngle.Length - 1) && (checkBoxExpert.Checked == true)) { GroupIndex_Psi++; myUart.Pack_Debug_out(null, "[Texture] next Group, index=" + GroupIndex_Psi.ToString()); ScanSetupStart(); } else { myUart.Pack_Debug_out(null, "[Texture] measure end"); myApi.SendCloseShutter(); timerUartRecv.Interval = 1000 * 5; timerUartRecv.Enabled = true; } //// 更新应力计算结果 //StressViewUpdate(myApi.AnglePsi.Length); //// 生成RSC文件 //ToolStripMenuItemRSC_Click(this, null); //// 生成xls文件 //ChartFittingImageName = myApi.RecvDataFileNameArray[0].Replace("txt", "bmp"); //ChartFittingExport(ChartFittingImageName); ////ToolStripMenuItemMsExcel_Click(this, null); //if (1 == FiveAxisInUse) //{ // if (MeasureIndex_XYZ < myApi.AngleBeta.Length - 1) // { // MeasureIndex_XYZ++; // myApi.SendAngleABXYZ(MeasureIndex_XYZ, MeasureIndex_Psi); // timerUartRecv.Interval = 1000 * 60; // timerUartRecv.Enabled = true; // } // else // { // myApi.SendCloseShutter(); // timerUartRecv.Interval = 1000 * 5; // timerUartRecv.Enabled = true; // } //} //else //{ // myApi.SendCloseShutter(); // timerUartRecv.Interval = 1000 * 5; // timerUartRecv.Enabled = true; //} } }