public static UPSRatingInformationInfo UPSRatingInformation()
        {
            string[] source = UPSModule.WriteAndReadFromUPS("F").Replace('#', ' ').Replace("\r", " ").Replace(".", ",").Split(new char[] { ' ' });
            UPSRatingInformationInfo info = new UPSRatingInformationInfo();

            if (source.Count <string>() == 6)
            {
                info = new UPSRatingInformationInfo {
                    Success        = true,
                    RatingVoltage  = Convert.ToDouble(source[1]),
                    RatingCurrent  = Convert.ToDouble(source[2]),
                    BatteryVoltage = Convert.ToDouble(source[3]),
                    Frequency      = Convert.ToDouble(source[4])
                };
            }
            return(info);
        }
 public static UPSRatingInformationInfo UPSRatingInformation()
 {
     string[] source = UPSModule.WriteAndReadFromUPS("F").Replace('#', ' ').Replace("\r", " ").Replace(".", ",").Split(new char[] { ' ' });
     UPSRatingInformationInfo info = new UPSRatingInformationInfo();
     if (source.Count<string>() == 6)
     {
         info = new UPSRatingInformationInfo {
             Success = true,
             RatingVoltage = Convert.ToDouble(source[1]),
             RatingCurrent = Convert.ToDouble(source[2]),
             BatteryVoltage = Convert.ToDouble(source[3]),
             Frequency = Convert.ToDouble(source[4])
         };
     }
     return info;
 }