Пример #1
0
        bool IPIZ.MoveToRelativePos(double dbPos)
        {
            bool          ret           = true;
            string        sErrMsg       = string.Empty;
            StringBuilder sErrorMessage = new StringBuilder(1024);
            int           iError;

            double[] dPos = new double[3];
            dPos[0] = dbPos;
            if (PI_GCS.MVR(m_iControllerId, m_sAxisName, dPos) == 0)
            {
                iError = PI_GCS.GetError(m_iControllerId);
                PI_GCS.TranslateError(iError, sErrorMessage, sErrorMessage.Capacity);
                sErrMsg = "Error From MVR " + iError.ToString() + ": " + sErrorMessage.ToString();
                ret     = false;
            }
            return(ret);
        }