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
da42b463
Commit
da42b463
authored
Jun 05, 2018
by
wangjunqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限制本地连接添加624X模块输出
parent
814b29ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
AppInit.cs
GcDevicePc/AppInit.cs
+1
-1
MDIBase.cs
GcDevicePc/MDIBase.cs
+6
-0
HMISearch.cs
GcDevicePc/ProThread/HMISearch.cs
+1
-1
No files found.
GcDevicePc/AppInit.cs
View file @
da42b463
...
...
@@ -195,7 +195,7 @@ namespace GcDevicePc
NetworkInterface
[]
nics
=
NetworkInterface
.
GetAllNetworkInterfaces
();
foreach
(
NetworkInterface
adapter
in
nics
)
{
//
if (adapter.Name == "本地连接")
if
(
adapter
.
Name
==
"本地连接"
)
{
bool
pd1
=
(
adapter
.
NetworkInterfaceType
==
NetworkInterfaceType
.
Ethernet
||
adapter
.
NetworkInterfaceType
==
NetworkInterfaceType
.
Wireless80211
);
...
...
GcDevicePc/MDIBase.cs
View file @
da42b463
...
...
@@ -58,6 +58,8 @@ namespace GcDevicePc
/// </summary>
CKvocUpdata
dataVOC
=
new
CKvocUpdata
();
private
DataOutput
wtd624xOutput
=
new
DataOutput
();
#
region
Author
by
zjx
/// <summary>
/// 组件初始化
...
...
@@ -582,6 +584,8 @@ namespace GcDevicePc
dataVOC
.
CKvocUpdataStart
();
mytcptest
.
DataRcvStart
();
wtd624xOutput
.
DataOutStart
();
}
private
void
Stop_Thread
()
...
...
@@ -596,6 +600,8 @@ namespace GcDevicePc
mymodbus
.
HmiStatueStop
();
mymodbus
.
ChannelDataStop
();
}
wtd624xOutput
.
DataOutStop
();
}
/// <summary>
...
...
GcDevicePc/ProThread/HMISearch.cs
View file @
da42b463
...
...
@@ -46,7 +46,7 @@ namespace GcDevicePc.ProThread
NetworkInterface
[]
nics
=
NetworkInterface
.
GetAllNetworkInterfaces
();
foreach
(
NetworkInterface
adapter
in
nics
)
{
//
if (adapter.Name == "本地连接")
if
(
adapter
.
Name
==
"本地连接"
)
{
bool
pd1
=
(
adapter
.
NetworkInterfaceType
==
NetworkInterfaceType
.
Ethernet
||
adapter
.
NetworkInterfaceType
==
NetworkInterfaceType
.
Wireless80211
);
//判断是否是以太网连接
if
(
pd1
)
...
...
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