private void DetectorInitStart() { try { myUart.Pack_Debug_out(null, "[DeviceInit] Init Start"); myApi.SendDevicePause(); timerUartRecv.Interval = 1000 * 40; timerUartRecv.Enabled = true; } catch (Exception ex) { myUart.Pack_Debug_out(null, "Exception" + "[" + ex.ToString() + "]"); } }
private void buttonMoveStop_Click(object sender, EventArgs e) { try { myUart.Pack_Debug_out(null, "[5 Axis] Move Stop"); timerUartRecv.Enabled = false; myApi.SendDevicePause(); timerUartRecv.Interval = 1000 * 5; timerUartRecv.Enabled = true; } catch (Exception ex) { myUart.Pack_Debug_out(null, "Exception" + "[" + ex.ToString() + "]"); } }
private void ScanSetupStart() { try { myUart.Pack_Debug_out(null, "[Texture] Measure Start"); int PsiCount = (int)((PsiStopAngle[GroupIndex_Psi] - PsiStartAngle[GroupIndex_Psi]) / PsiStep[GroupIndex_Psi]) + 1; myApi.AnglePsi = new double[PsiCount]; for (int i = 0; i < PsiCount; i++) { myApi.AnglePsi[i] = PsiStartAngle[GroupIndex_Psi] + i * PsiStep[GroupIndex_Psi]; } myApi.SendDevicePause(); timerUartRecv.Interval = 1000 * 5; timerUartRecv.Enabled = true; } catch (Exception ex) { myUart.Pack_Debug_out(null, "Exception" + "[" + ex.ToString() + "]"); } }