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
4d23569a
Commit
4d23569a
authored
May 29, 2018
by
wangwanxh@sina.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改自动校准逻辑,周期完重绘等
parent
6a292f85
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
7 deletions
+62
-7
FormUser.Designer.cs
GcDevicePc/FormUser.Designer.cs
+1
-1
MDIBase.cs
GcDevicePc/MDIBase.cs
+47
-4
CKvocUpdata.cs
GcDevicePc/ProThread/CKvocUpdata.cs
+8
-2
WtFileSender.dll
dll/WtFileSender.dll
+0
-0
RM.txt
说明/RM.txt
+6
-0
No files found.
GcDevicePc/FormUser.Designer.cs
View file @
4d23569a
...
...
@@ -42,7 +42,7 @@
this
.
userCtl1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
16
);
this
.
userCtl1
.
Name
=
"userCtl1"
;
this
.
userCtl1
.
Size
=
new
System
.
Drawing
.
Size
(
758
,
468
);
this
.
userCtl1
.
Systemtype
=
0
;
this
.
userCtl1
.
Systemtype
=
2
;
this
.
userCtl1
.
TabIndex
=
0
;
//
// buttonFID
...
...
GcDevicePc/MDIBase.cs
View file @
4d23569a
...
...
@@ -8,7 +8,7 @@ using GcDevicePc.Common;
using
System.Threading
;
using
GcDevicePc.CK_UI
;
using
Ini.Net
;
using
System.Runtime.InteropServices
;
namespace
GcDevicePc
{
...
...
@@ -231,17 +231,58 @@ namespace GcDevicePc
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
/// 1.0.2.3 添加了周期完成后,重新绘图功能
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
this
.
Text
=
String
.
Format
(
"VOCs在线监测-1.0.2.
2
{0}"
,
Formstr
);
this
.
Text
=
String
.
Format
(
"VOCs在线监测-1.0.2.
3
{0}"
,
Formstr
);
HmiStatus
.
Text
=
String
.
Format
(
"状态:{0}"
,
statestr
);
// toolStripStatusLabeSystme.Text = String.Format("状态:{0}", statestr);
timespan
=
System
.
DateTime
.
Now
-
startTime
;
toolStripStatusLabelusertime
.
Text
=
String
.
Format
(
"运行时间:{0}"
,
timespan
.
Days
.
ToString
()
+
"天"
+
timespan
.
Hours
.
ToString
()
+
"时"
+
timespan
.
Minutes
.
ToString
()
+
"分"
+
timespan
.
Seconds
.
ToString
()
+
"秒"
);
//监视界面活动
if
(
getIdleTick
()/
1000
>
1000
*
60
*
30
&&
LandIn
.
Island
)
{
if
(
_userForm
!=
null
)
{
Formstr
=
"用户窗口"
;
_userForm
.
Activate
();
//userForm.Show();
}
LandIn
.
Island
=
false
;
SetMenu
(
LandIn
.
Island
);
}
}
[
StructLayout
(
LayoutKind
.
Sequential
)]
public
struct
LASTINPUTINFO
{
[
MarshalAs
(
UnmanagedType
.
U4
)]
public
int
cbSize
;
[
MarshalAs
(
UnmanagedType
.
U4
)]
public
uint
dwTime
;
}
[
DllImport
(
"user32.dll"
)]
public
static
extern
bool
GetLastInputInfo
(
ref
LASTINPUTINFO
plii
);
/// <summary>
/// 返回持续时间 ms
/// </summary>
/// <returns></returns>
public
long
getIdleTick
()
{
LASTINPUTINFO
vLastInputInfo
=
new
LASTINPUTINFO
();
vLastInputInfo
.
cbSize
=
Marshal
.
SizeOf
(
vLastInputInfo
);
if
(!
GetLastInputInfo
(
ref
vLastInputInfo
))
return
0
;
return
Environment
.
TickCount
-
(
long
)
vLastInputInfo
.
dwTime
;
}
public
void
SendPCCMD
(
bool
flag
)
{
if
(
flag
)
//打开运行
...
...
@@ -1737,15 +1778,17 @@ namespace GcDevicePc
RunTableOptWithCount
(
SharedSpace
.
MControl
.
path
,
SharedSpace
.
MControl
.
Name
,
(
ushort
)
SharedSpace
.
MControl
.
runcount
);
Thread
.
Sleep
(
60
*
1000
);
SharedSpace
.
MControl
.
SetRun
=
true
;
//仪器进入校准环境
Trace
.
WriteLine
(
"开始校准"
,
"sys"
);
}
//等待校准结束
if
(
globaldata
.
m_hmibuffer
.
gcinfo
.
batruncount
>=
SharedSpace
.
MControl
.
runcount
-
1
)
if
(
globaldata
.
m_hmibuffer
.
gcinfo
.
batruncount
>=
SharedSpace
.
MControl
.
runcount
-
1
&&
SharedSpace
.
MControl
.
SetOut
&&
SharedSpace
.
MControl
.
SetRun
)
{
SharedSpace
.
MControl
.
IsEnd
=
true
;
Thread
.
Sleep
(
60
*
1000
);
RunTableOpt
(
SharedSpace
.
MControl
.
defaultPath
,
SharedSpace
.
MControl
.
defaultName
);
SharedSpace
.
MControl
.
SetOut
=
false
;
SharedSpace
.
MControl
.
SetRun
=
false
;
Trace
.
WriteLine
(
"校准结束"
,
"sys"
);
}
}
...
...
GcDevicePc/ProThread/CKvocUpdata.cs
View file @
4d23569a
...
...
@@ -200,7 +200,7 @@ namespace GcDevicePc.ProThread
drbool
=
false
;
//时间判断终点
// if ((globaldata.MethodRun_Statue == 4 || globaldata.MethodRun_Statue == 5))
if
(
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
==
0
||
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
>
5
)
if
(
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
<
4
||
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
>
5
)
{
if
((
globaldata
.
m_hmibuffer
.
gcinfo
.
NowStartTime
<=
globaldata
.
m_hmibuffer
.
gcinfo
.
NowEndTime
)&&(
globaldata
.
m_hmibuffer
.
gcinfo
.
NowEndTime
<=
((
SignalBuffer
.
Channel_XY
)
globaldata
.
m_signalbuffer
.
Draw_Port
[
i
]).
ctimer
)&&
isstart
==
2
)
...
...
@@ -235,7 +235,13 @@ namespace GcDevicePc.ProThread
#endif
CurveDisPlay
.
curdisp
.
addDataRaw
(
listRaw
);
//记录原始数据
CurveDisPlay
.
curdisp
.
addPoint
(
listPoint
,
drbool
);
//更新绘画区域
//绘制完,重新画图
if
(
drbool
)
{
time
=
0
;
CurveDisPlay
.
curdisp
.
cleardata
();
}
...
...
dll/WtFileSender.dll
View file @
4d23569a
No preview for this file type
说明/RM.txt
0 → 100644
View file @
4d23569a
2018-5-24 版本:1.0.2.2
1.登录界面的密码输入框,点击确定销毁;
2、修复历史查看功能中的树形选择,历史数据反复出现问题;
3、增加了历史查看功能,选中后,对应文件名背景颜色改变;
4.王工更新文件传输库,解决开机容易传文件崩的
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