Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
GC_Branch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周磊
GC_Branch
Commits
ca93ef8b
Commit
ca93ef8b
authored
Jun 01, 2018
by
wangwanxh@sina.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动批处理修改
parent
7797ef44
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
10 deletions
+57
-10
LandIn.cs
GcDevicePc/CK_UI/LandIn.cs
+1
-0
UserCtl.cs
GcDevicePc/CK_UI/UserCtl.cs
+3
-3
MDIBase.cs
GcDevicePc/MDIBase.cs
+36
-6
MControl.cs
SharedSpace/MControl.cs
+17
-1
CKVocAlgorithm.dll
dll/CKVocAlgorithm.dll
+0
-0
CKVocAnalyzer.dll
dll/CKVocAnalyzer.dll
+0
-0
No files found.
GcDevicePc/CK_UI/LandIn.cs
View file @
ca93ef8b
...
...
@@ -17,6 +17,7 @@ namespace GcDevicePc.CK_UI
public
LandIn
()
{
InitializeComponent
();
this
.
ControlBox
=
false
;
}
private
void
button1_Click
(
object
sender
,
EventArgs
e
)
//登录系统
...
...
GcDevicePc/CK_UI/UserCtl.cs
View file @
ca93ef8b
...
...
@@ -289,9 +289,9 @@ namespace GcDevicePc.CK_UI
textBox1
.
Text
=
Math
.
Round
(
listNmoc
[
listNmoc
.
Count
-
1
].
Y
,
2
).
ToString
()
+
"ppm"
;
textBox2
.
Text
=
Math
.
Round
(
listTHC
[
listTHC
.
Count
-
1
].
Y
,
2
).
ToString
()
+
"ppm"
;
textBox3
.
Text
=
Math
.
Round
(
listCH4
[
listCH4
.
Count
-
1
].
Y
,
2
).
ToString
()
+
"ppm"
;
textBox4
.
Text
=
Math
.
Round
(
list
Nmoc
[
listben
.
Count
-
1
].
Y
,
2
).
ToString
()
+
"ppm"
;
textBox5
.
Text
=
Math
.
Round
(
list
THC
[
listjiaben
.
Count
-
1
].
Y
,
2
).
ToString
()
+
"ppm"
;
textBox6
.
Text
=
Math
.
Round
(
list
CH4
[
listerjiaben
.
Count
-
1
].
Y
,
2
).
ToString
()
+
"ppm"
;
textBox4
.
Text
=
Math
.
Round
(
list
ben
[
listben
.
Count
-
1
].
Y
,
2
).
ToString
()
+
"ppm"
;
textBox5
.
Text
=
Math
.
Round
(
list
jiaben
[
listjiaben
.
Count
-
1
].
Y
,
2
).
ToString
()
+
"ppm"
;
textBox6
.
Text
=
Math
.
Round
(
list
erjiaben
[
listerjiaben
.
Count
-
1
].
Y
,
2
).
ToString
()
+
"ppm"
;
mster
.
PaneList
.
Clear
();
myPaneCh4
.
CurveList
.
Clear
();
myPaneNmoc
.
CurveList
.
Clear
();
...
...
GcDevicePc/MDIBase.cs
View file @
ca93ef8b
...
...
@@ -1789,29 +1789,59 @@ namespace GcDevicePc
}
}
/// <summary>
/// 校准完成时间
/// </summary>
DateTime
AutoAdjust
;
private
void
timerWorker_Tick
(
object
sender
,
EventArgs
e
)
{
try
{
if
(
SharedSpace
.
MControl
.
SetOut
&&
SharedSpace
.
MControl
.
SetRun
==
false
)
//准备开始校准
{
RunTableOptWithCount
(
SharedSpace
.
MControl
.
path
,
SharedSpace
.
MControl
.
Name
,
(
ushort
)
SharedSpace
.
MControl
.
runcount
);
SharedSpace
.
MControl
.
errstr
=
null
;
SharedSpace
.
MControl
.
zhouqi
=
globaldata
.
m_dpbuffer
.
ShowList
.
showtime
.
alltime
;
Trace
.
WriteLine
(
string
.
Format
(
"开始校准{0},{1}"
,
SharedSpace
.
MControl
.
zhouqi
,
SharedSpace
.
MControl
.
runcount
),
"sys"
);
if
(
SharedSpace
.
MControl
.
zhouqi
*
SharedSpace
.
MControl
.
runcount
<=
SharedSpace
.
MControl
.
dateend
)
{
// RunTableOpt(SharedSpace.MControl.path, SharedSpace.MControl.Name);
RunTableOptWithCount
(
SharedSpace
.
MControl
.
path
,
SharedSpace
.
MControl
.
Name
,
100
);
Thread
.
Sleep
(
60
*
1000
);
SharedSpace
.
MControl
.
SetRun
=
true
;
//仪器进入校准环境
Trace
.
WriteLine
(
"开始校准"
,
"sys"
);
AutoAdjust
=
DateTime
.
Now
.
AddSeconds
(
SharedSpace
.
MControl
.
dateend
);
}
else
{
SharedSpace
.
MControl
.
errstr
=
"校准时间不够"
;
SharedSpace
.
MControl
.
SetOut
=
false
;
}
}
//等待校准结束
if
(
globaldata
.
m_hmibuffer
.
gcinfo
.
batruncount
>=
SharedSpace
.
MControl
.
runcount
-
1
&&
SharedSpace
.
MControl
.
SetOut
&&
SharedSpace
.
MControl
.
SetRun
)
if
(
DateTime
.
Now
>=
AutoAdjust
&&
SharedSpace
.
MControl
.
SetOut
&&
SharedSpace
.
MControl
.
SetRun
)
{
SharedSpace
.
MControl
.
IsEnd
=
true
;
Thread
.
Sleep
(
60
*
1000
);
RunTableOpt
(
SharedSpace
.
MControl
.
defaultPath
,
SharedSpace
.
MControl
.
defaultName
);
// RunTableOpt(SharedSpace.MControl.defaultPath, SharedSpace.MControl.defaultName);
RunTableOptWithCount
(
SharedSpace
.
MControl
.
defaultPath
,
SharedSpace
.
MControl
.
defaultName
,
10000
);
Thread
.
Sleep
(
30
*
1000
);
// RunTableOptWithCount(65534);
SharedSpace
.
MControl
.
SetOut
=
false
;
SharedSpace
.
MControl
.
SetRun
=
false
;
Trace
.
WriteLine
(
"校准结束"
,
"sys"
);
}
if
(
SharedSpace
.
MControl
.
forceEnd
&&
SharedSpace
.
MControl
.
SetOut
&&
SharedSpace
.
MControl
.
SetRun
)
{
SharedSpace
.
MControl
.
IsEnd
=
false
;
//RunTableOpt(SharedSpace.MControl.defaultPath, SharedSpace.MControl.defaultName);
RunTableOptWithCount
(
SharedSpace
.
MControl
.
defaultName
,
SharedSpace
.
MControl
.
defaultName
,
10000
);
Thread
.
Sleep
(
30
*
1000
);
SharedSpace
.
MControl
.
SetOut
=
false
;
SharedSpace
.
MControl
.
SetRun
=
false
;
Trace
.
WriteLine
(
"强制校准结束"
,
"sys"
);
}
}
catch
(
Exception
ex
)
...
...
SharedSpace/MControl.cs
View file @
ca93ef8b
...
...
@@ -39,8 +39,24 @@ namespace SharedSpace
/// </summary>
public
static
string
defaultName
=
""
;
/// <summary>
/// 最小运行次数
/// 最小运行次数
,系统设置,用于反馈是否满足要求
/// </summary>
public
static
int
runcount
=
7
;
/// <summary>
/// 校准周期总长(S)
/// </summary>
public
static
int
dateend
;
/// <summary>
/// 周期时长(s)
/// </summary>
public
static
int
zhouqi
;
/// <summary>
/// 仪器反馈,正常下为空;
/// </summary>
public
static
string
errstr
=
null
;
/// <summary>
/// 强制终止
/// </summary>
public
static
bool
forceEnd
=
false
;
}
}
dll/CKVocAlgorithm.dll
View file @
ca93ef8b
No preview for this file type
dll/CKVocAnalyzer.dll
View file @
ca93ef8b
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment