Ejemplo n.º 1
0
        public int Video_BR_Analysis()
        {
            int            count;
            int            x_start = 2, y_start = 1;
            bool           temp1 = false, temp2 = false, temp3 = false;
            List <string>  Video_Reslut = new List <string>();
            MIPI_Auto_Test Auto_Control = new MIPI_Auto_Test();

            Auto_Control.Excel_open(output_path, 1);
            Auto_Control.EXcel_sheet_select("Video mode RAW");
            Video_Reslut = Auto_Control.Read_Excel_Column(x_start, y_start);
            for (count = 0; count < Video_Reslut.Count; count++)
            {
                temp1 = temp2;
                temp2 = temp3;
                temp3 = (Video_Reslut[count] == "pass") ? false : true;
                if (temp1 & temp2 & temp3)
                {
                    Auto_Control.Close_Excel();
                    return(count - 2);
                }
            }
            Auto_Control.Close_Excel();
            return(count);
        }