示例#1
0
 public bool writeAsmData(asmdata asm_data)
 {
     try
     {
         if (File.Exists("C:/jcdatatxt/" + asm_data.CarID + ".ini"))
         {
             File.Delete("C:/jcdatatxt/" + asm_data.CarID + ".ini");
         }
         ini.INIIO.WritePrivateProfileString("检测结果", "车辆ID", asm_data.CarID, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "相对湿度", asm_data.Sd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "环境温度", asm_data.Wd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "大气压力", asm_data.Dqy, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值1", asm_data.Hc5025, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值2", asm_data.Co5025, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值3", asm_data.No5025, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值4", asm_data.Hc2540, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值5", asm_data.Co2540, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值6", asm_data.No2540, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定1", asm_data.Hc5025pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定2", asm_data.Co5025pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定3", asm_data.No5025pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定4", asm_data.Hc2540pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定5", asm_data.Co2540pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定6", asm_data.No2540pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "裁决", asm_data.RESULT, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         return(true);
     }
     catch
     {
         return(false);
     }
 }
示例#2
0
        public asmdata readAsmData(string filePath)
        {
            asmdata asm_data = new asmdata();

            try
            {
                StringBuilder temp = new StringBuilder();
                temp.Length = 2048;
                if (File.Exists(filePath))
                {
                    ini.INIIO.GetPrivateProfileString("检测结果", "车辆ID", "", temp, 2048, filePath);
                    asm_data.CarID = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "相对湿度", "", temp, 2048, filePath);
                    asm_data.Sd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "环境温度", "", temp, 2048, filePath);
                    asm_data.Wd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "大气压力", "", temp, 2048, filePath);
                    asm_data.Dqy = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值1", "", temp, 2048, filePath);
                    asm_data.Hc5025 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值2", "", temp, 2048, filePath);
                    asm_data.Co5025 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值3", "", temp, 2048, filePath);
                    asm_data.No5025 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值4", "", temp, 2048, filePath);
                    asm_data.Hc2540 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值5", "", temp, 2048, filePath);
                    asm_data.Co2540 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值6", "", temp, 2048, filePath);
                    asm_data.No2540 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定1", "", temp, 2048, filePath);
                    asm_data.Hc5025pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定2", "", temp, 2048, filePath);
                    asm_data.Co5025pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定3", "", temp, 2048, filePath);
                    asm_data.No5025pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定4", "", temp, 2048, filePath);
                    asm_data.Hc2540pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定5", "", temp, 2048, filePath);
                    asm_data.Co2540pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定6", "", temp, 2048, filePath);
                    asm_data.No2540pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "裁决", "", temp, 2048, filePath);
                    asm_data.RESULT = temp.ToString();
                }
                else
                {
                    asm_data.CarID = "-1";
                }
                return(asm_data);
            }
            catch
            {
                asm_data.CarID = "-1";
                return(asm_data);
            }
        }
示例#3
0
        public asmdata readAsmData(string filePath)
        {
            asmdata asm_data = new asmdata();

            try
            {
                StringBuilder temp = new StringBuilder();
                temp.Length = 2048;
                if (File.Exists(filePath))
                {
                    ini.INIIO.GetPrivateProfileString("检测结果", "车辆ID", "", temp, 2048, filePath);
                    asm_data.CarID = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "相对湿度", "", temp, 2048, filePath);
                    asm_data.Sd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "环境温度", "", temp, 2048, filePath);
                    asm_data.Wd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "大气压力", "", temp, 2048, filePath);
                    asm_data.Dqy = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值1", "", temp, 2048, filePath);
                    asm_data.Cozl = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值2", "", temp, 2048, filePath);
                    asm_data.Hczl = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值3", "", temp, 2048, filePath);
                    asm_data.Noxzl = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "累计超差", "", temp, 2048, filePath);
                    asm_data.Ljcc = temp.ToString();
                }
                else
                {
                    asm_data.CarID = "-1";
                }
                return(asm_data);
            }
            catch
            {
                asm_data.CarID = "-1";
                return(asm_data);
            }
        }
示例#4
0
 public bool writeAsmData(asmdata asm_data)
 {
     try
     {
         if (File.Exists("C:/jcdatatxt/" + asm_data.CarID + ".ini"))
         {
             File.Delete("C:/jcdatatxt/" + asm_data.CarID + ".ini");
         }
         ini.INIIO.WritePrivateProfileString("检测结果", "车辆ID", asm_data.CarID, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "相对湿度", asm_data.Sd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "环境温度", asm_data.Wd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "大气压力", asm_data.Dqy, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值1", asm_data.Cozl, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值2", asm_data.Hczl, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值3", asm_data.Noxzl, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "累计超差", asm_data.Ljcc, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         return(true);
     }
     catch
     {
         return(false);
     }
 }
示例#5
0
        public asmdata readAsmData(string filePath)
        {
            asmdata asm_data = new asmdata();

            try
            {
                StringBuilder temp = new StringBuilder();
                temp.Length = 20480;
                if (File.Exists(filePath))
                {
                    ini.INIIO.GetPrivateProfileString("检测结果", "车辆ID", "", temp, 2048, filePath);
                    asm_data.CarID = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "相对湿度", "", temp, 2048, filePath);
                    asm_data.Sd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "环境温度", "", temp, 2048, filePath);
                    asm_data.Wd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "大气压力", "", temp, 2048, filePath);
                    asm_data.Dqy = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值1", "", temp, 2048, filePath);
                    asm_data.Hc5025 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值2", "", temp, 2048, filePath);
                    asm_data.Co5025 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值3", "", temp, 2048, filePath);
                    asm_data.No5025 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值4", "", temp, 2048, filePath);
                    asm_data.Hc2540 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值5", "", temp, 2048, filePath);
                    asm_data.Co2540 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数值6", "", temp, 2048, filePath);
                    asm_data.No2540 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定1", "", temp, 2048, filePath);
                    asm_data.Hc5025pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定2", "", temp, 2048, filePath);
                    asm_data.Co5025pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定3", "", temp, 2048, filePath);
                    asm_data.No5025pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定4", "", temp, 2048, filePath);
                    asm_data.Hc2540pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定5", "", temp, 2048, filePath);
                    asm_data.Co2540pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "判定6", "", temp, 2048, filePath);
                    asm_data.No2540pd = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据1", "", temp, 20480, filePath);
                    asm_data.DjccyString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据2", "", temp, 20480, filePath);
                    asm_data.SjxlString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据3", "", temp, 20480, filePath);
                    asm_data.HcclzString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据4", "", temp, 20480, filePath);
                    asm_data.NoclzString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据5", "", temp, 20480, filePath);
                    asm_data.CoclzString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据6", "", temp, 20480, filePath);
                    asm_data.Co2clzString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据7", "", temp, 20480, filePath);
                    asm_data.O2clzString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据8", "", temp, 20480, filePath);
                    asm_data.CsString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据9", "", temp, 20480, filePath);
                    asm_data.ZsString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据10", "", temp, 20480, filePath);
                    asm_data.XsxzxsString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据11", "", temp, 20480, filePath);
                    asm_data.SdxzxsString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据12", "", temp, 20480, filePath);
                    asm_data.JsglString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据13", "", temp, 20480, filePath);
                    asm_data.ZsglString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据14", "", temp, 20480, filePath);
                    asm_data.HjwdString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据15", "", temp, 20480, filePath);
                    asm_data.DqylString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据16", "", temp, 20480, filePath);
                    asm_data.XdsdString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据17", "", temp, 20480, filePath);
                    asm_data.YwString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据18", "", temp, 20480, filePath);
                    asm_data.JcztString = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据19", "", temp, 20480, filePath);
                    asm_data.Kstg5025 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "数据20", "", temp, 20480, filePath);
                    asm_data.Kstg2540 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "裁决", "", temp, 2048, filePath);
                    asm_data.RESULT = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "CrucialTime0", "", temp, 2048, filePath);
                    asm_data.CrucialTime0 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "CrucialTime1", "", temp, 2048, filePath);
                    asm_data.CrucialTime0 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "CrucialTime2", "", temp, 2048, filePath);
                    asm_data.CrucialTime0 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "CrucialTime3", "", temp, 2048, filePath);
                    asm_data.CrucialTime0 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "AmbientCO", "0", temp, 2048, filePath);
                    asm_data.AmbientCO = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "AmbientCO2", "0", temp, 2048, filePath);
                    asm_data.AmbientCO2 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "AmbientO2", "20.8", temp, 2048, filePath);
                    asm_data.AmbientO2 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "AmbientHC", "0", temp, 2048, filePath);
                    asm_data.AmbientHC = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "AmbientNO", "0", temp, 2048, filePath);
                    asm_data.AmbientNO = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "ResidualHC", "0", temp, 2048, filePath);
                    asm_data.ResidualHC = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "Is5024Done", "", temp, 2048, filePath);
                    asm_data.Is5024Done = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "Is2540Done", "", temp, 2048, filePath);
                    asm_data.Is2540Done = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "Rotary5024", "", temp, 2048, filePath);
                    asm_data.Rotary5024 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "Rotary2540", "", temp, 2048, filePath);
                    asm_data.Rotary2540 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "TestStartTime", "", temp, 2048, filePath);
                    asm_data.TestStartTime = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "TestEndTime", "", temp, 2048, filePath);
                    asm_data.TestEndTime = temp.ToString();

                    ini.INIIO.GetPrivateProfileString("检测结果", "背景CO", "0", temp, 2048, filePath);
                    asm_data.BackgroundCO = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "背景CO2", "0", temp, 2048, filePath);
                    asm_data.BackgroundCO2 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "背景HC", "0", temp, 2048, filePath);
                    asm_data.BackgroundHC = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "背景NO", "0", temp, 2048, filePath);
                    asm_data.BackgroundNO = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "背景O2", "20.8", temp, 2048, filePath);
                    asm_data.BackgroundO2 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "5025加载功率", "0", temp, 2048, filePath);
                    asm_data.Power5025 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "5025转速结果", "0", temp, 2048, filePath);
                    asm_data.Rev5025 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "5025lambda值", "0", temp, 2048, filePath);
                    asm_data.Lambda5025 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "2540加载功率", "0", temp, 2048, filePath);
                    asm_data.Power2540 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "2540转速结果", "0", temp, 2048, filePath);
                    asm_data.Rev2540 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "2540lambda值", "0", temp, 2048, filePath);
                    asm_data.Lambda2540 = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "5025工况", "", temp, 2048, filePath);
                    asm_data.Has5025Tested = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "2540工况", "0", temp, 2048, filePath);
                    asm_data.Has2540Tested = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "中止原因", "", temp, 2048, filePath);
                    asm_data.StopReason = temp.ToString();
                    ini.INIIO.GetPrivateProfileString("检测结果", "开始时间", "", temp, 2048, filePath);
                    asm_data.StartTime = temp.ToString();
                }
                else
                {
                    asm_data.CarID = "-1";
                }
                return(asm_data);
            }
            catch
            {
                asm_data.CarID = "-1";
                return(asm_data);
            }
        }
示例#6
0
 public bool writeAsmData(asmdata asm_data)
 {
     try
     {
         if (File.Exists("C:/jcdatatxt/" + asm_data.CarID + ".ini"))
         {
             File.Delete("C:/jcdatatxt/" + asm_data.CarID + ".ini");
         }
         ini.INIIO.WritePrivateProfileString("检测结果", "车辆ID", asm_data.CarID, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "相对湿度", asm_data.Sd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "环境温度", asm_data.Wd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "大气压力", asm_data.Dqy, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值1", asm_data.Hc5025, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值2", asm_data.Co5025, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值3", asm_data.No5025, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值4", asm_data.Hc2540, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值5", asm_data.Co2540, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数值6", asm_data.No2540, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定1", asm_data.Hc5025pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定2", asm_data.Co5025pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定3", asm_data.No5025pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定4", asm_data.Hc2540pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定5", asm_data.Co2540pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "判定6", asm_data.No2540pd, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据1", asm_data.DjccyString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据2", asm_data.SjxlString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据3", asm_data.HcclzString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据4", asm_data.NoclzString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据5", asm_data.CoclzString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据6", asm_data.Co2clzString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据7", asm_data.O2clzString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据8", asm_data.CsString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据9", asm_data.ZsString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据10", asm_data.XsxzxsString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据11", asm_data.SdxzxsString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据12", asm_data.JsglString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据13", asm_data.ZsglString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据14", asm_data.HjwdString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据15", asm_data.DqylString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据16", asm_data.XdsdString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据17", asm_data.YwString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据18", asm_data.JcztString, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据19", asm_data.Kstg5025, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "数据20", asm_data.Kstg2540, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "裁决", asm_data.RESULT, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "环境CO", asm_data.AmbientCO, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "环境CO2", asm_data.AmbientCO2, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "环境HC", asm_data.AmbientHC, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "环境NO", asm_data.AmbientNO, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "环境O2", asm_data.AmbientO2, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "背景CO", asm_data.BackgroundCO, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "背景CO2", asm_data.BackgroundCO2, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "背景HC", asm_data.BackgroundHC, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "背景NO", asm_data.BackgroundNO, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "背景O2", asm_data.BackgroundO2, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "残留HC", asm_data.ResidualHC, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "5025加载功率", asm_data.Power5025, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "5025转速结果", asm_data.Rev5025, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "5025lambda值", asm_data.Lambda5025, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "2540加载功率", asm_data.Power2540, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "2540转速结果", asm_data.Rev2540, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "2540lambda值", asm_data.Lambda2540, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "5025工况", asm_data.Has5025Tested, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "2540工况", asm_data.Has2540Tested, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "中止原因", asm_data.StopReason, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "开始时间", asm_data.StartTime, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         ini.INIIO.WritePrivateProfileString("检测结果", "裁决", asm_data.RESULT, "C:/jcdatatxt/" + asm_data.CarID + ".ini");
         return(true);
     }
     catch
     {
         return(false);
     }
 }