Exemple #1
0
        private string I7565DNM_READIO(ref string value)
        {
            string   result     = "I7565DNM_READIO ERROR";
            string   device     = "";
            string   io         = "";
            I7565DNM deviceCtrl = null;

            try
            {
                if (!checkI7565DNM(ref result, ref device, ref io, ref deviceCtrl))
                {
                    return(result);
                }
                uint s = deviceCtrl.I7565DNM_READIO(io);
                value  = s.ToString();
                result = deviceCtrl.errorCode;
                return(result);
            }
            catch (Exception e)
            {
                logger.Error(e.StackTrace);
                return(result);
            }
        }
Exemple #2
0
        private string I7565DNM_READIOS(ref string values)
        {
            string   result     = "I7565DNM_READIOS ERROR";
            string   device     = "";
            string   ios        = "";
            I7565DNM deviceCtrl = null;

            if (!checkI7565DNM(ref result, ref device, ref ios, ref deviceCtrl))
            {
                return(result);
            }
            string[] ioAry = ios.Split(';');
            foreach (string io in ioAry)
            {
                uint s = deviceCtrl.I7565DNM_READIO(io);
                values = values + s.ToString();
                result = deviceCtrl.errorCode;
                if (!result.Equals(""))
                {
                    return(result);
                }
            }
            return(result);
        }