|
|
@ -319,7 +319,7 @@ namespace Rs.MotionPlat
|
|
|
|
private void LoadImage()
|
|
|
|
private void LoadImage()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Stopwatch time = new Stopwatch();
|
|
|
|
Stopwatch time = new Stopwatch();
|
|
|
|
|
|
|
|
time.Start();
|
|
|
|
while (true && time.ElapsedMilliseconds < 3000)
|
|
|
|
while (true && time.ElapsedMilliseconds < 3000)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (ImageProcess.manualTriggerEvent.WaitOne(100))
|
|
|
|
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;
|
|
|
|
HObject imageReduced, partImage;
|
|
|
|