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); } }
void video_auto(object o) { double target_symbol_rate = Convert.ToDouble(o); target_symbol_rate = target_symbol_rate * 1000000; while (dut.cnt_symbolrate() < target_symbol_rate) { pgcontrol.set_prameter(dut); int[] porch = dut.get_porch_setting(); dut.set_porch(porch[0] + 8, porch[1] + 8, porch[2] + 8, porch[3], porch[4], porch[5], porch[6], porch[7]); Thread.Sleep(50); dut.cnt_symbolrate(); mipi_out_form(); } }