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
0213af2e
Commit
0213af2e
authored
Sep 02, 2019
by
liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决cpu占用率问题,检测器温度信号分开,和仪器方法中的信号配置出错问题
parent
c3f8262d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
198 additions
and
196 deletions
+198
-196
SignalTab.cs
GcDevicePc/ConfigMethod/SignalTab.cs
+3
-3
DataState.cs
GcDevicePc/DataState.cs
+11
-9
MDIBase.Designer.cs
GcDevicePc/MDIBase.Designer.cs
+29
-29
SendDataToZB.cs
GcDevicePc/ProThread/SendDataToZB.cs
+1
-1
SignalDataToHw.cs
GcDevicePc/ProThread/SignalDataToHw.cs
+1
-1
SysConfig.Designer.cs
GcDevicePc/SysConfig.Designer.cs
+152
-152
SysConfig.cs
GcDevicePc/SysConfig.cs
+1
-1
No files found.
GcDevicePc/ConfigMethod/SignalTab.cs
View file @
0213af2e
...
@@ -28,7 +28,7 @@ namespace GcDevicePc.ConfigMethod
...
@@ -28,7 +28,7 @@ namespace GcDevicePc.ConfigMethod
{
{
cleanALLItem
();
cleanALLItem
();
addALLItem
(
"无"
);
addALLItem
(
"无"
);
if
(
this
.
hwconfig
.
hwconfiginfo
.
u16DetFront
==
1
)
//
if (this.hwconfig.hwconfiginfo.u16DetFront == 1)
{
{
if
(
this
.
hwconfig
.
hwconfiginfo
.
u16DetFrontType
==
0
)
//TCD
if
(
this
.
hwconfig
.
hwconfiginfo
.
u16DetFrontType
==
0
)
//TCD
{
{
...
@@ -41,7 +41,7 @@ namespace GcDevicePc.ConfigMethod
...
@@ -41,7 +41,7 @@ namespace GcDevicePc.ConfigMethod
}
}
if
(
this
.
hwconfig
.
hwconfiginfo
.
u16DetInter
==
1
)
//
if (this.hwconfig.hwconfiginfo.u16DetInter == 1)
{
{
if
(
this
.
hwconfig
.
hwconfiginfo
.
u16DetInterType
==
0
)
//TCD
if
(
this
.
hwconfig
.
hwconfiginfo
.
u16DetInterType
==
0
)
//TCD
{
{
...
@@ -54,7 +54,7 @@ namespace GcDevicePc.ConfigMethod
...
@@ -54,7 +54,7 @@ namespace GcDevicePc.ConfigMethod
}
}
if
(
this
.
hwconfig
.
hwconfiginfo
.
u16DetBehind
==
1
)
//
if (this.hwconfig.hwconfiginfo.u16DetBehind == 1)
{
{
if
(
this
.
hwconfig
.
hwconfiginfo
.
u16DetBehindType
==
0
)
//TCD
if
(
this
.
hwconfig
.
hwconfiginfo
.
u16DetBehindType
==
0
)
//TCD
{
{
...
...
GcDevicePc/DataState.cs
View file @
0213af2e
...
@@ -1395,11 +1395,12 @@ namespace GcDevicePc
...
@@ -1395,11 +1395,12 @@ namespace GcDevicePc
}
}
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetInter
==
1
&&
CProfileDevice
.
m_DevParam
.
syspara
.
u16AuxHeater1
!=
1
)
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetInter
==
1
)
//if (CProfileDevice.m_DevParam.syspara.u16DetInter == 1 && CProfileDevice.m_DevParam.syspara.u16AuxHeater1 != 1)
{
{
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
iDetSetTemp
!=
0.0f
)
//
if (globaldata.m_dpbuffer.ShowList.showtemp.iDetSetTemp != 0.0f)
{
{
tempshow
=
new
ListViewItem
();
tempshow
=
new
ListViewItem
();
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetInterType
==
0
)
//TCD
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetInterType
==
0
)
//TCD
...
@@ -1452,11 +1453,12 @@ namespace GcDevicePc
...
@@ -1452,11 +1453,12 @@ namespace GcDevicePc
}
}
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetBehind
==
1
&&
CProfileDevice
.
m_DevParam
.
syspara
.
u16AuxHeater2
!=
1
)
//if (CProfileDevice.m_DevParam.syspara.u16DetBehind == 1 && CProfileDevice.m_DevParam.syspara.u16AuxHeater2 != 1)
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetBehind
==
1
)
{
{
if
(
globaldata
.
m_dpbuffer
.
ShowList
.
showtemp
.
bDetSetTemp
!=
0.0f
)
//
if (globaldata.m_dpbuffer.ShowList.showtemp.bDetSetTemp != 0.0f)
{
{
//tempshow.SubItems.Add(IsException(globaldata.m_dpbuffer.ShowList.showtemp.bDetActualTemp) + " / " + "未定义");
//tempshow.SubItems.Add(IsException(globaldata.m_dpbuffer.ShowList.showtemp.bDetActualTemp) + " / " + "未定义");
tempshow
=
new
ListViewItem
();
tempshow
=
new
ListViewItem
();
...
@@ -1896,7 +1898,7 @@ namespace GcDevicePc
...
@@ -1896,7 +1898,7 @@ namespace GcDevicePc
//tempshow = new ListViewItem();
//tempshow = new ListViewItem();
//this.datalist.Items.Add(tempshow);
//this.datalist.Items.Add(tempshow);
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16AuxHeater1
!=
1
)
//
if (CProfileDevice.m_DevParam.syspara.u16AuxHeater1 != 1)
{
{
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetInter
==
1
)
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetInter
==
1
)
{
{
...
@@ -2017,13 +2019,13 @@ namespace GcDevicePc
...
@@ -2017,13 +2019,13 @@ namespace GcDevicePc
//tempshow = new ListViewItem();
//tempshow = new ListViewItem();
//this.datalist.Items.Add(tempshow);
//this.datalist.Items.Add(tempshow);
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16AuxHeater2
!=
1
)
//
if (CProfileDevice.m_DevParam.syspara.u16AuxHeater2 != 1)
{
{
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetBehind
==
1
)
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetBehind
==
1
)
{
{
//if (CProfileDevice.m_DevParam.syspara.u16DetBehindType == 0 &&
//if (CProfileDevice.m_DevParam.syspara.u16DetBehindType == 0 &&
// CProfileDevice.m_DevParam.tcd[2].u16HeaterSel > 0) //TCD
// CProfileDevice.m_DevParam.tcd[2].u16HeaterSel > 0) //TCD
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetBehindType
==
0
0
)
//TCD
if
(
CProfileDevice
.
m_DevParam
.
syspara
.
u16DetBehindType
==
0
)
//TCD
{
{
tempshow
=
new
ListViewItem
();
tempshow
=
new
ListViewItem
();
tempshow
.
Text
=
"TCD3"
;
tempshow
.
Text
=
"TCD3"
;
...
...
GcDevicePc/MDIBase.Designer.cs
View file @
0213af2e
This diff is collapsed.
Click to expand it.
GcDevicePc/ProThread/SendDataToZB.cs
View file @
0213af2e
...
@@ -365,7 +365,7 @@ namespace GcDevicePc.ProThread
...
@@ -365,7 +365,7 @@ namespace GcDevicePc.ProThread
//int i = 0;
//int i = 0;
bool
runflag
=
false
;
bool
runflag
=
false
;
while
(
true
)
while
(
!
datamre
.
WaitOne
(
500
)
)
{
{
if
((
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
==
4
||
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
==
5
)
&&
methodconfig
!=
null
&&
run_stop
!=
true
)
if
((
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
==
4
||
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
==
5
)
&&
methodconfig
!=
null
&&
run_stop
!=
true
)
//if ((globaldata.m_hmibuffer.gcinfo.methodstatus == 4 || globaldata.m_hmibuffer.gcinfo.methodstatus == 5) && globaldata.m_hmibuffer.gcinfo.hmistatus == 4 && run_stop != true)
//if ((globaldata.m_hmibuffer.gcinfo.methodstatus == 4 || globaldata.m_hmibuffer.gcinfo.methodstatus == 5) && globaldata.m_hmibuffer.gcinfo.hmistatus == 4 && run_stop != true)
...
...
GcDevicePc/ProThread/SignalDataToHw.cs
View file @
0213af2e
...
@@ -291,7 +291,7 @@ namespace GcDevicePc.ProThread
...
@@ -291,7 +291,7 @@ namespace GcDevicePc.ProThread
ushort
SendNumB
=
0
;
ushort
SendNumB
=
0
;
//int i = 0;
//int i = 0;
bool
runflag
=
false
;
bool
runflag
=
false
;
while
(
true
)
while
(
!
datamre
.
WaitOne
(
500
)
)
{
{
if
((
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
==
4
||
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
==
5
)
&&
methodconfig
!=
null
&&
run_stop
!=
true
)
if
((
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
==
4
||
globaldata
.
m_hmibuffer
.
gcinfo
.
methodstatus
==
5
)
&&
methodconfig
!=
null
&&
run_stop
!=
true
)
//if ((globaldata.m_hmibuffer.gcinfo.methodstatus == 4 || globaldata.m_hmibuffer.gcinfo.methodstatus == 5) && globaldata.m_hmibuffer.gcinfo.hmistatus == 4 && run_stop != true)
//if ((globaldata.m_hmibuffer.gcinfo.methodstatus == 4 || globaldata.m_hmibuffer.gcinfo.methodstatus == 5) && globaldata.m_hmibuffer.gcinfo.hmistatus == 4 && run_stop != true)
...
...
GcDevicePc/SysConfig.Designer.cs
View file @
0213af2e
This diff is collapsed.
Click to expand it.
GcDevicePc/SysConfig.cs
View file @
0213af2e
...
@@ -49,7 +49,7 @@ namespace GcDevicePc
...
@@ -49,7 +49,7 @@ namespace GcDevicePc
private
void
ListBox1_MeasureItem
(
object
sender
,
MeasureItemEventArgs
e
)
private
void
ListBox1_MeasureItem
(
object
sender
,
MeasureItemEventArgs
e
)
{
{
e
.
ItemHeight
=
e
.
ItemHeight
+
12
;
e
.
ItemHeight
+=
12
;
}
}
private
void
ListBox1_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
private
void
ListBox1_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
...
...
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