Ejemplo n.º 1
0
        /// <summary>
        /// This method returns and formats a single nibble from the meter
        /// </summary>
        /// <returns></returns>
        /// <remarks >
        /// MM/DD/YY who Version Issue# Description
        /// -------- --- ------- ------ ---------------------------------------
        /// 12/07/06 mah 8.00.00  N/A   Created
        /// </remarks>
        protected string GetBinaryValue(ref SCSDevice device)
        {
            String strValue;

            if (RegisterType == 0)
            {
                strValue = device.ReadNibble(device.TranslateDisplayAddress(this), true).ToString(CultureInfo.InvariantCulture);
            }
            else
            {
                strValue = device.ReadNibble(device.TranslateDisplayAddress(this), false).ToString(CultureInfo.InvariantCulture);
            }

            return(strValue);
        }