Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit f075fe55
由
张东亮
编写于
2023-06-08 16:05:15 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
工单料与单独出库料混出造成料串下降问题
1 个父辈
55e3f0d4
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
32 行增加
和
21 行删除
DeviceLibrary/DeviceLibrary/VisionHelper.cs
DeviceLibrary/theMachine/BoxTransport.cs
DeviceLibrary/DeviceLibrary/VisionHelper.cs
查看文件 @
f075fe5
...
...
@@ -53,35 +53,42 @@ namespace DeviceLibrary
static
int
webclienttimeout
=
30000
;
public
static
void
CheckAndRunServer
()
{
lock
(
EyemFeatureSet
)
try
{
Process
[]
processesByName
=
Process
.
GetProcessesByName
(
"EyemFeatureSet"
);
if
(
processesByName
.
Length
!=
0
)
lock
(
EyemFeatureSet
)
{
return
;
}
Process
[]
processesByName
=
Process
.
GetProcessesByName
(
"EyemFeatureSet"
);
if
(
processesByName
.
Length
!=
0
)
{
return
;
}
string
text
=
"Modules\\EyemFeatureSet\\EyemFeatureSet.exe"
;
if
(!
File
.
Exists
(
text
))
{
throw
new
Exception
(
"找不到算法服务器文件"
);
}
string
text
=
"Modules\\EyemFeatureSet\\EyemFeatureSet.exe"
;
if
(!
File
.
Exists
(
text
))
{
throw
new
Exception
(
"找不到算法服务器文件"
);
}
EyemFeatureSet
=
ProcessUtil
.
StartProcess
(
"EyemFeatureSet"
,
Application
.
StartupPath
+
"\\Modules\\EyemFeatureSet\\"
);
int
num
=
5
;
while
(
num
>
0
)
{
num
--;
Thread
.
Sleep
(
1000
);
MyWebClient
myWebClient
=
new
MyWebClient
(
webclienttimeout
);
string
text2
=
myWebClient
.
DownloadString
(
visionUrl
+
"/alive"
);
if
(
text2
.
Trim
()
==
"\"1\""
)
EyemFeatureSet
=
ProcessUtil
.
StartProcess
(
"EyemFeatureSet"
,
Application
.
StartupPath
+
"\\Modules\\EyemFeatureSet\\"
);
int
num
=
5
;
while
(
num
>
0
)
{
return
;
num
--;
Thread
.
Sleep
(
1000
);
MyWebClient
myWebClient
=
new
MyWebClient
(
webclienttimeout
);
string
text2
=
myWebClient
.
DownloadString
(
visionUrl
+
"/alive"
);
if
(
text2
.
Trim
()
==
"\"1\""
)
{
return
;
}
}
throw
new
Exception
(
"算法服务器文件打开失败"
);
}
throw
new
Exception
(
"算法服务器文件打开失败"
);
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"CheckAndRunServer EyemFeatureSet.exe"
,
ex
);
}
}
public
class
Result
{
...
...
DeviceLibrary/theMachine/BoxTransport.cs
查看文件 @
f075fe5
...
...
@@ -326,6 +326,10 @@ namespace DeviceLibrary
MoveInfo
.
log
(
$
"等待料串准备好放料"
);
return
false
;
}
else
if
(
MoveInfo
.
IsTimeOut
(
10
))
{
mainMachine
.
TurnToOut
();
}
}
else
if
(
To
.
posid
==
BoxStorePosition
.
ngdoor
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论