Ejemplo n.º 1
0
 public void WriteProfile()
 {
     ini.WriteString("fixture", "portname", this.FixturePortName);
     ini.WriteString("lcp3005", "portname", this.LCP3005PortName);
     ini.WriteDouble("calibration", "red_weight", this.RedWeight);
     ini.WriteDouble("calibration", "green_weight", this.GreenWeight);
     ini.WriteDouble("calibration", "blue_weight", this.BlueWeight);
     ini.WriteString("shopfloor", "is_need_check", this.IsOnlineShopfloor.ToString());
     ini.WriteString("x2params", "is_need_scan_serialnumber", this.IsScanSerialNumber.ToString());
     ini.WriteString("x2params", "is_simulation_mode", this.IsSimulation.ToString());
     ini.WriteString("x2params", "station", this.Station);
     //ini.WriteString("x2params", "product_type", this.ProductType);
     ini.WriteString("x2params", "testmode", this.TestMode);
     ini.WriteString("x2params", "scriptname", this.ScriptName);
 }
Ejemplo n.º 2
0
        public void WriteProfile()
        {
            string[] names = { "white", "black", "red", "green", "blue" };

            foreach (string panelName in names)
            {
                int           index = 0;
                List <double> data  = param[panelName];

                if (data.Count != 7)
                {
                    data = new List <double>(7);
                    data.AddRange(new double[] { 0, 0, 0, 0, 0, 0, 0 });
                }

                if (panelName == "white" || panelName == "black")
                {
                    ini.WriteDouble(panelName, "luminance_upper", data[index++]);
                    ini.WriteDouble(panelName, "luminance_lower", data[index++]);
                    ini.WriteDouble(panelName, "uniformity5_upper", data[index++]);
                    ini.WriteDouble(panelName, "uniformity5_lower", data[index++]);
                    ini.WriteDouble(panelName, "mura_upper", data[index++]);
                    ini.WriteDouble(panelName, "mura_lower", data[index++]);
                }
                else
                {
                    ini.WriteDouble(panelName, "CIE1931x_upper", data[index++]);
                    ini.WriteDouble(panelName, "CIE1931x_lower", data[index++]);
                    ini.WriteDouble(panelName, "CIE1931y_upper", data[index++]);
                    ini.WriteDouble(panelName, "CIE1931y_lower", data[index++]);
                    ini.WriteDouble(panelName, "CIE1931z_upper", data[index++]);
                    ini.WriteDouble(panelName, "CIE1931z_lower", data[index++]);
                }
                ini.WriteDouble(panelName, "exposure", data[index++]);
            }
        }