Commit 0ce0236b authored by frank's avatar frank 🏀

版本1.7.3

限制fid发送内存的最大长度限制
parent 163c51d5
...@@ -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";
} }
} }
} }
...@@ -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>
......
...@@ -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>
......
...@@ -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);
......
...@@ -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));
} }
......
...@@ -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(); //程序初始化
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment