예제 #1
0
        public void cnt_test2()
        {
            from_delegate formcontrol = new from_delegate();

            for (int i = 0; i < 100; i++)
            {
                formcontrol.Settextbox(textbox_hact, i.ToString());
                Thread.Sleep(50);
            }
        }
예제 #2
0
        public void video_auto(MIPI mipi, double target_symbol_rate)
        {
            from_delegate controlform = new from_delegate();

            int[] porch = mipi.get_porch_setting();
            while (mipi.cnt_symbolrate() < target_symbol_rate)
            {
                mipi.set_porch(porch[0] + 8, porch[1] + 8, porch[2] + 8, porch[3], porch[4], porch[5], porch[6], porch[7]);
                Thread.Sleep(500);
            }
        }
예제 #3
0
        public void cnt_test(object o)
        {
            int           seq_number  = Convert.ToInt32(o);
            from_delegate formcontrol = new from_delegate();

            for (int i = Convert.ToInt32(auto_seq_arg[seq_number, 0]); i < Convert.ToInt32(auto_seq_arg[seq_number, 1]); i++)
            {
                formcontrol.Settextbox(textBox1, i.ToString());
                Thread.Sleep(50);
            }
        }
예제 #4
0
        ///
        ///
        /// 將MIPI class內容輸出到textbox
        ///
        ///

        private void mipi_out_form()
        {
            from_delegate controlform = new from_delegate();

            int[]  porch         = dut.get_porch_setting();
            bool[] blanking_type = dut.get_blanking_type();
            controlform.Settextbox(textbox_hbp, porch[0].ToString());
            controlform.Settextbox(textbox_hfp, porch[1].ToString());
            controlform.Settextbox(textbox_hsa, porch[2].ToString());
            controlform.Settextbox(textbox_hact, porch[3].ToString());
            controlform.Settextbox(textbox_vbp, porch[4].ToString());
            controlform.Settextbox(textbox_vfp, porch[5].ToString());
            controlform.Settextbox(textbox_vsa, porch[6].ToString());
            controlform.Settextbox(textbox_vact, porch[7].ToString());
            controlform.Settextbox(textbox_symrate, (dut.get_symbolrate() / 1E6).ToString());
            controlform.Settextbox(textbox_framerate, dut.get_framerate().ToString());
            if (blanking_type[0])
            {
                controlform.Settextbox(textbox_hsa, Color.Aqua);
            }
            else
            {
                controlform.Settextbox(textbox_hsa, Color.DodgerBlue);
            }
            if (blanking_type[0])
            {
                controlform.Settextbox(textbox_hbp, Color.Aqua);
            }
            else
            {
                controlform.Settextbox(textbox_hbp, Color.DodgerBlue);
            }
            if (blanking_type[0])
            {
                controlform.Settextbox(textbox_hfp, Color.Aqua);
            }
            else
            {
                controlform.Settextbox(textbox_hfp, Color.DodgerBlue);
            }
            if (blanking_type[0])
            {
                controlform.Settextbox(textbox_vsa, Color.Aqua);
                controlform.Settextbox(textbox_vbp, Color.Aqua);
                controlform.Settextbox(textbox_vfp, Color.Aqua);
            }
            else
            {
                controlform.Settextbox(textbox_vsa, Color.DodgerBlue);
                controlform.Settextbox(textbox_vbp, Color.DodgerBlue);
                controlform.Settextbox(textbox_vfp, Color.DodgerBlue);
            }
        }
예제 #5
0
        private void callback_video_setting()
        {
            from_delegate controlform = new from_delegate();

            for (int i = 0; i < 3; i++)
            {
                controlform.changechecklistbox(checklistbox_pixelstream, i, video_auto_pixelformat_item[i]);
            }
            for (int i = 0; i < 6; i++)
            {
                controlform.changechecklistbox(checklistbox_videotype, i, video_auto_pixelformat_item[i]);
            }
        }