Commit 4b7b7ca4 authored by 周磊's avatar 周磊

1.基于1.9.1进行修改.版本变更至1.9.9

2.辅助工具增加阀1~阀4和RL11RL12调试,顺便把之前的校标.校零合并进来
3.方法界面标题栏增加文件路径信息
4.修复免登录一些bug
5.仪器配置写入时,若出现错误则写入默认值(之前只是对缓存赋予默认值,没有写入到本地)
6.向第三方传输数据由之前的原始数据改为处理后数据(与本软件绘图数据同步)
7.反控功能提取为单独类(与进样器通用)
8.增加限制,用户登录后不可再进行"登录"
9.修复在线版本,超级管理员下不会自动登出的问题
10.修复XC报警倒计时并非在弹窗提示后开始的bug,顺便弹窗增加"不再提示"的选项
11.修复联机成功后还在搜索设备的bug
12.在线版本联机搜索前插入10秒休眠,解决HMI还没有完全加载完联机失败的问题
13.
parent 997ae3dd
...@@ -7,14 +7,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GcDevicePc", "GcDevicePc\Gc ...@@ -7,14 +7,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GcDevicePc", "GcDevicePc\Gc
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharedSpace", "SharedSpace\SharedSpace.csproj", "{5498F944-5721-461B-B07F-3105EF0BF643}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharedSpace", "SharedSpace\SharedSpace.csproj", "{5498F944-5721-461B-B07F-3105EF0BF643}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VocsMonitor", "VocsMonitor\VocsMonitor\VocsMonitor.csproj", "{25AB743D-235C-4F11-96C3-2356AC90BF81}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "VocAnalyzer", "VocAnalyzer\VocAnalyzer.vdproj", "{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SamplerCounterControl", "SamplerCounterControl\SamplerCounterControl.csproj", "{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsControlLibrary_PopUp", "WindowsFormsControlLibrary_PopUp\WindowsFormsControlLibrary_PopUp.csproj", "{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "vocdll", "vocdll", "{17288597-04A1-40BD-8E6C-1E83CBD1A523}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "vocdll", "vocdll", "{17288597-04A1-40BD-8E6C-1E83CBD1A523}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CKVocAlgorithm", "gcdevicepc_nmoc8-16\CKVocAlgorithm\CKVocAlgorithm.csproj", "{EEF7E2F6-A048-4577-B925-A145A4E48384}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CKVocAlgorithm", "gcdevicepc_nmoc8-16\CKVocAlgorithm\CKVocAlgorithm.csproj", "{EEF7E2F6-A048-4577-B925-A145A4E48384}"
...@@ -64,54 +56,6 @@ Global ...@@ -64,54 +56,6 @@ Global
{5498F944-5721-461B-B07F-3105EF0BF643}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {5498F944-5721-461B-B07F-3105EF0BF643}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{5498F944-5721-461B-B07F-3105EF0BF643}.Release|Mixed Platforms.Build.0 = Release|Any CPU {5498F944-5721-461B-B07F-3105EF0BF643}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{5498F944-5721-461B-B07F-3105EF0BF643}.Release|x86.ActiveCfg = Release|Any CPU {5498F944-5721-461B-B07F-3105EF0BF643}.Release|x86.ActiveCfg = Release|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Debug|Any CPU.Build.0 = Debug|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Debug|x86.ActiveCfg = Debug|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Debug|x86.Build.0 = Debug|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Release|Any CPU.ActiveCfg = Release|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Release|Any CPU.Build.0 = Release|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Release|x86.ActiveCfg = Release|Any CPU
{25AB743D-235C-4F11-96C3-2356AC90BF81}.Release|x86.Build.0 = Release|Any CPU
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Debug|Any CPU.ActiveCfg = Debug
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Debug|Any CPU.Build.0 = Debug
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Debug|Mixed Platforms.ActiveCfg = Debug
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Debug|Mixed Platforms.Build.0 = Debug
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Debug|x86.ActiveCfg = Debug
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Debug|x86.Build.0 = Debug
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Release|Any CPU.ActiveCfg = Release
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Release|Any CPU.Build.0 = Release
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Release|Mixed Platforms.ActiveCfg = Release
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Release|Mixed Platforms.Build.0 = Release
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Release|x86.ActiveCfg = Release
{9A8B92E2-7CFA-43AE-8EC6-561827F41EF4}.Release|x86.Build.0 = Release
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Debug|x86.ActiveCfg = Debug|Any CPU
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Debug|x86.Build.0 = Debug|Any CPU
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Release|Any CPU.Build.0 = Release|Any CPU
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Release|x86.ActiveCfg = Release|Any CPU
{AD1C51CD-86B5-416B-9708-0EA7C2414EDC}.Release|x86.Build.0 = Release|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Debug|x86.ActiveCfg = Debug|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Debug|x86.Build.0 = Debug|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Release|Any CPU.Build.0 = Release|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Release|x86.ActiveCfg = Release|Any CPU
{AFC4DDC8-D40D-481E-AE7A-5AFB73C88E78}.Release|x86.Build.0 = Release|Any CPU
{EEF7E2F6-A048-4577-B925-A145A4E48384}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {EEF7E2F6-A048-4577-B925-A145A4E48384}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EEF7E2F6-A048-4577-B925-A145A4E48384}.Debug|Any CPU.Build.0 = Debug|Any CPU {EEF7E2F6-A048-4577-B925-A145A4E48384}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EEF7E2F6-A048-4577-B925-A145A4E48384}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU {EEF7E2F6-A048-4577-B925-A145A4E48384}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
......
...@@ -38,6 +38,8 @@ ...@@ -38,6 +38,8 @@
<level value="INFO"/> <level value="INFO"/>
<appender-ref ref="TempDebugRollingLog"/> <appender-ref ref="TempDebugRollingLog"/>
</logger> </logger>
<logger name="AntiControlLog"> <logger name="AntiControlLog">
<level value="INFO"/> <level value="INFO"/>
<appender-ref ref="AntiControlRollingLog"/> <appender-ref ref="AntiControlRollingLog"/>
...@@ -133,7 +135,9 @@ ...@@ -133,7 +135,9 @@
<param name="LevelMax" value="INFO"/> <param name="LevelMax" value="INFO"/>
</filter> </filter>
</appender> </appender>
</log4net> </log4net>
</configuration> </configuration>
...@@ -839,20 +839,29 @@ namespace GcDevicePc ...@@ -839,20 +839,29 @@ namespace GcDevicePc
if (File.Exists(filename)) if (File.Exists(filename))
{ {
string section = "信号"; string section = "信号";
gCMethodConfig.signal.u16ChannelA = (ushort)iniFile.ReadInteger(section, "通道A"); ushort.TryParse(iniFile.ReadString(section, "通道A"),out gCMethodConfig.signal.u16ChannelA );
gCMethodConfig.signal.u16ChannelB = (ushort)iniFile.ReadInteger(section, "通道B"); ushort.TryParse(iniFile.ReadString(section, "通道B"),out gCMethodConfig.signal.u16ChannelB);
// gCMethodConfig.signal.u16ChannelA = (ushort)iniFile.ReadString(section, "通道A");
// gCMethodConfig.signal.u16ChannelB = (ushort)iniFile.ReadString(section, "通道B");
if (iniFile.SectionExists(section))
{
}
for (int i = 0; i < 8; i++) for (int i = 0; i < 8; i++)
{ {
gCMethodConfig.signal.uDetA[i] = (ushort)iniFile.ReadInteger(section, "通道A检测器" + (i + 1).ToString()); ushort.TryParse( iniFile.ReadString(section, "通道A检测器" + (i + 1)),out gCMethodConfig.signal.uDetA[i]);
gCMethodConfig.signal.uDetB[i] = (ushort)iniFile.ReadInteger(section, "通道B检测器" + (i + 1).ToString()); ushort.TryParse(iniFile.ReadString(section, "通道B检测器" + (i + 1)) ,out gCMethodConfig.signal.uDetB[i]);
//gCMethodConfig.signal.uDetA[i] = (ushort)iniFile.ReadInteger(section, "通道A检测器" + (i + 1).ToString());
//gCMethodConfig.signal.uDetB[i] = (ushort)iniFile.ReadInteger(section, "通道B检测器" + (i + 1).ToString());
} }
for (int i = 0; i < 8; i++) for (int i = 0; i < 8; i++)
{ {
gCMethodConfig.signal.u16DetTimeLengthA[i] = (ushort)iniFile.ReadInteger(section, "通道A检测时间" + (i + 1).ToString()); ushort.TryParse(iniFile.ReadString(section, "通道A检测时间" + (i + 1)),out gCMethodConfig.signal.u16DetTimeLengthA[i]);
gCMethodConfig.signal.u16DetTimeLengthB[i] = (ushort)iniFile.ReadInteger(section, "通道B检测时间" + (i + 1).ToString()); ushort.TryParse(iniFile.ReadString(section, "通道B检测时间" + (i + 1)),out gCMethodConfig.signal.u16DetTimeLengthB[i]);
//gCMethodConfig.signal.u16DetTimeLengthA[i] = (ushort)iniFile.ReadInteger(section, "通道A检测时间" + (i + 1).ToString());
//gCMethodConfig.signal.u16DetTimeLengthB[i] = (ushort)iniFile.ReadInteger(section, "通道B检测时间" + (i + 1).ToString());
} }
} }
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button();
this.PasswordFree = new System.Windows.Forms.CheckBox(); this.PasswordFree = new System.Windows.Forms.CheckBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.SuspendLayout(); this.SuspendLayout();
// //
// label1 // label1
...@@ -59,7 +60,6 @@ ...@@ -59,7 +60,6 @@
this.textBox2.Name = "textBox2"; this.textBox2.Name = "textBox2";
this.textBox2.UseSystemPasswordChar = true; this.textBox2.UseSystemPasswordChar = true;
this.textBox2.Click += new System.EventHandler(this.textBox2_Click); this.textBox2.Click += new System.EventHandler(this.textBox2_Click);
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
// //
// button1 // button1
// //
...@@ -84,10 +84,18 @@ ...@@ -84,10 +84,18 @@
this.PasswordFree.UseVisualStyleBackColor = true; this.PasswordFree.UseVisualStyleBackColor = true;
this.PasswordFree.CheckedChanged += new System.EventHandler(this.PasswordFree_CheckedChanged); this.PasswordFree.CheckedChanged += new System.EventHandler(this.PasswordFree_CheckedChanged);
// //
// checkBox1
//
resources.ApplyResources(this.checkBox1, "checkBox1");
this.checkBox1.Name = "checkBox1";
this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// LandIn // LandIn
// //
resources.ApplyResources(this, "$this"); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.PasswordFree); this.Controls.Add(this.PasswordFree);
this.Controls.Add(this.button2); this.Controls.Add(this.button2);
this.Controls.Add(this.button1); this.Controls.Add(this.button1);
...@@ -111,5 +119,6 @@ ...@@ -111,5 +119,6 @@
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button2;
private System.Windows.Forms.CheckBox PasswordFree; private System.Windows.Forms.CheckBox PasswordFree;
private System.Windows.Forms.CheckBox checkBox1;
} }
} }
\ No newline at end of file
This diff is collapsed.
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve"> <data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>6</value> <value>7</value>
</data> </data>
<data name="label2.AutoSize" type="System.Boolean, mscorlib"> <data name="label2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;label2.ZOrder" xml:space="preserve"> <data name="&gt;&gt;label2.ZOrder" xml:space="preserve">
<value>5</value> <value>6</value>
</data> </data>
<data name="textBox1.Location" type="System.Drawing.Point, System.Drawing"> <data name="textBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>105, 35</value> <value>105, 35</value>
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;textBox1.ZOrder" xml:space="preserve"> <data name="&gt;&gt;textBox1.ZOrder" xml:space="preserve">
<value>4</value> <value>5</value>
</data> </data>
<data name="textBox2.Location" type="System.Drawing.Point, System.Drawing"> <data name="textBox2.Location" type="System.Drawing.Point, System.Drawing">
<value>105, 72</value> <value>105, 72</value>
...@@ -219,13 +219,13 @@ ...@@ -219,13 +219,13 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;textBox2.ZOrder" xml:space="preserve"> <data name="&gt;&gt;textBox2.ZOrder" xml:space="preserve">
<value>3</value> <value>4</value>
</data> </data>
<data name="button1.Font" type="System.Drawing.Font, System.Drawing"> <data name="button1.Font" type="System.Drawing.Font, System.Drawing">
<value>宋体, 12pt, style=Bold</value> <value>宋体, 12pt, style=Bold</value>
</data> </data>
<data name="button1.Location" type="System.Drawing.Point, System.Drawing"> <data name="button1.Location" type="System.Drawing.Point, System.Drawing">
<value>43, 116</value> <value>43, 125</value>
</data> </data>
<data name="button1.Size" type="System.Drawing.Size, System.Drawing"> <data name="button1.Size" type="System.Drawing.Size, System.Drawing">
<value>83, 39</value> <value>83, 39</value>
...@@ -246,13 +246,13 @@ ...@@ -246,13 +246,13 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;button1.ZOrder" xml:space="preserve"> <data name="&gt;&gt;button1.ZOrder" xml:space="preserve">
<value>2</value> <value>3</value>
</data> </data>
<data name="button2.Font" type="System.Drawing.Font, System.Drawing"> <data name="button2.Font" type="System.Drawing.Font, System.Drawing">
<value>宋体, 12pt, style=Bold</value> <value>宋体, 12pt, style=Bold</value>
</data> </data>
<data name="button2.Location" type="System.Drawing.Point, System.Drawing"> <data name="button2.Location" type="System.Drawing.Point, System.Drawing">
<value>152, 116</value> <value>152, 125</value>
</data> </data>
<data name="button2.Size" type="System.Drawing.Size, System.Drawing"> <data name="button2.Size" type="System.Drawing.Size, System.Drawing">
<value>77, 39</value> <value>77, 39</value>
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;button2.ZOrder" xml:space="preserve"> <data name="&gt;&gt;button2.ZOrder" xml:space="preserve">
<value>1</value> <value>2</value>
</data> </data>
<data name="PasswordFree.AutoSize" type="System.Boolean, mscorlib"> <data name="PasswordFree.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
...@@ -304,11 +304,38 @@ ...@@ -304,11 +304,38 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;PasswordFree.ZOrder" xml:space="preserve"> <data name="&gt;&gt;PasswordFree.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="checkBox1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="checkBox1.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="checkBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>97, 99</value>
</data>
<data name="checkBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>72, 16</value>
</data>
<data name="checkBox1.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="checkBox1.Text" xml:space="preserve">
<value>显示密码</value>
</data>
<data name="&gt;&gt;checkBox1.Name" xml:space="preserve">
<value>checkBox1</value>
</data>
<data name="&gt;&gt;checkBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;checkBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;checkBox1.ZOrder" xml:space="preserve">
<value>0</value> <value>0</value>
</data> </data>
<metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>en</value>
</metadata>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
......
...@@ -31,6 +31,7 @@ namespace GcDevicePc.Common ...@@ -31,6 +31,7 @@ namespace GcDevicePc.Common
if(globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.info_log) if(globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.info_log)
debugInfo.Info(msg); debugInfo.Info(msg);
} }
/// <summary> /// <summary>
/// 记录温控debug信息(全局记录) /// 记录温控debug信息(全局记录)
/// </summary> /// </summary>
...@@ -54,7 +55,7 @@ namespace GcDevicePc.Common ...@@ -54,7 +55,7 @@ namespace GcDevicePc.Common
if (globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.hmi_log) if (globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.hmi_log)
hmiInfo.Info(msg); hmiInfo.Info(msg);
} }
/// <summary> /// <summary>
/// 记录异常信息 /// 记录异常信息
/// </summary> /// </summary>
......
...@@ -81,7 +81,6 @@ ...@@ -81,7 +81,6 @@
this.InjPortBox.Name = "InjPortBox"; this.InjPortBox.Name = "InjPortBox";
this.InjPortBox.Size = new System.Drawing.Size(82, 20); this.InjPortBox.Size = new System.Drawing.Size(82, 20);
this.InjPortBox.TabIndex = 1; this.InjPortBox.TabIndex = 1;
this.InjPortBox.SelectedIndexChanged += new System.EventHandler(this.InjPortBox_SelectedIndexChanged);
// //
// cBox加热器 // cBox加热器
// //
......
...@@ -70,7 +70,7 @@ namespace GcDevicePc.ConfigDlg ...@@ -70,7 +70,7 @@ namespace GcDevicePc.ConfigDlg
} }
index = indexOld; index = indexOld;
tb加热.Text = CProfileDevice.m_DevParam.port[index].fHeaterSetTemp.ToString(); tb加热.Text = CProfileDevice.m_DevParam.port[index].fHeaterSetTemp.ToString();
tb压力设定.Text = CProfileDevice.m_DevParam.port[index].fSetPre.ToString(); tb压力设定.Text = CProfileDevice.m_DevParam.port[index].fSetPre.ToString();
tb总流量设定.Text = CProfileDevice.m_DevParam.port[index].fSetSumFlow.ToString(); tb总流量设定.Text = CProfileDevice.m_DevParam.port[index].fSetSumFlow.ToString();
......
...@@ -31,12 +31,12 @@ ...@@ -31,12 +31,12 @@
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MethodMain)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MethodMain));
this.paneltitle = new System.Windows.Forms.Panel(); this.paneltitle = new System.Windows.Forms.Panel();
this.label_MethodName = new System.Windows.Forms.Label();
this.maxbth = new System.Windows.Forms.Button(); this.maxbth = new System.Windows.Forms.Button();
this.closebth = new System.Windows.Forms.Button(); this.closebth = new System.Windows.Forms.Button();
this.mixbth = new System.Windows.Forms.Button(); this.mixbth = new System.Windows.Forms.Button();
this.panelmain = new System.Windows.Forms.Panel(); this.panelmain = new System.Windows.Forms.Panel();
this.tabmain = new GcDevicePc.ConfigMethod.TabContorlEx(); this.tabmain = new GcDevicePc.ConfigMethod.TabContorlEx();
//this.tabmain = new GcDevicePc.ConfigMethod.TabContorlEx(this.components);
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage();
this.tabPage3 = new System.Windows.Forms.TabPage(); this.tabPage3 = new System.Windows.Forms.TabPage();
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
this.tabPage7 = new System.Windows.Forms.TabPage(); this.tabPage7 = new System.Windows.Forms.TabPage();
this.tabPage8 = new System.Windows.Forms.TabPage(); this.tabPage8 = new System.Windows.Forms.TabPage();
this.methodimages = new System.Windows.Forms.ImageList(); this.methodimages = new System.Windows.Forms.ImageList();
//this.methodimages = new System.Windows.Forms.ImageList(this.components);
this.panelright = new System.Windows.Forms.Panel(); this.panelright = new System.Windows.Forms.Panel();
this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.savebth = new System.Windows.Forms.Button(); this.savebth = new System.Windows.Forms.Button();
...@@ -55,8 +54,6 @@ ...@@ -55,8 +54,6 @@
this.panelbottom = new System.Windows.Forms.Panel(); this.panelbottom = new System.Windows.Forms.Panel();
this.EnglishImageList1 = new System.Windows.Forms.ImageList(); this.EnglishImageList1 = new System.Windows.Forms.ImageList();
this.ChaineseImageList1 = new System.Windows.Forms.ImageList(); this.ChaineseImageList1 = new System.Windows.Forms.ImageList();
//this.EnglishImageList1 = new System.Windows.Forms.ImageList(this.components);
//this.ChaineseImageList1 = new System.Windows.Forms.ImageList(this.components);
this.paneltitle.SuspendLayout(); this.paneltitle.SuspendLayout();
this.panelmain.SuspendLayout(); this.panelmain.SuspendLayout();
this.tabmain.SuspendLayout(); this.tabmain.SuspendLayout();
...@@ -67,6 +64,7 @@ ...@@ -67,6 +64,7 @@
// paneltitle // paneltitle
// //
this.paneltitle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(240))))); this.paneltitle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(240)))));
this.paneltitle.Controls.Add(this.label_MethodName);
this.paneltitle.Controls.Add(this.maxbth); this.paneltitle.Controls.Add(this.maxbth);
this.paneltitle.Controls.Add(this.closebth); this.paneltitle.Controls.Add(this.closebth);
this.paneltitle.Controls.Add(this.mixbth); this.paneltitle.Controls.Add(this.mixbth);
...@@ -76,6 +74,12 @@ ...@@ -76,6 +74,12 @@
this.paneltitle.MouseMove += new System.Windows.Forms.MouseEventHandler(this.paneltitle_MouseMove); this.paneltitle.MouseMove += new System.Windows.Forms.MouseEventHandler(this.paneltitle_MouseMove);
this.paneltitle.MouseUp += new System.Windows.Forms.MouseEventHandler(this.paneltitle_MouseUp); this.paneltitle.MouseUp += new System.Windows.Forms.MouseEventHandler(this.paneltitle_MouseUp);
// //
// label_MethodName
//
resources.ApplyResources(this.label_MethodName, "label_MethodName");
this.label_MethodName.Name = "label_MethodName";
this.label_MethodName.MouseHover += new System.EventHandler(this.label_MethodName_MouseHover);
//
// maxbth // maxbth
// //
this.maxbth.BackColor = System.Drawing.Color.Silver; this.maxbth.BackColor = System.Drawing.Color.Silver;
...@@ -271,6 +275,7 @@ ...@@ -271,6 +275,7 @@
this.EnglishImageList1.Images.SetKeyName(21, "检测器.png"); this.EnglishImageList1.Images.SetKeyName(21, "检测器.png");
this.EnglishImageList1.Images.SetKeyName(22, "信号.png"); this.EnglishImageList1.Images.SetKeyName(22, "信号.png");
this.EnglishImageList1.Images.SetKeyName(23, "辅助.png"); this.EnglishImageList1.Images.SetKeyName(23, "辅助.png");
//this.EnglishImageList1.Images.SetKeyName(24, "");
// //
// ChaineseImageList1 // ChaineseImageList1
// //
...@@ -312,9 +317,9 @@ ...@@ -312,9 +317,9 @@
this.Controls.Add(this.paneltitle); this.Controls.Add(this.paneltitle);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "MethodMain"; this.Name = "MethodMain";
this.TopMost = true;
this.Load += new System.EventHandler(this.MethodMain_Load); this.Load += new System.EventHandler(this.MethodMain_Load);
this.paneltitle.ResumeLayout(false); this.paneltitle.ResumeLayout(false);
this.paneltitle.PerformLayout();
this.panelmain.ResumeLayout(false); this.panelmain.ResumeLayout(false);
this.tabmain.ResumeLayout(false); this.tabmain.ResumeLayout(false);
this.panelright.ResumeLayout(false); this.panelright.ResumeLayout(false);
...@@ -348,5 +353,6 @@ ...@@ -348,5 +353,6 @@
private System.Windows.Forms.ImageList EnglishImageList1; private System.Windows.Forms.ImageList EnglishImageList1;
private System.Windows.Forms.ImageList ChaineseImageList1; private System.Windows.Forms.ImageList ChaineseImageList1;
private System.Windows.Forms.Button savebth; private System.Windows.Forms.Button savebth;
private System.Windows.Forms.Label label_MethodName;
} }
} }
\ No newline at end of file
...@@ -238,6 +238,13 @@ namespace GcDevicePc.ConfigMethod ...@@ -238,6 +238,13 @@ namespace GcDevicePc.ConfigMethod
//m_iPPIP.reflashContent(); //m_iPPIP.reflashContent();
//m_iPSPL.reflashContent(); //m_iPSPL.reflashContent();
//m_iPVAL.reflashContent(); //m_iPVAL.reflashContent();
label_MethodName.Text=this.gcmethodconfig.savefilename;
int len=label_MethodName.Text.Length;
if (label_MethodName.Text.Length>96)
{
label_MethodName.Text=label_MethodName.Text.Substring(0,96)+"...";
}
Console.WriteLine(len);
} }
private void MethodMain_Load(object sender, EventArgs e) private void MethodMain_Load(object sender, EventArgs e)
{ {
...@@ -583,5 +590,10 @@ namespace GcDevicePc.ConfigMethod ...@@ -583,5 +590,10 @@ namespace GcDevicePc.ConfigMethod
{ {
// StartForm._mMainForm.Activate(); // StartForm._mMainForm.Activate();
} }
private void label_MethodName_MouseHover(object sender, EventArgs e)
{
tip.Show(this.gcmethodconfig.savefilename,this.label_MethodName);
}
} }
} }
This diff is collapsed.
...@@ -243,7 +243,7 @@ namespace GcDevicePc ...@@ -243,7 +243,7 @@ namespace GcDevicePc
void CallWithTimeout(Action action, int timeoutMilliseconds) void CallWithTimeout(Action action, int timeoutMilliseconds)
{ {
Thread threadToKill = null; Thread threadToKill = null;
Action wrappedAction = () => Action wrappedAction = () =>
{ {
threadToKill = Thread.CurrentThread; threadToKill = Thread.CurrentThread;
action(); action();
......
This diff is collapsed.
...@@ -180,6 +180,24 @@ ...@@ -180,6 +180,24 @@
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\..\..\..\TTControl\CounterControl.cs">
<Link>TTControl\CounterControl.cs</Link>
</Compile>
<Compile Include="..\..\..\..\TTControl\UniversalPopUpWindow.cs">
<Link>TTControl\UniversalPopUpWindow.cs</Link>
<SubType>Form</SubType>
</Compile>
<Compile Include="..\..\..\..\TTControl\UserControl_PopUp.cs">
<Link>TTControl\UserControl_PopUp.cs</Link>
<SubType>UserControl</SubType>
</Compile>
<Compile Include="..\..\..\..\TTControl\UserControl_PopUp.designer.cs">
<Link>TTControl\UserControl_PopUp.designer.cs</Link>
<DependentUpon>UserControl_PopUp.cs</DependentUpon>
</Compile>
<Compile Include="..\..\..\..\TTControl\WindowsAPI.cs">
<Link>TTControl\WindowsAPI.cs</Link>
</Compile>
<Compile Include="AboutForm.cs"> <Compile Include="AboutForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -770,6 +788,10 @@ ...@@ -770,6 +788,10 @@
<Compile Include="WaitForm.Designer.cs"> <Compile Include="WaitForm.Designer.cs">
<DependentUpon>WaitForm.cs</DependentUpon> <DependentUpon>WaitForm.cs</DependentUpon>
</Compile> </Compile>
<EmbeddedResource Include="..\..\..\..\TTControl\UserControl_PopUp.resx">
<Link>TTControl\UserControl_PopUp.resx</Link>
<DependentUpon>UserControl_PopUp.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="AboutForm.en.resx"> <EmbeddedResource Include="AboutForm.en.resx">
<DependentUpon>AboutForm.cs</DependentUpon> <DependentUpon>AboutForm.cs</DependentUpon>
<SubType>Designer</SubType> <SubType>Designer</SubType>
......
...@@ -81,7 +81,6 @@ ...@@ -81,7 +81,6 @@
this.backgroundWorker2 = new System.ComponentModel.BackgroundWorker(); this.backgroundWorker2 = new System.ComponentModel.BackgroundWorker();
this.timerWorker = new System.Windows.Forms.Timer(this.components); this.timerWorker = new System.Windows.Forms.Timer(this.components);
this.timer2 = new System.Windows.Forms.Timer(this.components); this.timer2 = new System.Windows.Forms.Timer(this.components);
this.userControl_PopUp1 = new WindowsFormsControlLibrary_PopUp.UserControl_PopUp();
this.menuStrip.SuspendLayout(); this.menuStrip.SuspendLayout();
this.statusStrip.SuspendLayout(); this.statusStrip.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
...@@ -434,17 +433,10 @@ ...@@ -434,17 +433,10 @@
this.timer2.Interval = 1000; this.timer2.Interval = 1000;
this.timer2.Tick += new System.EventHandler(this.timer2_Tick); this.timer2.Tick += new System.EventHandler(this.timer2_Tick);
// //
// userControl_PopUp1
//
resources.ApplyResources(this.userControl_PopUp1, "userControl_PopUp1");
this.userControl_PopUp1.Name = "userControl_PopUp1";
this.userControl_PopUp1.PopUpMsg = "cs2";
//
// MDIBase // MDIBase
// //
resources.ApplyResources(this, "$this"); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.userControl_PopUp1);
this.Controls.Add(this.statusStrip); this.Controls.Add(this.statusStrip);
this.Controls.Add(this.menuStrip); this.Controls.Add(this.menuStrip);
this.DoubleBuffered = true; this.DoubleBuffered = true;
...@@ -518,7 +510,6 @@ ...@@ -518,7 +510,6 @@
private System.Windows.Forms.ToolStripStatusLabel MacToolStripStatusLabel1; private System.Windows.Forms.ToolStripStatusLabel MacToolStripStatusLabel1;
private System.Windows.Forms.ToolStripMenuItem sysconfigpSec; private System.Windows.Forms.ToolStripMenuItem sysconfigpSec;
private System.Windows.Forms.ToolStripStatusLabel tool_CounterControlStatus; private System.Windows.Forms.ToolStripStatusLabel tool_CounterControlStatus;
private WindowsFormsControlLibrary_PopUp.UserControl_PopUp userControl_PopUp1;
} }
} }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -290,26 +290,26 @@ namespace GcDevicePc.ProThread ...@@ -290,26 +290,26 @@ namespace GcDevicePc.ProThread
#endregion #endregion
// public static ArrayList channelSum = new ArrayList() {channelA_A,channelA_B,channelA_C,channelB_A,channelB_B,channelB_C }; // public static ArrayList channelSum = new ArrayList() {channelA_A,channelA_B,channelA_C,channelB_A,channelB_B,channelB_C };
#region 是否向第三方工作站(HL3000ZB2040)传输所有信号值(具体传输频率在各自senddata子类中) #region 是否向第三方工作站(HL3000ZB2040)传输所有信号值(具体传输频率在各自senddata子类中)
if (globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtohw || globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtoZb) //if (globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtohw || globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtoZb)
{ //{
lock (globaldata.channelA_A) // lock (globaldata.channelA_A)
{ // {
Thread.Sleep(1); // Thread.Sleep(1);
if (globaldata.channelA_A.Count < globaldata.MAX_ARRAY_LEN) // 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)
{ // {
Thread.Sleep(1); // Thread.Sleep(1);
if (globaldata.channelB_A.Count < globaldata.MAX_ARRAY_LEN) // 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));
} // }
} // }
} //}
#endregion #endregion
...@@ -392,25 +392,25 @@ namespace GcDevicePc.ProThread ...@@ -392,25 +392,25 @@ namespace GcDevicePc.ProThread
{ {
globaldata.m_signalbuffer.Save_Port2.Add(globaldata.m_signalbuffer.Channel2_Port); globaldata.m_signalbuffer.Save_Port2.Add(globaldata.m_signalbuffer.Channel2_Port);
} }
if (globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtohw || globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtoZb) //if (globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtohw || globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtoZb)
{ //{
lock (globaldata.channelA_B) // lock (globaldata.channelA_B)
{ // {
Thread.Sleep(1); // Thread.Sleep(1);
if (globaldata.channelA_B.Count < globaldata.MAX_ARRAY_LEN) // if (globaldata.channelA_B.Count < globaldata.MAX_ARRAY_LEN)
{ // {
globaldata.channelA_B.Add((long)(fidv[i] * 1000000)); // globaldata.channelA_B.Add((long)(fidv[i] * 1000000));
} // }
} // }
lock (globaldata.channelB_B) // lock (globaldata.channelB_B)
{ // {
if (globaldata.channelB_B.Count < globaldata.MAX_ARRAY_LEN) // if (globaldata.channelB_B.Count < globaldata.MAX_ARRAY_LEN)
{ // {
globaldata.channelB_B.Add((long)(fidv[i] * 1000000)); // globaldata.channelB_B.Add((long)(fidv[i] * 1000000));
} // }
} // }
} //}
} }
} }
} }
...@@ -486,27 +486,27 @@ namespace GcDevicePc.ProThread ...@@ -486,27 +486,27 @@ namespace GcDevicePc.ProThread
{ {
globaldata.m_signalbuffer.Save_Port3.Add(globaldata.m_signalbuffer.Channel3_Port); globaldata.m_signalbuffer.Save_Port3.Add(globaldata.m_signalbuffer.Channel3_Port);
} }
if (globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtohw || globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtoZb) //if (globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtohw || globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.sendtoZb)
{ //{
lock (globaldata.channelA_C) // lock (globaldata.channelA_C)
{ // {
Thread.Sleep(1); // Thread.Sleep(1);
if (globaldata.channelA_C.Count < globaldata.MAX_ARRAY_LEN) // if (globaldata.channelA_C.Count < globaldata.MAX_ARRAY_LEN)
{ // {
globaldata.channelA_C.Add((long)(fidv[i] * 1000000)); // globaldata.channelA_C.Add((long)(fidv[i] * 1000000));
} // }
} // }
lock (globaldata.channelB_C) // lock (globaldata.channelB_C)
{ // {
Thread.Sleep(1); // Thread.Sleep(1);
if (globaldata.channelB_C.Count < globaldata.MAX_ARRAY_LEN) // if (globaldata.channelB_C.Count < globaldata.MAX_ARRAY_LEN)
{ // {
globaldata.channelB_C.Add((long)(fidv[i] * 1000000)); // globaldata.channelB_C.Add((long)(fidv[i] * 1000000));
} // }
} // }
} //}
} }
} }
...@@ -1391,6 +1391,9 @@ namespace GcDevicePc.ProThread ...@@ -1391,6 +1391,9 @@ namespace GcDevicePc.ProThread
#region HMI状态通道状态 #region HMI状态通道状态
ManualResetEvent channelmre = new ManualResetEvent(false); ManualResetEvent channelmre = new ManualResetEvent(false);
/// <summary>
/// 开始检测器数据获取线程
/// </summary>
public void ChannelDataStart() public void ChannelDataStart()
{ {
if (channelmre != null) if (channelmre != null)
...@@ -1402,7 +1405,9 @@ namespace GcDevicePc.ProThread ...@@ -1402,7 +1405,9 @@ namespace GcDevicePc.ProThread
t_GetChannelData.Start(); t_GetChannelData.Start();
} }
/// <summary>
/// 停止检测器数据获取线程
/// </summary>
public void ChannelDataStop() public void ChannelDataStop()
{ {
channelmre.Set(); channelmre.Set();
......
This diff is collapsed.
...@@ -278,6 +278,7 @@ namespace GcDevicePc.ProThread ...@@ -278,6 +278,7 @@ namespace GcDevicePc.ProThread
ushort countDown = (ushort)(usSearchTime / 10);//限定时间,用于倒计时判定 ushort countDown = (ushort)(usSearchTime / 10);//限定时间,用于倒计时判定
while (countDown > 0) while (countDown > 0)
{ {
for (int i = 0; i < _localip.Count; i++) for (int i = 0; i < _localip.Count; i++)
{ {
sLocalIPIndex = i; sLocalIPIndex = i;
...@@ -312,8 +313,8 @@ namespace GcDevicePc.ProThread ...@@ -312,8 +313,8 @@ namespace GcDevicePc.ProThread
if (DoRecvDataCallBack(recvBytes, iReadBytes) == true) if (DoRecvDataCallBack(recvBytes, iReadBytes) == true)
{ {
IsOnline = true; IsOnline = true;
continue; // continue;
// break; break;
} // continue; } // continue;
if (countDown > 2 || countDown == 2) if (countDown > 2 || countDown == 2)
{ {
......
...@@ -66,7 +66,7 @@ namespace GcDevicePc.ProThread ...@@ -66,7 +66,7 @@ namespace GcDevicePc.ProThread
switch (CurStationType) switch (CurStationType)
{ {
case StationType.ZB: GcSendDataToZB(data1, data2, data3); break; case StationType.ZB: GcSendDataToZB(data1, data2, data3); break;
case StationType.HW: GcSendDataToHW(data1, data2, data3); break; case StationType.HW: GcSendDataToHW(data1, data2, data3);break;
} }
}//依据工作站类型调用不同的dll }//依据工作站类型调用不同的dll
...@@ -432,7 +432,7 @@ namespace GcDevicePc.ProThread ...@@ -432,7 +432,7 @@ namespace GcDevicePc.ProThread
{ {
continue; continue;
} }
//新增特殊发送方式,这里进行是特殊还是常规判断 //新增特殊发送方式,这里进行是特殊还是常规判断
bool run_start = false; bool run_start = false;
switch (CurSendType) switch (CurSendType)
...@@ -798,7 +798,7 @@ namespace GcDevicePc.ProThread ...@@ -798,7 +798,7 @@ namespace GcDevicePc.ProThread
else else
{ {
ISsend = false; ISsend = false;
} }
break; break;
} }
}//传输数据 }//传输数据
......
using GcDevicePc.DrawUI; using GcDevicePc.DrawUI;
using Microsoft.Win32;
using SpaceM; using SpaceM;
using System; using System;
using System.Diagnostics;
using System.Globalization; using System.Globalization;
using System.Threading; using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
...@@ -13,6 +15,13 @@ namespace GcDevicePc ...@@ -13,6 +15,13 @@ namespace GcDevicePc
[STAThread] [STAThread]
static void Main() static void Main()
{ {
#region 用于记录未响应前一些信息,还未测试,没有找到主动触发未响应的方法
//Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
//添加非UI上的异常.
//AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
#endregion
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
#if ENABLE_DOUBLEST_STARTUP #if ENABLE_DOUBLEST_STARTUP
...@@ -68,5 +77,36 @@ namespace GcDevicePc ...@@ -68,5 +77,36 @@ namespace GcDevicePc
#endif #endif
} }
/// <summary>
/// 用于记录未响应前一些信息,还未测试,没有找到主动触发未响应的方法
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
try
{
Exception ex = (Exception)e.ExceptionObject;
WriteLog(ex.Message + "\n\nStack Trace:\n" + ex.StackTrace);
}
catch (Exception exc)
{
try
{
MessageBox.Show(" Error",
" Could not write the error to the log. Reason: "
+ exc.Message, MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
finally
{
Application.Exit();
}
}
}
static void WriteLog(string str)
{
Trace.WriteLine(str);
}
} }
} }
...@@ -111,11 +111,14 @@ namespace GcDevicePc ...@@ -111,11 +111,14 @@ namespace GcDevicePc
offlinebth.Visible = true; offlinebth.Visible = true;
offlinebth.Enabled = true; offlinebth.Enabled = true;
} }
/// <summary>
/// startup.ini操作
/// </summary>
INIOperation ini_startup ;
public StartForm() public StartForm()
{ {
InitializeComponent(); InitializeComponent();
#if !Use_English_Folder #if !Use_English_Folder
CKVocAnalyzer.GlobalCKV.bUseEnglishFolder = false; CKVocAnalyzer.GlobalCKV.bUseEnglishFolder = false;
// 采样方法路径 // 采样方法路径
...@@ -131,8 +134,8 @@ namespace GcDevicePc ...@@ -131,8 +134,8 @@ namespace GcDevicePc
#else #else
string file = Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.StartupPath), "GC_Config\\GC_Set\\启动参数\\startup.ini"); string file = Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.StartupPath), "GC_Config\\GC_Set\\启动参数\\startup.ini");
#endif #endif
INIOperation ini = new INIOperation(file); ini_startup = new INIOperation(file);
string strStartLog = ini.INIGetStringValue("StartUp", "开机界面",null); string strStartLog = ini_startup.INIGetStringValue("StartUp", "开机界面",null);
int usStartLogIndex = 0; int usStartLogIndex = 0;
if(int.TryParse(strStartLog,out usStartLogIndex) == true && usStartLogIndex == 1) if(int.TryParse(strStartLog,out usStartLogIndex) == true && usStartLogIndex == 1)
...@@ -167,9 +170,8 @@ namespace GcDevicePc ...@@ -167,9 +170,8 @@ namespace GcDevicePc
//_mMainForm = new MDIBase(); //_mMainForm = new MDIBase();
StartFormbgWorker.CancelAsync(); StartFormbgWorker.CancelAsync();
this.ShowInTaskbar=false; this.ShowInTaskbar=false;
Hide();
_mMainForm.Show(); _mMainForm.Show();
this.Hide();
} }
} }
...@@ -208,13 +210,8 @@ namespace GcDevicePc ...@@ -208,13 +210,8 @@ namespace GcDevicePc
_appInitInfo = bEnglishLanguage == false ? "检测本地网络":"Detect local network"; _appInitInfo = bEnglishLanguage == false ? "检测本地网络":"Detect local network";
globaldata.m_appinit.LocalNetworkCheck(); globaldata.m_appinit.LocalNetworkCheck();
_appInitInfo = bEnglishLanguage == false ? "搜寻设备": "Search For Equipment"; _appInitInfo = bEnglishLanguage == false ? "搜寻设备": "Search For Equipment";
#if Use_English_Folder
string file = Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.StartupPath), "GC_Config\\GC_Set\\Startup\\startup.ini"); string strSearch = ini_startup.INIGetStringValue("NetWorkConfig", "MAC地址", null);
#else
string file = Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.StartupPath), "GC_Config\\GC_Set\\启动参数\\startup.ini");
#endif
INIOperation test = new INIOperation(file);
string strSearch = test.INIGetStringValue("NetWorkConfig", "MAC地址", null);
bool bCanFindBindHMI = false; bool bCanFindBindHMI = false;
bool bShowBindOver = false; bool bShowBindOver = false;
SearchHMIThread.Start(); //启动线程 SearchHMIThread.Start(); //启动线程
...@@ -297,6 +294,8 @@ namespace GcDevicePc ...@@ -297,6 +294,8 @@ namespace GcDevicePc
_appInitInfo = ret ? (bEnglishLanguage == false ? "同步GC配置完成" : "Synchronous GC configuration completed") : (bEnglishLanguage == false ? "同步GC配置失败": "Synchronization configuration failed"); _appInitInfo = ret ? (bEnglishLanguage == false ? "同步GC配置完成" : "Synchronous GC configuration completed") : (bEnglishLanguage == false ? "同步GC配置失败": "Synchronization configuration failed");
_appInitInfo = bEnglishLanguage == false ? "加载配置完成" : "Loading Configuration"; _appInitInfo = bEnglishLanguage == false ? "加载配置完成" : "Loading Configuration";
globaldata.m_appinit.InitAppDefaultConfig(); globaldata.m_appinit.InitAppDefaultConfig();
//窗体控件预加载
} }
private void StartFormbgWorker_DoWork(object sender, DoWorkEventArgs e) private void StartFormbgWorker_DoWork(object sender, DoWorkEventArgs e)
...@@ -348,9 +347,8 @@ namespace GcDevicePc ...@@ -348,9 +347,8 @@ namespace GcDevicePc
#else #else
string file = Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.StartupPath), "GC_Config\\GC_Set\\启动参数\\startup.ini"); string file = Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.StartupPath), "GC_Config\\GC_Set\\启动参数\\startup.ini");
#endif #endif
INIOperation test = new INIOperation(file); ini_startup.INIWriteValue(file, "NetWorkConfig", "MAC地址", ((globaldata.DeviceInfo)globaldata.DeviceList[HMIMACComboBox1.SelectedIndex]).MacAddr);
test.INIWriteValue(file, "NetWorkConfig", "MAC地址", ((globaldata.DeviceInfo)globaldata.DeviceList[HMIMACComboBox1.SelectedIndex]).MacAddr); ini_startup.INIWriteValue(file, "NetWorkConfig", "网口", ((globaldata.DeviceInfo)globaldata.DeviceList[HMIMACComboBox1.SelectedIndex]).AdaptName);
test.INIWriteValue(file, "NetWorkConfig", "网口", ((globaldata.DeviceInfo)globaldata.DeviceList[HMIMACComboBox1.SelectedIndex]).AdaptName);
} }
catch catch
{ {
...@@ -359,7 +357,12 @@ namespace GcDevicePc ...@@ -359,7 +357,12 @@ namespace GcDevicePc
private void vSearch_HMI_Poll() private void vSearch_HMI_Poll()
{ {
// Thread.Sleep(10000); //延时10S等待HMI开机,改为用户指定(选项) if (ini_startup.INIGetStringValue("Version", "VersionType","0")=="1")
{
//在线仪器延时10S等待HMI开机,有时候HMI未启动,PC启动出现搜索不到
Thread.Sleep(10000);
}
HMISearch mysearch = new HMISearch(globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.hmimac); HMISearch mysearch = new HMISearch(globaldata.m_pcbuffer.gcpcinfo.pcworkinfo.hmimac);
// mysearch.bSearch_Bind_HMI(); // mysearch.bSearch_Bind_HMI();
bStartSearchOK = true; bStartSearchOK = true;
...@@ -383,5 +386,7 @@ namespace GcDevicePc ...@@ -383,5 +386,7 @@ namespace GcDevicePc
{ {
System.Environment.Exit(0); System.Environment.Exit(0);
} }
} }
} }
...@@ -520,9 +520,6 @@ ...@@ -520,9 +520,6 @@
AAA= AAA=
</value> </value>
</data> </data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms"> <data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterScreen</value> <value>CenterScreen</value>
</data> </data>
......
...@@ -549,7 +549,6 @@ namespace GcDevicePc ...@@ -549,7 +549,6 @@ namespace GcDevicePc
WaitForm form; WaitForm form;
private void Button1_Click(object sender, EventArgs e) private void Button1_Click(object sender, EventArgs e)
{ {
MDIBase.Get_Set_CounterControl();
Task.Run(() => { SaveSetting(); }); Task.Run(() => { SaveSetting(); });
backgroundWorker1.DoWork += new DoWorkEventHandler(backgroundWorker1_DoWork); backgroundWorker1.DoWork += new DoWorkEventHandler(backgroundWorker1_DoWork);
this.backgroundWorker1.RunWorkerAsync(); //运行backgroundWorker组件 this.backgroundWorker1.RunWorkerAsync(); //运行backgroundWorker组件
...@@ -1191,5 +1190,19 @@ namespace GcDevicePc ...@@ -1191,5 +1190,19 @@ namespace GcDevicePc
{ {
ToolTip1.Show("触发进样器的开始或停止", comboBox_FollowStop, 3000); ToolTip1.Show("触发进样器的开始或停止", comboBox_FollowStop, 3000);
} }
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if ( checkBox1.Checked)
{
this.textBox2.UseSystemPasswordChar = false;
this.textBox3.UseSystemPasswordChar = false;
}
else
{
this.textBox2.UseSystemPasswordChar = true;
this.textBox3.UseSystemPasswordChar = true;
}
}
} }
} }
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -61,17 +61,21 @@ ...@@ -61,17 +61,21 @@
this.button_CloudBox = new System.Windows.Forms.Button(); this.button_CloudBox = new System.Windows.Forms.Button();
this.btn_TempTrend = new System.Windows.Forms.Button(); this.btn_TempTrend = new System.Windows.Forms.Button();
this.fidfire = new System.Windows.Forms.Timer(this.components); this.fidfire = new System.Windows.Forms.Timer(this.components);
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.button2 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components); this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.groupBox2 = new System.Windows.Forms.GroupBox(); this.groupBox2 = new System.Windows.Forms.GroupBox();
this.comboBox1 = new System.Windows.Forms.ComboBox(); this.comboBox1 = new System.Windows.Forms.ComboBox();
this.button_Send = new System.Windows.Forms.Button(); this.button_Send = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.groupBox8.SuspendLayout(); this.groupBox8.SuspendLayout();
this.groupBox5.SuspendLayout(); this.groupBox5.SuspendLayout();
this.groupBox6.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
...@@ -141,6 +145,14 @@ ...@@ -141,6 +145,14 @@
// //
// groupBox8 // groupBox8
// //
this.groupBox8.Controls.Add(this.button2);
this.groupBox8.Controls.Add(this.button7);
this.groupBox8.Controls.Add(this.button1);
this.groupBox8.Controls.Add(this.button8);
this.groupBox8.Controls.Add(this.button3);
this.groupBox8.Controls.Add(this.button4);
this.groupBox8.Controls.Add(this.button5);
this.groupBox8.Controls.Add(this.button6);
this.groupBox8.Controls.Add(this.hair_a2); this.groupBox8.Controls.Add(this.hair_a2);
this.groupBox8.Controls.Add(this.hair_h2); this.groupBox8.Controls.Add(this.hair_h2);
this.groupBox8.Controls.Add(this.hair_a1); this.groupBox8.Controls.Add(this.hair_a1);
...@@ -293,18 +305,11 @@ ...@@ -293,18 +305,11 @@
this.fidfire.Interval = 1000; this.fidfire.Interval = 1000;
this.fidfire.Tick += new System.EventHandler(this.fidfire_Tick); this.fidfire.Tick += new System.EventHandler(this.fidfire_Tick);
// //
// groupBox6
//
this.groupBox6.Controls.Add(this.button2);
this.groupBox6.Controls.Add(this.button1);
resources.ApplyResources(this.groupBox6, "groupBox6");
this.groupBox6.Name = "groupBox6";
this.groupBox6.TabStop = false;
//
// button2 // button2
// //
resources.ApplyResources(this.button2, "button2"); resources.ApplyResources(this.button2, "button2");
this.button2.Name = "button2"; this.button2.Name = "button2";
this.button2.Tag = "0";
this.button2.UseVisualStyleBackColor = true; this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.Button2_Click); this.button2.Click += new System.EventHandler(this.Button2_Click);
// //
...@@ -312,6 +317,7 @@ ...@@ -312,6 +317,7 @@
// //
resources.ApplyResources(this.button1, "button1"); resources.ApplyResources(this.button1, "button1");
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Tag = "0";
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.Button1_Click); this.button1.Click += new System.EventHandler(this.Button1_Click);
// //
...@@ -351,12 +357,53 @@ ...@@ -351,12 +357,53 @@
this.button_Send.UseVisualStyleBackColor = true; this.button_Send.UseVisualStyleBackColor = true;
this.button_Send.Click += new System.EventHandler(this.button_Send_Click); this.button_Send.Click += new System.EventHandler(this.button_Send_Click);
// //
// button3
//
resources.ApplyResources(this.button3, "button3");
this.button3.Name = "button3";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
resources.ApplyResources(this.button4, "button4");
this.button4.Name = "button4";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button5
//
resources.ApplyResources(this.button5, "button5");
this.button5.Name = "button5";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// button6
//
resources.ApplyResources(this.button6, "button6");
this.button6.Name = "button6";
this.button6.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// button7
//
resources.ApplyResources(this.button7, "button7");
this.button7.Name = "button7";
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// button8
//
resources.ApplyResources(this.button8, "button8");
this.button8.Name = "button8";
this.button8.UseVisualStyleBackColor = true;
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// auxtool // auxtool
// //
resources.ApplyResources(this, "$this"); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox6);
this.Controls.Add(this.groupBox5); this.Controls.Add(this.groupBox5);
this.Controls.Add(this.groupBox8); this.Controls.Add(this.groupBox8);
this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox1);
...@@ -371,7 +418,6 @@ ...@@ -371,7 +418,6 @@
this.groupBox8.ResumeLayout(false); this.groupBox8.ResumeLayout(false);
this.groupBox5.ResumeLayout(false); this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout(); this.groupBox5.PerformLayout();
this.groupBox6.ResumeLayout(false);
this.groupBox2.ResumeLayout(false); this.groupBox2.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
...@@ -407,7 +453,6 @@ ...@@ -407,7 +453,6 @@
private System.Windows.Forms.TextBox tcddac1; private System.Windows.Forms.TextBox tcddac1;
private System.Windows.Forms.Button fireupbtnI; private System.Windows.Forms.Button fireupbtnI;
private System.Windows.Forms.Timer fidfire; private System.Windows.Forms.Timer fidfire;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
private System.Windows.Forms.ToolTip ToolTip1; private System.Windows.Forms.ToolTip ToolTip1;
...@@ -417,5 +462,11 @@ ...@@ -417,5 +462,11 @@
private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Button button_Send; private System.Windows.Forms.Button button_Send;
private System.Windows.Forms.ComboBox comboBox1; private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
} }
} }
\ No newline at end of file
...@@ -14,6 +14,7 @@ using System.Globalization; ...@@ -14,6 +14,7 @@ using System.Globalization;
using GcDevicePc.DrawUI; using GcDevicePc.DrawUI;
using System.Net.Sockets; using System.Net.Sockets;
using System.Net; using System.Net;
using GcDevicePc.ProThread;
namespace GcDevicePc namespace GcDevicePc
{ {
...@@ -25,8 +26,8 @@ namespace GcDevicePc ...@@ -25,8 +26,8 @@ namespace GcDevicePc
public delegate void TCD_SW(ushort port); public delegate void TCD_SW(ushort port);
public delegate void TCD_SetDAC(ushort port, ushort val); public delegate void TCD_SetDAC(ushort port, ushort val);
public delegate void HAir_SW(int val); public delegate void DelALLSwitch(SwitchAddress switchAddress, ushort uActiveIntervention);
public delegate void Adjust_SW(int val); //public delegate void Adjust_SW(int val);
public partial class auxtool : Form public partial class auxtool : Form
{ {
//private string HmiIP = null; //private string HmiIP = null;
...@@ -212,25 +213,25 @@ namespace GcDevicePc ...@@ -212,25 +213,25 @@ namespace GcDevicePc
} }
} }
public event HAir_SW hairsw; public event DelALLSwitch delALLSwitch;
private void hair_h1_Click(object sender, EventArgs e) private void hair_h1_Click(object sender, EventArgs e)
{ {
hairsw(1); delALLSwitch(SwitchAddress.ValH2_1_Add, 0);
} }
private void hair_a1_Click(object sender, EventArgs e) private void hair_a1_Click(object sender, EventArgs e)
{ {
hairsw(2); delALLSwitch(SwitchAddress.ValAIR_1_Add, 0);
} }
private void hair_h2_Click(object sender, EventArgs e) private void hair_h2_Click(object sender, EventArgs e)
{ {
hairsw(3); delALLSwitch(SwitchAddress.ValH2_2_Add, 0);
} }
private void hair_a2_Click(object sender, EventArgs e) private void hair_a2_Click(object sender, EventArgs e)
{ {
hairsw(4); delALLSwitch(SwitchAddress.ValAIR_2_Add, 0);
} }
public event TCD_SetDAC gctcd_setdac; public event TCD_SetDAC gctcd_setdac;
...@@ -568,16 +569,51 @@ namespace GcDevicePc ...@@ -568,16 +569,51 @@ namespace GcDevicePc
{ {
fidfire.Stop(); fidfire.Stop();
} }
//public event Adjust_SW adsw;
public event Adjust_SW adsw; /// <summary>
/// 校标
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void Button1_Click(object sender, EventArgs e) private void Button1_Click(object sender, EventArgs e)
{ {
adsw(1); if (button1.Tag.ToString() == "0")
} {
button1.Tag = "1";
//只开启RL11,关闭RL12
delALLSwitch(SwitchAddress.ValRL11_Add, 1);
delALLSwitch(SwitchAddress.ValRL12_Add, 2);
}
else
{
button1.Tag = "0";
//全关
delALLSwitch(SwitchAddress.ValRL11_Add, 2);
delALLSwitch(SwitchAddress.ValRL12_Add, 2);
}
}
/// <summary>
/// 校零
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void Button2_Click(object sender, EventArgs e) private void Button2_Click(object sender, EventArgs e)
{ {
adsw(0); if (button2.Tag.ToString() == "0")
{
button2.Tag = "1";
//开启RL11,RL12
delALLSwitch(SwitchAddress.ValRL11_Add, 1);
delALLSwitch(SwitchAddress.ValRL12_Add, 1);
}
else
{
button2.Tag = "0";
//全关
delALLSwitch(SwitchAddress.ValRL11_Add, 2);
delALLSwitch(SwitchAddress.ValRL12_Add, 2);
}
} }
private double lastnum; private double lastnum;
...@@ -681,30 +717,30 @@ namespace GcDevicePc ...@@ -681,30 +717,30 @@ namespace GcDevicePc
else else
ToolTip1.Show("TCD reference setting:\nN2 70mA\nAr 100mA\nH2 100mA\nHe 100mA", lab_tcdHelp, 10000); ToolTip1.Show("TCD reference setting:\nN2 70mA\nAr 100mA\nH2 100mA\nHe 100mA", lab_tcdHelp, 10000);
} }
TempTrend temp ; TempTrend temp;
private void btn_TempTrend_Click(object sender, EventArgs e) private void btn_TempTrend_Click(object sender, EventArgs e)
{ {
if (temp==null||temp.IsDisposed) if (temp == null || temp.IsDisposed)
{ {
temp = new TempTrend(); temp = new TempTrend();
temp.Show(); temp.Show();
temp.Activate(); temp.Activate();
} }
else else
{ {
temp.Activate(); temp.Activate();
} }
} }
#region 云盒子模拟测试,可删除 #region 云盒子模拟测试,可删除
//DataInstance dataInstance; //DataInstance dataInstance;
private void button_CloudBox_Click(object sender, EventArgs e) private void button_CloudBox_Click(object sender, EventArgs e)
{ {
// dataInstance = new DataInstance("127.0.0.1", 5555); // dataInstance = new DataInstance("127.0.0.1", 5555);
// dataInstance = new DataInstance("1.15.41.147", 1234); // dataInstance = new DataInstance("1.15.41.147", 1234);
// dataInstance = new DataInstance("183.6.114.224", 10000); // dataInstance = new DataInstance("183.6.114.224", 10000);
// dataInstance = new DataInstance("117.67.241.91", 5555); // dataInstance = new DataInstance("117.67.241.91", 5555);
// dataInstance = new DataInstance(); // dataInstance = new DataInstance();
} }
bool ISAuto = true; bool ISAuto = true;
...@@ -768,5 +804,59 @@ namespace GcDevicePc ...@@ -768,5 +804,59 @@ namespace GcDevicePc
} }
#endregion #endregion
/// <summary>
/// 开关阀1
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button6_Click(object sender, EventArgs e)
{
delALLSwitch(SwitchAddress.Val1_Add, 0);
}
/// <summary>
/// 开关阀2
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button4_Click(object sender, EventArgs e)
{
delALLSwitch(SwitchAddress.Val2_Add, 0);
}
/// <summary>
/// 开关阀3
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button5_Click(object sender, EventArgs e)
{
delALLSwitch(SwitchAddress.Val3_Add, 0);
}
/// <summary>
/// 开关阀4
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button3_Click(object sender, EventArgs e)
{
delALLSwitch(SwitchAddress.Val4_Add, 0);
}
/// <summary>
/// 开关RL11阀
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button7_Click(object sender, EventArgs e)
{
delALLSwitch(SwitchAddress.ValRL11_Add, 0);
}
/// <summary>
/// 开关RL12阀
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button8_Click(object sender, EventArgs e)
{
delALLSwitch(SwitchAddress.ValRL12_Add, 0);
}
} }
} }
This diff is collapsed.
...@@ -53,6 +53,9 @@ namespace GcDevicePc ...@@ -53,6 +53,9 @@ namespace GcDevicePc
//Modbus地址 //Modbus地址
public static ushort tempstart = 100; public static ushort tempstart = 100;
public static ushort statusstart = 124; public static ushort statusstart = 124;
/// <summary>
/// 阀起始地址
/// </summary>
public static ushort valusstatus = 16; public static ushort valusstatus = 16;
public static ushort detstatus = 3; public static ushort detstatus = 3;
public static ushort hmistatus = 144; public static ushort hmistatus = 144;
...@@ -115,13 +118,13 @@ namespace GcDevicePc ...@@ -115,13 +118,13 @@ namespace GcDevicePc
public static long channel_C = 0; public static long channel_C = 0;
public static ArrayList channelA_A = new ArrayList(); public static ArrayList channelA_A ;
public static ArrayList channelA_B = new ArrayList(); public static ArrayList channelA_B ;
public static ArrayList channelA_C = new ArrayList(); public static ArrayList channelA_C ;
public static ArrayList channelB_A = new ArrayList(); public static ArrayList channelB_A ;
public static ArrayList channelB_B = new ArrayList(); public static ArrayList channelB_B ;
public static ArrayList channelB_C = new ArrayList(); public static ArrayList channelB_C ;
//public static RingBufferManager m_rsbuffer = new RingBufferManager(100000); //public static RingBufferManager m_rsbuffer = new RingBufferManager(100000);
/// <summary> /// <summary>
/// 是否停止了系统(停止=true) /// 是否停止了系统(停止=true)
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<PARAMETER> <PARAMETER>
<DEBUG>True</DEBUG> <DEBUG>True</DEBUG>
<fid>True</fid> <fid>True</fid>
<file1>D:\work\色谱\Vocs\VocsSetup\GC_Config\GC_Set\Running Table\六路测试2</file1> <file1>D:\work\色谱\Vocs20220915-1.9.9\Vocs\VocsSetup\GC_Config\GC_Set\Running Table\单氢焰</file1>
<file2>D:\work\色谱\Vocs\VocsSetup\GC_Config\GC_Set\Running Table\六路测试2</file2> <file2>D:\work\色谱\Vocs20220915-1.9.9\Vocs\VocsSetup\GC_Config\GC_Set\Running Table\单氢焰</file2>
<file3>D:\work\色谱\Vocs\VocsSetup\GC_Config\GC_Set\Running Table\六路测试2</file3> <file3>D:\work\色谱\Vocs20220915-1.9.9\Vocs\VocsSetup\GC_Config\GC_Set\Running Table\单氢焰</file3>
<adjust1>3</adjust1> <adjust1>3</adjust1>
<adjust2>3</adjust2> <adjust2>3</adjust2>
<adjust3>0</adjust3> <adjust3>0</adjust3>
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
<name>NMHC</name> <name>NMHC</name>
<vlue>1</vlue> <vlue>1</vlue>
</NMHCcfgSave> </NMHCcfgSave>
<AutoMessage>
<name>NMHC</name>
<vlue>1</vlue>
</AutoMessage>
<AutoMessage> <AutoMessage>
<name>CH4</name> <name>CH4</name>
<vlue>1</vlue> <vlue>1</vlue>
......
[SYSINFO] [SYSINFO]
ECOUNT=3 ECOUNT=2
COEF=1 COEF=1
[ENTITY0] [ENTITY0]
ETXT=0,THC,0,0,0,0,255,0,0,100000,1,0,0 ETXT=0,NMHC,0,0,0,0,255,0,0,100000,1,0,0,0
[ENTITY1] [ENTITY1]
ETXT=0,CH4,0.02,0.1,0,0,255,0,0,100000,1,0,0 ETXT=0,CH4,1,1,0,0,255,0,0,100000,1,0,0,0
[ENTITY2] [ENTITY2]
ETXT=0,NMHC,0.9,1.3,0,0,255,0,0,100000,1,0,0 ETXT=0,NMHC,0.9,1.3,0,0,255,0,0,100000,1,0,0
...@@ -8,7 +8,7 @@ Count3=FALSE ...@@ -8,7 +8,7 @@ Count3=FALSE
[O2CpdCount] [O2CpdCount]
O2value=21 O2value=21
[免登录] [免登录]
锚点日期=2022/8/26 锚点日期=2022/9/21
勾选类型=2 勾选类型=2
[TempTrend] [TempTrend]
启用网格X=FALSE 启用网格X=FALSE
......
This diff is collapsed.
This diff is collapsed.
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