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

            double[] dbVelocity = new double[3];
            dbVelocity[0] = dbvel;
            if (PICommand.VEL(m_iControllerId, axes, dbVelocity) == 0)
            {
                iError = PICommand.GetError(m_iControllerId);
                PICommand.TranslateError(iError, sErrorMessage, sErrorMessage.Capacity);
                sErrMsg = "ERROR From VEL " + iError.ToString() + ": " + sErrorMessage.ToString();
            }
        }