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
0ce0236b
Commit
0ce0236b
authored
Nov 19, 2020
by
frank
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本1.7.3
限制fid发送内存的最大长度限制
parent
163c51d5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
14 deletions
+16
-14
AboutForm.cs
GcDevicePc/AboutForm.cs
+1
-1
GcDevicePc.csproj
GcDevicePc/GcDevicePc.csproj
+5
-5
GcDevicePc.csproj.user
GcDevicePc/GcDevicePc.csproj.user
+1
-1
MDIBase.cs
GcDevicePc/MDIBase.cs
+1
-1
GcDataTh.cs
GcDevicePc/ProThread/GcDataTh.cs
+6
-6
globaldata.cs
GcDevicePc/globaldata.cs
+2
-0
WTModbus.dll
dll/WTModbus.dll
+0
-0
No files found.
GcDevicePc/AboutForm.cs
View file @
0ce0236b
...
@@ -42,7 +42,7 @@ namespace GcDevicePc
...
@@ -42,7 +42,7 @@ namespace GcDevicePc
this
.
fid1ver
.
Text
=
this
.
FID1version
;
this
.
fid1ver
.
Text
=
this
.
FID1version
;
this
.
fid2ver
.
Text
=
this
.
FID2version
;
this
.
fid2ver
.
Text
=
this
.
FID2version
;
this
.
tcdver
.
Text
=
this
.
TCD1version
;
this
.
tcdver
.
Text
=
this
.
TCD1version
;
this
.
PCver
.
Text
=
this
.
Hmiversion
+
"/1.7.
2
"
;
this
.
PCver
.
Text
=
this
.
Hmiversion
+
"/1.7.
3
"
;
}
}
}
}
}
}
GcDevicePc/GcDevicePc.csproj
View file @
0ce0236b
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
<IsWebBootstrapper>
false
</IsWebBootstrapper>
<IsWebBootstrapper>
false
</IsWebBootstrapper>
<TargetFrameworkProfile>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</TargetFrameworkProfile>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<PublishUrl>
publish\
</PublishUrl>
<PublishUrl>
publish\
</PublishUrl>
<Install>
true
</Install>
<Install>
true
</Install>
<InstallFrom>
Disk
</InstallFrom>
<InstallFrom>
Disk
</InstallFrom>
...
@@ -29,8 +31,6 @@
...
@@ -29,8 +31,6 @@
<UseApplicationTrust>
false
</UseApplicationTrust>
<UseApplicationTrust>
false
</UseApplicationTrust>
<PublishWizardCompleted>
true
</PublishWizardCompleted>
<PublishWizardCompleted>
true
</PublishWizardCompleted>
<BootstrapperEnabled>
true
</BootstrapperEnabled>
<BootstrapperEnabled>
true
</BootstrapperEnabled>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<PlatformTarget>
AnyCPU
</PlatformTarget>
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<Prefer32Bit>
false
</Prefer32Bit>
<Prefer32Bit>
false
</Prefer32Bit>
<LangVersion>
8.0
</LangVersion>
<LangVersion>
default
</LangVersion>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<PlatformTarget>
x86
</PlatformTarget>
<PlatformTarget>
x86
</PlatformTarget>
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
<Prefer32Bit>
false
</Prefer32Bit>
<Prefer32Bit>
false
</Prefer32Bit>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
<LangVersion>
8.0
</LangVersion>
<LangVersion>
default
</LangVersion>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>
F5BC126F49467FD58B7F9ED6D25381562543841F
</ManifestCertificateThumbprint>
<ManifestCertificateThumbprint>
F5BC126F49467FD58B7F9ED6D25381562543841F
</ManifestCertificateThumbprint>
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
</Reference>
</Reference>
<Reference
Include=
"WTModbus, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86"
>
<Reference
Include=
"WTModbus, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86"
>
<SpecificVersion>
False
</SpecificVersion>
<SpecificVersion>
False
</SpecificVersion>
<HintPath>
bin\x86\Debug
\WTModbus.dll
</HintPath>
<HintPath>
..\dll
\WTModbus.dll
</HintPath>
</Reference>
</Reference>
<Reference
Include=
"ZedGraph"
>
<Reference
Include=
"ZedGraph"
>
<HintPath>
..\dll\ZedGraph.dll
</HintPath>
<HintPath>
..\dll\ZedGraph.dll
</HintPath>
...
...
GcDevicePc/GcDevicePc.csproj.user
View file @
0ce0236b
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<EnableUnmanagedDebugging>
false
</EnableUnmanagedDebugging>
<EnableUnmanagedDebugging>
false
</EnableUnmanagedDebugging>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup>
<ReferencePath>
C:\Users\a\Desktop\色谱仪\新建文件夹\gcdevicepc_nmoc8-16\CKVocAnalyzer\bin\Debug
\
</ReferencePath>
<ReferencePath>
D:\workspace\VS2017\voc\dll
\
</ReferencePath>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|x86'"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|x86'"
>
<StartAction>
Project
</StartAction>
<StartAction>
Project
</StartAction>
...
...
GcDevicePc/MDIBase.cs
View file @
0ce0236b
...
@@ -834,7 +834,7 @@ namespace GcDevicePc
...
@@ -834,7 +834,7 @@ namespace GcDevicePc
/// 1.0.2.3 添加了周期完成后,重新绘图功能
/// 1.0.2.3 添加了周期完成后,重新绘图功能
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
{
this
.
Text
=
String
.
Format
(
"{0}-1.7.
2
{1}"
,
globaldata
.
AppName
,
Formstr
);
this
.
Text
=
String
.
Format
(
"{0}-1.7.
3
{1}"
,
globaldata
.
AppName
,
Formstr
);
HmiStatus
.
Text
=
bEnglishLanguage
==
false
?
String
.
Format
(
"状态:{0}"
,
statestr
)
:
String
.
Format
(
"State:{0}"
,
statestr
);
HmiStatus
.
Text
=
bEnglishLanguage
==
false
?
String
.
Format
(
"状态:{0}"
,
statestr
)
:
String
.
Format
(
"State:{0}"
,
statestr
);
...
...
GcDevicePc/ProThread/GcDataTh.cs
View file @
0ce0236b
...
@@ -248,11 +248,11 @@ namespace GcDevicePc.ProThread
...
@@ -248,11 +248,11 @@ namespace GcDevicePc.ProThread
#endif
#endif
//j++;
//j++;
//Get_Channel1_ValueNum++;
//Get_Channel1_ValueNum++;
if
(
globaldata
.
m_signalbuffer
.
Draw_Port
.
Count
<
globaldata
.
m_signalbuffer
.
Draw_Port
.
Capacity
)
if
(
globaldata
.
m_signalbuffer
.
Draw_Port
.
Count
<
globaldata
.
MAX_ARRAY_LEN
)
{
{
globaldata
.
m_signalbuffer
.
Draw_Port
.
Add
(
globaldata
.
m_signalbuffer
.
Channel1_Port
);
globaldata
.
m_signalbuffer
.
Draw_Port
.
Add
(
globaldata
.
m_signalbuffer
.
Channel1_Port
);
}
}
if
(
globaldata
.
m_signalbuffer
.
Save_Port
.
Count
<
globaldata
.
m_signalbuffer
.
Save_Port
.
Capacity
)
if
(
globaldata
.
m_signalbuffer
.
Save_Port
.
Count
<
globaldata
.
MAX_ARRAY_LEN
)
{
{
globaldata
.
m_signalbuffer
.
Save_Port
.
Add
(
globaldata
.
m_signalbuffer
.
Channel1_Port
);
globaldata
.
m_signalbuffer
.
Save_Port
.
Add
(
globaldata
.
m_signalbuffer
.
Channel1_Port
);
}
}
...
@@ -261,14 +261,14 @@ namespace GcDevicePc.ProThread
...
@@ -261,14 +261,14 @@ namespace GcDevicePc.ProThread
lock
(
globaldata
.
channelA_A
)
lock
(
globaldata
.
channelA_A
)
{
{
if
(
globaldata
.
channelA_A
.
Count
<
globaldata
.
channelA_A
.
Capacity
)
if
(
globaldata
.
channelA_A
.
Count
<
globaldata
.
MAX_ARRAY_LEN
)
{
{
globaldata
.
channelA_A
.
Add
((
long
)(
fidv
[
i
]
*
1000000
));
globaldata
.
channelA_A
.
Add
((
long
)(
fidv
[
i
]
*
1000000
));
}
}
}
}
lock
(
globaldata
.
channelB_A
)
lock
(
globaldata
.
channelB_A
)
{
{
if
(
globaldata
.
channelB_A
.
Count
<
globaldata
.
channelB_A
.
Capacity
)
if
(
globaldata
.
channelB_A
.
Count
<
globaldata
.
MAX_ARRAY_LEN
)
{
{
globaldata
.
channelB_A
.
Add
((
long
)(
fidv
[
i
]
*
1000000
));
globaldata
.
channelB_A
.
Add
((
long
)(
fidv
[
i
]
*
1000000
));
}
}
...
@@ -278,14 +278,14 @@ namespace GcDevicePc.ProThread
...
@@ -278,14 +278,14 @@ namespace GcDevicePc.ProThread
{
{
lock
(
globaldata
.
channelA_A
)
lock
(
globaldata
.
channelA_A
)
{
{
if
(
globaldata
.
channelA_A
.
Count
<
globaldata
.
channelA_A
.
Capacity
)
if
(
globaldata
.
channelA_A
.
Count
<
globaldata
.
MAX_ARRAY_LEN
)
{
{
globaldata
.
channelA_A
.
Add
((
long
)(
fidv
[
i
]
*
1000000
));
globaldata
.
channelA_A
.
Add
((
long
)(
fidv
[
i
]
*
1000000
));
}
}
}
}
lock
(
globaldata
.
channelB_A
)
lock
(
globaldata
.
channelB_A
)
{
{
if
(
globaldata
.
channelB_A
.
Count
<
globaldata
.
channelB_A
.
Capacity
)
if
(
globaldata
.
channelB_A
.
Count
<
globaldata
.
MAX_ARRAY_LEN
)
{
{
globaldata
.
channelB_A
.
Add
((
long
)(
fidv
[
i
]
*
1000000
));
globaldata
.
channelB_A
.
Add
((
long
)(
fidv
[
i
]
*
1000000
));
}
}
...
...
GcDevicePc/globaldata.cs
View file @
0ce0236b
...
@@ -196,6 +196,8 @@ namespace GcDevicePc
...
@@ -196,6 +196,8 @@ namespace GcDevicePc
public
static
String
DeviceName
;
//HMI名字
public
static
String
DeviceName
;
//HMI名字
public
static
IPAddress
myIpaddr
;
public
static
IPAddress
myIpaddr
;
public
static
int
MAX_ARRAY_LEN
=
5120
;
//public static AppInit m_appinit = new AppInit(); //程序初始化
//public static AppInit m_appinit = new AppInit(); //程序初始化
...
...
dll/WTModbus.dll
0 → 100644
View file @
0ce0236b
File added
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