//test image sensor private bool _item_test_imagesensor(Common.Dut.IPCamera <TestingInformation> camera_indoor) { if (!stationVariable.myTesting.IsCheckImageSensor) { return(true); } bool r = false; stationVariable.myTesting.logSystem += "\n+++++++++++++++++++++++++++++++++++++++\n"; stationVariable.myTesting.logSystem += "KIỂM TRA CẢM BIẾN ẢNH\n"; var ex_test_imagesensor = new Common.Excute.exTestImageSensor <TestingInformation, SettingInformation>(camera_indoor, stationVariable.myTesting, stationVariable.mySetting, int.Parse(stationVariable.mySetting.RetryTime)); stationVariable.myTesting.logSystem += string.Format("...Tiêu chuẩn: \"{0}\"\n", string.Format("Giá trị độ nét cảm biến ảnh >= {0}.", stationVariable.mySetting.sharpnessStandard - stationVariable.mySetting.toleranceSharpness)); stationVariable.myTesting.logSystem += string.Format("...Thực tế:\n"); stationVariable.myTesting.logSystem += string.Format("...\n"); r = ex_test_imagesensor.excuteTelnet(grid_debug); stationVariable.myTesting.logSystem += string.Format("\n...\n"); stationVariable.myTesting.logSystem += string.Format("...Kết quả: {0}\n", r ? "Passed" : "Failed"); //add tab log Dispatcher.Invoke(new Action(() => { this.grid_debug.Children.Clear(); this.grid_debug.Children.Add(uc_tablog); })); return(r); }
//test image sensor private bool _item_test_imagesensor(Common.Dut.IPCamera <TestingInformation> camera_indoor) { if (!stationVariable.myTesting.IsCheckImageSensor) { return(true); } bool r = false; stationVariable.myTesting.logSystem += "\n+++++++++++++++++++++++++++++++++++++++\n"; stationVariable.myTesting.logSystem += "KIỂM TRA CẢM BIẾN ẢNH\n"; var ex_test_imagesensor = new Common.Excute.exTestImageSensor <TestingInformation, SettingInformation>(camera_indoor, stationVariable.myTesting, stationVariable.mySetting, int.Parse(stationVariable.mySetting.RetryTime)); stationVariable.myTesting.logSystem += string.Format("...Tiêu chuẩn: \"{0}\"\n", ex_test_imagesensor.std_value); stationVariable.myTesting.logSystem += string.Format("...Thực tế:\n"); stationVariable.myTesting.logSystem += string.Format("...\n"); r = ex_test_imagesensor.excuteUart(); stationVariable.myTesting.logSystem += string.Format("\n...\n"); stationVariable.myTesting.logSystem += string.Format("...Kết quả: {0}\n", r ? "Passed" : "Failed"); return(r); }