Commit b331ea60 authored by leon.huang's avatar leon.huang

version1.6.9 第一次 release。修改画图界面停止的问题

parent 5659e826
......@@ -42,7 +42,7 @@ namespace GcDevicePc
this.fid1ver.Text = this.FID1version;
this.fid2ver.Text = this.FID2version;
this.tcdver.Text = this.TCD1version;
this.PCver.Text = this.Hmiversion + "/1.6.8";
this.PCver.Text = this.Hmiversion + "/1.6.9";
}
}
}
......@@ -314,6 +314,8 @@ namespace GcDevicePc.Common
#region 功能函数
private UInt32[] Beforetime = new UInt32[30];
private UInt32[] OverTimes = new UInt32[30];
public void Get_Channel_Data()
{
UInt16[] dest = new UInt16[channel_num];
......@@ -345,11 +347,23 @@ namespace GcDevicePc.Common
for (int i = 0; i < channel_num / 4; i++)
{
tmp = timev[i];
if (Beforetime[i] > tmp && (Beforetime[i]- tmp) > 0xfffff000)
{
OverTimes[i] ++;
}
Beforetime[i] = tmp;
if(tmp < 0x000F0000 && fDetMax_Time > 0xFFFFF000)
{
fDetMax_Time = 0;
}
if (tmp > fDetMax_Time)
{
fDetMax_Time = tmp;
globaldata.m_signalbuffer.Channel1_Port.ctimer = tmp;
//globaldata.m_signalbuffer.Channel1_Port.ctimer = tmp;
globaldata.m_signalbuffer.Channel1_Port.ctimer = tmp + (ulong)(0x100000000 * OverTimes[i]);
globaldata.m_signalbuffer.Channel1_Port.cdata = fidv[i];
globaldata.m_dpbuffer.ShowList.showDet.fDetValue = fidv[i] * 1000.0f;
......
......@@ -264,13 +264,13 @@
this.label15.Location = new System.Drawing.Point(261, 208);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(41, 12);
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(261, 180);
this.label15.TabIndex = 0;
this.label15.Text = "ml/min";
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(261, 180);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(41, 12);
this.label13.TabIndex = 0;
......
......@@ -1878,6 +1878,11 @@ namespace GcDevicePc
this.datalist.Items.Add(tempshow);
}
tempshow = new ListViewItem();
tempshow.Text = GettempName("尾吹流量(mL/min)");
tempshow.SubItems.Add(GetValue(globaldata.m_dpbuffer.ShowList.showepc.EPC1_1_Cur) + "/" +
GetSetValue(globaldata.m_dpbuffer.ShowList.showepc.EPC1_1_Set));
this.datalist.Items.Add(tempshow);
tempshow = new ListViewItem();
tempshow.Text = "点火状态";
......
......@@ -10,7 +10,7 @@ namespace GcDevicePc.GCBuffer
{
public struct Channel_XY
{
public UInt32 ctimer;
public UInt64 ctimer;
public float cdata;
};
......
......@@ -688,7 +688,7 @@ namespace GcDevicePc
/// 1.0.2.3 添加了周期完成后,重新绘图功能
private void timer1_Tick(object sender, EventArgs e)
{
this.Text = String.Format("{0}-1.6.8 {1}", globaldata.AppName,Formstr);
this.Text = String.Format("{0}-1.6.9 {1}", globaldata.AppName,Formstr);
HmiStatus.Text = String.Format("状态:{0}", statestr);
......
......@@ -32,7 +32,7 @@ namespace GcDevicePc.ProThread
List<double[]> listRawTem = new List<double[]>();//原始数据缓存
bool drbool = false;
uint NowTimeOld = 0;//上一周期开始
UInt32 starttimer = 0x7FFFFFFF;
UInt64 starttimer = 0x7FFFFFFF;
while (!datamre.WaitOne(500))
{
......
......@@ -33,7 +33,7 @@ namespace GcDevicePc.ProThread
List<double[]> listRawTem = new List<double[]>();//原始数据缓存
bool drbool = false;
uint NowTimeOld = 0;//上一周期开始
UInt32 starttimer = 0x7FFFFFFF;
UInt64 starttimer = 0x7FFFFFFF;
while (!datamre.WaitOne(500))
{
......
......@@ -103,12 +103,12 @@ namespace GcDevicePc.ProThread
{
double value = 0;
float dvalue = 0.0f;
UInt32 starttimer = 0x7FFFFFFF;
UInt64 starttimer = 0x7FFFFFFF;
UInt32 endtimer = 0x7FFFFFFF;
Boolean saveflag = false;
List<float> listPoint = new List<float>();//临时数据区
List<float> savePoint = new List<float>();
List<uint> timePoint = new List<uint>();//临时数据区
List<UInt64> timePoint = new List<UInt64>();//临时数据区
try
{
......
......@@ -31,12 +31,12 @@ namespace GcDevicePc.ProThread
{
double value = 0;
float dvalue = 0.0f;
UInt32 starttimer = 0x7FFFFFFF;
UInt64 starttimer = 0x7FFFFFFF;
UInt32 endtimer = 0x7FFFFFFF;
Boolean saveflag = false;
List<float> listPoint = new List<float>();//临时数据区
List<float> savePoint = new List<float>();
List<uint> timePoint = new List<uint>();//临时数据区
List<UInt64> timePoint = new List<UInt64>();//临时数据区
try
{
......
......@@ -29,12 +29,12 @@ namespace GcDevicePc.ProThread
{
double value = 0;
float dvalue = 0.0f;
UInt32 starttimer = 0x7FFFFFFF;
UInt64 starttimer = 0x7FFFFFFF;
UInt32 endtimer = 0x7FFFFFFF;
Boolean saveflag = false;
List<float> listPoint = new List<float>();//临时数据区
List<float> savePoint = new List<float>();
List<uint> timePoint = new List<uint>();//临时数据区
List<UInt64> timePoint = new List<UInt64>();//临时数据区
try
{
......
......@@ -176,11 +176,14 @@ namespace GcDevicePc.ProThread
}
#region 三通道数据获取
private UInt32[] Beforetime1 = new UInt32[30];
private UInt32[] OverTimes1 = new UInt32[30];
/// <summary>
/// 获取通道数据
/// </summary>
/// <param name="address"></param>
/// <param name="num"></param>
///
private void Get_Channel_Data(ushort address, ushort num)
{
int ret;
......@@ -217,14 +220,22 @@ namespace GcDevicePc.ProThread
for (int i = 0; i < num / 4; i++)
{
tmp = timev[i];
if (Beforetime1[i] > tmp && (Beforetime1[i]- tmp) > 0xfffff000)
{
OverTimes1[i] ++;
}
Beforetime1[i] = tmp;
if(tmp < 0x000F0000 && fDetMax_Time > 0xFFFFF000)
{
fDetMax_Time = 0;
}
if (tmp > fDetMax_Time)
{
fDetMax_Time = tmp;
globaldata.m_signalbuffer.Channel1_Port.ctimer = tmp;
//globaldata.m_signalbuffer.Channel1_Port.ctimer = tmp;
globaldata.m_signalbuffer.Channel1_Port.ctimer = tmp + (ulong)(0x100000000 * OverTimes1[i]);
globaldata.m_signalbuffer.Channel1_Port.cdata = fidv[i];
globaldata.m_dpbuffer.ShowList.showDet.fDetValue = fidv[i] * 1000.0f;
#if (data)
......@@ -264,7 +275,8 @@ namespace GcDevicePc.ProThread
}
}
}
private UInt32[] Beforetime2 = new UInt32[30];
private UInt32[] OverTimes2 = new UInt32[30];
private void Get_Channel2_Data(ushort address, ushort num)
{
UInt32 tmp;
......@@ -299,11 +311,21 @@ namespace GcDevicePc.ProThread
for (int i = 0; i < num / 4; i++)
{
tmp = timev[i];
if (Beforetime2[i] > tmp && (Beforetime2[i]- tmp) > 0xfffff000)
{
OverTimes2[i] ++;
}
Beforetime2[i] = tmp;
if(tmp < 0x000F0000 && iDetMax_Time > 0xFFFFF000)
{
iDetMax_Time = 0;
}
if (tmp > iDetMax_Time)
{
iDetMax_Time = tmp;
globaldata.m_signalbuffer.Channel2_Port.ctimer = tmp;
//globaldata.m_signalbuffer.Channel2_Port.ctimer = tmp;
globaldata.m_signalbuffer.Channel2_Port.ctimer = tmp + (ulong)(0x100000000 * OverTimes2[i]);
globaldata.m_signalbuffer.Channel2_Port.cdata = fidv[i];
globaldata.m_dpbuffer.ShowList.showDet.iDetValue = fidv[i] * 1000.0f;
......@@ -341,7 +363,8 @@ namespace GcDevicePc.ProThread
}
}
private UInt32[] Beforetime3 = new UInt32[30];
private UInt32[] OverTimes3 = new UInt32[30];
private void Get_Channel3_Data(ushort address, ushort num)
{
UInt32 tmp;
......@@ -376,11 +399,21 @@ namespace GcDevicePc.ProThread
for (int i = 0; i < num / 4; i++)
{
tmp = timev[i];
if (Beforetime3[i] > tmp && (Beforetime3[i]- tmp) > 0xfffff000)
{
OverTimes3[i] ++;
}
Beforetime3[i] = tmp;
if(tmp < 0x000F0000 && bDetMax_Time > 0xFFFFF000)
{
bDetMax_Time = 0;
}
if (tmp > bDetMax_Time)
{
bDetMax_Time = tmp;
globaldata.m_signalbuffer.Channel3_Port.ctimer = tmp;
// globaldata.m_signalbuffer.Channel3_Port.ctimer = tmp;
globaldata.m_signalbuffer.Channel3_Port.ctimer = tmp + (ulong)(0x100000000 * OverTimes3[i]);
globaldata.m_signalbuffer.Channel3_Port.cdata = fidv[i];
globaldata.m_dpbuffer.ShowList.showDet.bDetValue = fidv[i] * 1000.0f;
globaldata.m_signalbuffer.Draw_Port3.Add(globaldata.m_signalbuffer.Channel3_Port);
......
......@@ -263,7 +263,6 @@ namespace GcDevicePc
e.Cancel = true;
break;
}
_initSec++;
string tail = "";
for (int i = 0; i < (_initSec % 4); i++)
......
......@@ -51,7 +51,7 @@ namespace GcDevicePc
{
if(adapter.Name == this.label5.Text)//if (adapter.Name == Meshport || string.IsNullOrEmpty(Meshport))
{
bool Pd1 = (adapter.NetworkInterfaceType == NetworkInterfaceType.Ethernet); //判断是否是以太网连接
bool Pd1 = (adapter.NetworkInterfaceType == NetworkInterfaceType.Ethernet || adapter.NetworkInterfaceType == NetworkInterfaceType.Wireless80211); //判断是否是以太网连接
if (Pd1)
{
{
......
......@@ -141,7 +141,7 @@ namespace GcDevicePc
//public static UInt32 starttimer = 0x7FFFFFFF; //开始时间
//public static bool startimerIsSet = false;
// public static int savetimer; //开始时间
public static UInt32 starttimer = 0x7FFFFFFF; //开始时间
public static UInt64 starttimer = 0x7FFFFFFF; //开始时间
public static bool startimerIsSet = false;
public static bool startimerIsSet1 = false;
public static bool startimerIsSet2 = false;
......
Binary files "a/VocsSetup/GC_Config/GC_Set/\344\273\252\345\231\250\346\226\271\346\263\225/VOC/SingleAnal.ini" and /dev/null differ
Binary files "a/VocsSetup/GC_Config/GC_Set/\344\273\252\345\231\250\346\226\271\346\263\225/tvoc/1.ini" and /dev/null differ
Binary files "a/VocsSetup/GC_Config/GC_Set/\344\273\252\345\231\250\346\226\271\346\263\225/tvoc/3.ini" and /dev/null differ
Binary files "a/VocsSetup/GC_Config/GC_Set/\344\273\252\345\231\250\346\226\271\346\263\225/voc/20200420.ini" and /dev/null differ
Binary files "a/VocsSetup/GC_Config/GC_Set/\344\273\252\345\231\250\346\226\271\346\263\225/voc/20200424.ini" and /dev/null differ
[NetWorkConfig]
MAC地址=F8:02:78:60:70:A0
MAC地址=F8:02:78:60:70:9E
网口=本地连接
搜索时间=10
搜索时间=20
[StartUp]
自启动=0
打开系统=0
......@@ -17,13 +17,13 @@ InfoLog=0
ErrLog=0
HmiLog=0
[Version]
VersionType=1
VersionType=0
AppName=
[User]
Name=admin
Password=0
[SendData]
Thirdparty=1
Thirdparty=0
Foreign=2
[SaveData]
ZBSaveData=1
......@@ -2500,6 +2500,7 @@
</summary>
<param name="address"></param>
<param name="num"></param>
</member>
<member name="M:GcDevicePc.ProThread.GcDataTh.GetCState(System.UInt16,System.UInt16,System.Byte[]@)">
<summary>
......
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