123412341234
This commit is contained in:
parent
909e259209
commit
70b378c734
@ -155,7 +155,7 @@
|
||||
</site>
|
||||
<site name="MeterProcessState" id="2">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="D:\Projekte\SENSUS_GitLab\laa_production\Common\Service\MeterProcessState" />
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\SZLATEV\source\repos\laa_production\Common\Service\MeterProcessState" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:56011:localhost" />
|
||||
|
||||
@ -17,6 +17,7 @@
|
||||
var us = new CultureInfo("en-US");
|
||||
var de = new CultureInfo("de-DE");
|
||||
var any = NumberStyles.Any;
|
||||
var skipNext = true;
|
||||
|
||||
foreach (var line in messurementLines)
|
||||
{
|
||||
@ -39,6 +40,16 @@
|
||||
}
|
||||
|
||||
parsedData = new List<MessurementData>();
|
||||
skipNext = true;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (skipNext)
|
||||
{
|
||||
skipNext = false;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
var lineTokens = line.Split(new[] { '\t' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
@ -65,9 +76,13 @@
|
||||
Timestamp = timestamp
|
||||
});
|
||||
}
|
||||
|
||||
File.WriteAllLines(@".\messurements.csv", new[] { Messurement.Header });
|
||||
File.WriteAllLines(@".\messurements.csv", messurements.Select(x => x.ToString()));
|
||||
|
||||
File.WriteAllLines(@".\messurements.csv", messurements.Select(x
|
||||
=> $"{x.PcbId,10}\t"
|
||||
+ $"{x.AvgT,5:0.00}\t"
|
||||
+ $"{x.AvgTOF,12:0.0000000000}\t"
|
||||
+ $"{x.DifferenceT,5:00.00}\t"
|
||||
+ $"{x.DifferenceTOF,12:0.0000000000}"));
|
||||
|
||||
Console.WriteLine(Messurement.Header);
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
bf6bb8fceb3db5a9977dadc407cf576684bf7127
|
||||
89102b0142e574de38a9f47d370f3334e5e6c268
|
||||
|
||||
@ -37,10 +37,8 @@ namespace TempFlansh
|
||||
Console.Write("Waiting for client connection...");
|
||||
pipeServer.WaitForConnection();
|
||||
Console.Write("Open Comport");
|
||||
|
||||
|
||||
|
||||
Console.WriteLine("Client connected.");
|
||||
|
||||
try
|
||||
{
|
||||
// Read user input and send that to the client process.
|
||||
|
||||
@ -245,7 +245,6 @@ namespace TempFlansh
|
||||
|
||||
public double ReadCurrentDisplayValue()
|
||||
{
|
||||
|
||||
Int16 i16Priority;
|
||||
double dblFloatValue;
|
||||
Int32 i32IntergerValue;
|
||||
|
||||
@ -87,6 +87,12 @@
|
||||
this.pipeReader?.Dispose();
|
||||
this.pipeStream?.Dispose();
|
||||
}
|
||||
|
||||
public void Flush()
|
||||
{
|
||||
this.pipeStream.Flush();
|
||||
this.pipeReader.BaseStream.Flush();
|
||||
}
|
||||
}
|
||||
|
||||
partial class AutomaticTemperatureCalibration
|
||||
@ -117,13 +123,15 @@
|
||||
this.shortTimer.Interval = 1_000;
|
||||
this.shortTimer.Elapsed += this.ShortTimerElapsed;
|
||||
|
||||
// this.shortTimer.Start();
|
||||
|
||||
this.shortTimer.Stop();
|
||||
|
||||
this.longTimer.Enabled = true;
|
||||
this.longTimer.AutoReset = true;
|
||||
this.longTimer.Interval = 300_000;
|
||||
this.longTimer.Elapsed += this.LongTimerElapsed;
|
||||
|
||||
|
||||
this.longTimer.Start();
|
||||
}
|
||||
|
||||
@ -133,15 +141,15 @@
|
||||
|
||||
if (this.messuring)
|
||||
{
|
||||
System.Threading.Thread.Sleep(1000);
|
||||
|
||||
System.Threading.Thread.Sleep(1_000);
|
||||
|
||||
this.shortTimer.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.shortTimer.Stop();
|
||||
|
||||
System.Threading.Thread.Sleep(1000);
|
||||
System.Threading.Thread.Sleep(1_000);
|
||||
File.AppendAllText(this.messurementsFile, Environment.NewLine);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user