Ejemplo n.º 1
0
        void  WaitForIdle(uint channelIndex)
        {
            mResult = 0;

            do
            {
                //pin_ptr<uint *> pinnedPtr =  (uint * )&mStatus;
                uint pR = 0;
                mResult = CCoarseController.SA_GetStatus_S((uint)mSystemIndex, (uint)channelIndex, ref pR);       // get mStatus
                if (mResult != CCoarseController.SA_OK & pR != CCoarseController.SA_OK)
                {
                    //Initialize();
                    MY_DEBUG("MoveWait GetStatus error!\n");
                }
                Thread.Sleep(3);
            }while (mStatus == CCoarseController.SA_TARGET_STATUS);        // until target reach.
        }