Esempio n. 1
0
        public void GetAxisName(ref string axes, ref string sErrMsg)
        {
            StringBuilder sAxes         = new StringBuilder(1024);
            StringBuilder sErrorMessage = new StringBuilder(1024);
            int           iError;


            /////////////////////////////////////////
            // Get the name of the connected axis. //
            /////////////////////////////////////////
            if (PICommand.qSAI(m_iControllerId, sAxes, sAxes.Capacity) == 0)
            {
                iError = PICommand.GetError(m_iControllerId);
                PICommand.TranslateError(iError, sErrorMessage, sErrorMessage.Capacity);
                sErrMsg = "ERROR From SAI? " + iError.ToString() + ": " + sErrorMessage.ToString();
                return;
            }
            axes = sAxes.ToString();
        }