コード例 #1
0
ファイル: FormDeviceInit.cs プロジェクト: weiqizhang001/xrd
 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() + "]");
     }
 }
コード例 #2
0
        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() + "]");
            }
        }
コード例 #3
0
        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() + "]");
            }
        }