diff --git a/Rs.Controls/CameraTemplate.cs b/Rs.Controls/CameraTemplate.cs index a223bcd..ed58c58 100644 --- a/Rs.Controls/CameraTemplate.cs +++ b/Rs.Controls/CameraTemplate.cs @@ -319,7 +319,7 @@ namespace Rs.MotionPlat private void LoadImage() { Stopwatch time = new Stopwatch(); - + time.Start(); while (true && time.ElapsedMilliseconds < 3000) { if (ImageProcess.manualTriggerEvent.WaitOne(100)) @@ -339,10 +339,10 @@ namespace Rs.MotionPlat } } } - Task.Run(() => + if(time.ElapsedMilliseconds>3000) { - - }); + Msg.ShowError("grab fail"); + } } HObject imageReduced, partImage;