|
|
|
@ -536,7 +536,7 @@ namespace Rs.MotionPlat.Entitys
|
|
|
|
|
break;
|
|
|
|
|
case "1":
|
|
|
|
|
//就绪状态,如果有产品就查询测试结果
|
|
|
|
|
if(Status == ETestFixtureStatus.Testing)
|
|
|
|
|
if(Status == ETestFixtureStatus.Testing ||(Status== ETestFixtureStatus.IDLE && Product!=null &&String.IsNullOrEmpty(Result)))
|
|
|
|
|
{
|
|
|
|
|
Send("Result$");
|
|
|
|
|
if (CheckPrintLog())
|
|
|
|
@ -590,18 +590,18 @@ namespace Rs.MotionPlat.Entitys
|
|
|
|
|
}
|
|
|
|
|
this.Product.AddResult(this.Index, Result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//string summaryPath = $"D:\\Summary\\{DateTime.Now.ToString("yyyyMMdd")}\\summary.csv";
|
|
|
|
|
//if(!Directory.Exists(Path.GetDirectoryName(summaryPath)))
|
|
|
|
|
//{
|
|
|
|
|
// Directory.CreateDirectory(Path.GetDirectoryName(summaryPath));
|
|
|
|
|
//}
|
|
|
|
|
//if(!File.Exists(summaryPath))
|
|
|
|
|
//{
|
|
|
|
|
// File.AppendAllText(summaryPath, CsvTitle);
|
|
|
|
|
//}
|
|
|
|
|
//File.AppendAllText(summaryPath, items[3]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string summaryPath = $"D:\\Summary\\{DateTime.Now.ToString("yyyyMMdd")}\\summary.csv";
|
|
|
|
|
if (!Directory.Exists(Path.GetDirectoryName(summaryPath)))
|
|
|
|
|
{
|
|
|
|
|
Directory.CreateDirectory(Path.GetDirectoryName(summaryPath));
|
|
|
|
|
}
|
|
|
|
|
if (!File.Exists(summaryPath))
|
|
|
|
|
{
|
|
|
|
|
File.AppendAllText(summaryPath, CsvTitle);
|
|
|
|
|
}
|
|
|
|
|
File.AppendAllText(summaryPath, items[3]);
|
|
|
|
|
this.EndTestTime = DateTime.Now;
|
|
|
|
|
this.LastCT = (EndTestTime - StartTestTime).TotalSeconds;
|
|
|
|
|
TotalCount++;
|
|
|
|
@ -621,7 +621,7 @@ namespace Rs.MotionPlat.Entitys
|
|
|
|
|
{
|
|
|
|
|
Status = ETestFixtureStatus.Warning;
|
|
|
|
|
Task.Run(() => {
|
|
|
|
|
string errInfo = $"code:{items[1]},desc:{items[2]}";
|
|
|
|
|
string errInfo = $"tc{Index} test,code:{items[1]},desc:{items[2]}";
|
|
|
|
|
MessageQueue.Instance.Warn(errInfo);
|
|
|
|
|
Msgbox.ShowDialog(EButtonType.Ok, errInfo);
|
|
|
|
|
});
|
|
|
|
@ -869,7 +869,7 @@ namespace Rs.MotionPlat.Entitys
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
string content=Encoding.ASCII.GetString(registData.ToArray());
|
|
|
|
|
MessageQueue.Instance.Insert($">>> ip:{ep.Address.ToString()},port:{ep.Port.ToString()},{content}");
|
|
|
|
|
//MessageQueue.Instance.Insert($">>> ip:{ep.Address.ToString()},port:{ep.Port.ToString()},{content}");
|
|
|
|
|
string[] items = content.TrimEnd(new char[] { '$' }).Split('#');
|
|
|
|
|
string reg = "Register#1$";
|
|
|
|
|
int sendLen = clientSocket.Send(Encoding.ASCII.GetBytes(reg));
|
|
|
|
|