Add project files.
This commit is contained in:
48
Maser.Feanor/Calibration.cs
Normal file
48
Maser.Feanor/Calibration.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Maser.Feanor.Model
|
||||
{
|
||||
public class Calibration
|
||||
{
|
||||
public Calibration(Int32 PK, Int32 SensorPK, DateTime Release, DateTime Expiry, DateTime Creation, Double[] Coefficients, Double Uncertainty, Double[] Xvalues)
|
||||
{
|
||||
_PK = PK;
|
||||
_SensorPK = SensorPK;
|
||||
_Release = Release;
|
||||
_Expiry = Expiry;
|
||||
_Creation = DateTime.Now;
|
||||
_Coefficients = Coefficients;
|
||||
_Uncertainty = Uncertainty;
|
||||
_Xvalues = Xvalues;
|
||||
}
|
||||
|
||||
public Int32 PK { get { return _PK; } set { _PK = value; } }
|
||||
private Int32 _PK;
|
||||
|
||||
public DateTime Release { get { return _Release; } }
|
||||
private DateTime _Release;
|
||||
|
||||
public DateTime Expiry { get { return _Expiry; } }
|
||||
private DateTime _Expiry;
|
||||
|
||||
public DateTime Creation { get { return _Creation; } }
|
||||
private DateTime _Creation;
|
||||
|
||||
public Int32 SensorPK { get { return _SensorPK; } }
|
||||
private Int32 _SensorPK;
|
||||
|
||||
public double[] Coefficients { get { return _Coefficients; } set { _Coefficients = value; } }
|
||||
private double[] _Coefficients = new double[4] { 0, 1, 0, 0 };
|
||||
|
||||
public double Uncertainty { get { return _Uncertainty; } }
|
||||
private double _Uncertainty = 0;
|
||||
|
||||
public double[] Xvalues { get { return _Xvalues; } set { _Xvalues = value; } }
|
||||
private double[] _Xvalues = new double[4] { 0, 0, 1, 1 };
|
||||
|
||||
}
|
||||
}
|
||||
120
Maser.Feanor/Chamber.cs
Normal file
120
Maser.Feanor/Chamber.cs
Normal file
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
|
||||
namespace Maser.Feanor.Model
|
||||
{
|
||||
public class Chamber
|
||||
{
|
||||
public Chamber() { }
|
||||
|
||||
public Chamber(Int32 PK, Int32 mIDS, String description, Int32 Interval, String network, ServerType serverType, Boolean active, Boolean RS485, Boolean Humidity)
|
||||
{
|
||||
_PK = PK;
|
||||
_mIDS = mIDS;
|
||||
_description = description;
|
||||
_Interval = Interval;
|
||||
_Network = network;
|
||||
_Active = active;
|
||||
_serverType = serverType;
|
||||
_RS485 = RS485;
|
||||
_Humidity = Humidity;
|
||||
}
|
||||
|
||||
|
||||
public Int32 PK
|
||||
{
|
||||
set { _PK = value; }
|
||||
get { return _PK; }
|
||||
}
|
||||
private Int32 _PK;
|
||||
|
||||
|
||||
public Int32 MIDS
|
||||
{
|
||||
set { _mIDS = value; }
|
||||
get { return _mIDS; }
|
||||
}
|
||||
private Int32 _mIDS;
|
||||
|
||||
|
||||
public String Description
|
||||
{
|
||||
set { _description = value; }
|
||||
get { return _description; }
|
||||
}
|
||||
private String _description;
|
||||
|
||||
|
||||
public Int32 Interval
|
||||
{
|
||||
set { _Interval = value; }
|
||||
get { return _Interval; }
|
||||
}
|
||||
private Int32 _Interval = 60;
|
||||
|
||||
|
||||
public ServerType ServerType
|
||||
{
|
||||
set { _serverType = value; }
|
||||
get { return _serverType; }
|
||||
}
|
||||
|
||||
private ServerType _serverType;
|
||||
|
||||
public Boolean Active
|
||||
{
|
||||
set { _Active = value; }
|
||||
get { return _Active; }
|
||||
}
|
||||
private Boolean _Active;
|
||||
|
||||
public Boolean RS485
|
||||
{
|
||||
set { _RS485 = value; }
|
||||
get { return _RS485; }
|
||||
}
|
||||
private Boolean _RS485;
|
||||
|
||||
public Boolean Humidity
|
||||
{
|
||||
set { _Humidity = value; }
|
||||
get { return _Humidity; }
|
||||
}
|
||||
private Boolean _Humidity;
|
||||
|
||||
public String MIDSandDescription { get { return string.Format("{0:00000}", _mIDS); } } // descption (node ID) removed, only chamber # now!
|
||||
//public String MIDSandDescription { get { return string.Format("{0:00000} Node {1}", _mIDS, _description); } }
|
||||
|
||||
public String Network
|
||||
{
|
||||
set { _Network = value; }
|
||||
get { return _Network; }
|
||||
}
|
||||
private String _Network;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("Chamber: Chamber_PK={0}, MIDS={1}, Description={2}, IP={3}, Valid={4}",
|
||||
_PK, _mIDS, _description, _Network, _Active);
|
||||
}
|
||||
|
||||
|
||||
// Extract chamberpath from projectinfo
|
||||
public string PathToFolderOnServer
|
||||
{
|
||||
get
|
||||
{
|
||||
return String.Format("\\\\silicium\\quality-calibration-service\\{0:00000}", _mIDS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
BIN
Maser.Feanor/M.ico
Normal file
BIN
Maser.Feanor/M.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.5 KiB |
151
Maser.Feanor/Maser.Feanor.Model.csproj
Normal file
151
Maser.Feanor/Maser.Feanor.Model.csproj
Normal file
@@ -0,0 +1,151 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{F96EC5EB-647C-405E-934F-08DF688F55F8}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Maser.Feanor</RootNamespace>
|
||||
<AssemblyName>Maser.Feanor</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>M.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="HarfBuzzSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\HarfBuzzSharp.7.3.0.3\lib\net462\HarfBuzzSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="LiveCharts, Version=0.9.7.0, Culture=neutral, PublicKeyToken=0bc1f845d1ebb8df, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\LiveCharts.0.9.7\lib\net45\LiveCharts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="LiveCharts.WinForms, Version=0.9.7.1, Culture=neutral, PublicKeyToken=0bc1f845d1ebb8df, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\LiveCharts.WinForms.0.9.7.1\lib\net45\LiveCharts.WinForms.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="LiveCharts.Wpf, Version=0.9.7.0, Culture=neutral, PublicKeyToken=0bc1f845d1ebb8df, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\LiveCharts.Wpf.0.9.7\lib\net45\LiveCharts.Wpf.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenTK, Version=3.1.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\OpenTK.3.1.0\lib\net20\OpenTK.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenTK.GLControl, Version=3.1.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\OpenTK.GLControl.3.1.0\lib\net20\OpenTK.GLControl.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
<Reference Include="ScottPlot, Version=5.0.53.0, Culture=neutral, PublicKeyToken=86698dc10387c39e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\ScottPlot.5.0.53\lib\net462\ScottPlot.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ScottPlot.WinForms, Version=5.0.53.0, Culture=neutral, PublicKeyToken=86698dc10387c39e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\ScottPlot.WinForms.5.0.53\lib\net462\ScottPlot.WinForms.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SkiaSharp, Version=2.88.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SkiaSharp.2.88.9\lib\net462\SkiaSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SkiaSharp.HarfBuzz, Version=2.88.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SkiaSharp.HarfBuzz.2.88.9\lib\net462\SkiaSharp.HarfBuzz.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SkiaSharp.Views.Desktop.Common, Version=2.88.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SkiaSharp.Views.Desktop.Common.2.88.9\lib\net462\SkiaSharp.Views.Desktop.Common.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SkiaSharp.Views.WindowsForms, Version=2.88.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SkiaSharp.Views.WindowsForms.2.88.9\lib\net462\SkiaSharp.Views.WindowsForms.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Drawing.Common, Version=4.0.0.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Drawing.Common.4.7.3\lib\net461\System.Drawing.Common.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xaml" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="WindowsFormsIntegration" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Calibration.cs" />
|
||||
<Compile Include="Chamber.cs" />
|
||||
<Compile Include="Project.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Sensor.cs" />
|
||||
<Compile Include="Result.cs" />
|
||||
<Compile Include="ServerType.cs" />
|
||||
<Compile Include="Time.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="M.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="OpenTK.dll.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\packages\HarfBuzzSharp.NativeAssets.macOS.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.macOS.targets" Condition="Exists('..\packages\HarfBuzzSharp.NativeAssets.macOS.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.macOS.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\HarfBuzzSharp.NativeAssets.macOS.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.macOS.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\HarfBuzzSharp.NativeAssets.macOS.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.macOS.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\HarfBuzzSharp.NativeAssets.Win32.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.Win32.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\HarfBuzzSharp.NativeAssets.Win32.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.Win32.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\SkiaSharp.NativeAssets.macOS.2.88.9\build\net462\SkiaSharp.NativeAssets.macOS.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\SkiaSharp.NativeAssets.macOS.2.88.9\build\net462\SkiaSharp.NativeAssets.macOS.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\SkiaSharp.NativeAssets.Win32.2.88.9\build\net462\SkiaSharp.NativeAssets.Win32.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\SkiaSharp.NativeAssets.Win32.2.88.9\build\net462\SkiaSharp.NativeAssets.Win32.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\HarfBuzzSharp.NativeAssets.Linux.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.Linux.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\HarfBuzzSharp.NativeAssets.Linux.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.Linux.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\SkiaSharp.NativeAssets.Linux.NoDependencies.2.88.9\build\net462\SkiaSharp.NativeAssets.Linux.NoDependencies.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\SkiaSharp.NativeAssets.Linux.NoDependencies.2.88.9\build\net462\SkiaSharp.NativeAssets.Linux.NoDependencies.targets'))" />
|
||||
</Target>
|
||||
<Import Project="..\packages\HarfBuzzSharp.NativeAssets.Win32.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.Win32.targets" Condition="Exists('..\packages\HarfBuzzSharp.NativeAssets.Win32.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.Win32.targets')" />
|
||||
<Import Project="..\packages\SkiaSharp.NativeAssets.macOS.2.88.9\build\net462\SkiaSharp.NativeAssets.macOS.targets" Condition="Exists('..\packages\SkiaSharp.NativeAssets.macOS.2.88.9\build\net462\SkiaSharp.NativeAssets.macOS.targets')" />
|
||||
<Import Project="..\packages\SkiaSharp.NativeAssets.Win32.2.88.9\build\net462\SkiaSharp.NativeAssets.Win32.targets" Condition="Exists('..\packages\SkiaSharp.NativeAssets.Win32.2.88.9\build\net462\SkiaSharp.NativeAssets.Win32.targets')" />
|
||||
<Import Project="..\packages\HarfBuzzSharp.NativeAssets.Linux.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.Linux.targets" Condition="Exists('..\packages\HarfBuzzSharp.NativeAssets.Linux.7.3.0.3\build\net462\HarfBuzzSharp.NativeAssets.Linux.targets')" />
|
||||
<Import Project="..\packages\SkiaSharp.NativeAssets.Linux.NoDependencies.2.88.9\build\net462\SkiaSharp.NativeAssets.Linux.NoDependencies.targets" Condition="Exists('..\packages\SkiaSharp.NativeAssets.Linux.NoDependencies.2.88.9\build\net462\SkiaSharp.NativeAssets.Linux.NoDependencies.targets')" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
25
Maser.Feanor/OpenTK.dll.config
Normal file
25
Maser.Feanor/OpenTK.dll.config
Normal file
@@ -0,0 +1,25 @@
|
||||
<configuration>
|
||||
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
||||
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
||||
<dllmap os="linux" dll="openal32.dll" target="libopenal.so.1"/>
|
||||
<dllmap os="linux" dll="alut.dll" target="libalut.so.0"/>
|
||||
<dllmap os="linux" dll="opencl.dll" target="libOpenCL.so"/>
|
||||
<dllmap os="linux" dll="libX11" target="libX11.so.6"/>
|
||||
<dllmap os="linux" dll="libXi" target="libXi.so.6"/>
|
||||
<dllmap os="linux" dll="SDL2.dll" target="libSDL2-2.0.so.0"/>
|
||||
<dllmap os="osx" dll="opengl32.dll" target="/System/Library/Frameworks/OpenGL.framework/OpenGL"/>
|
||||
<dllmap os="osx" dll="openal32.dll" target="/System/Library/Frameworks/OpenAL.framework/OpenAL" />
|
||||
<dllmap os="osx" dll="alut.dll" target="/System/Library/Frameworks/OpenAL.framework/OpenAL" />
|
||||
<dllmap os="osx" dll="libGLES.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
|
||||
<dllmap os="osx" dll="libGLESv1_CM.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
|
||||
<dllmap os="osx" dll="libGLESv2.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
|
||||
<dllmap os="osx" dll="opencl.dll" target="/System/Library/Frameworks/OpenCL.framework/OpenCL"/>
|
||||
<dllmap os="osx" dll="SDL2.dll" target="libSDL2.dylib"/>
|
||||
<!-- XQuartz compatibility (X11 on Mac) -->
|
||||
<dllmap os="osx" dll="libGL.so.1" target="/usr/X11/lib/libGL.dylib"/>
|
||||
<dllmap os="osx" dll="libX11" target="/usr/X11/lib/libX11.dylib"/>
|
||||
<dllmap os="osx" dll="libXcursor.so.1" target="/usr/X11/lib/libXcursor.dylib"/>
|
||||
<dllmap os="osx" dll="libXi" target="/usr/X11/lib/libXi.dylib"/>
|
||||
<dllmap os="osx" dll="libXinerama" target="/usr/X11/lib/libXinerama.dylib"/>
|
||||
<dllmap os="osx" dll="libXrandr.so.2" target="/usr/X11/lib/libXrandr.dylib"/>
|
||||
</configuration>
|
||||
147
Maser.Feanor/Project.cs
Normal file
147
Maser.Feanor/Project.cs
Normal file
@@ -0,0 +1,147 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
namespace Maser.Feanor.Model
|
||||
{
|
||||
public class Project
|
||||
{
|
||||
public Project() { }
|
||||
|
||||
|
||||
public Project(Int32 PK, Int32 chamber, DateTime start, DateTime? stop, Int32? ProjectID, String ProjectDescription, Int32? SubProject, String SubProjectDescription, Int32? Step, String StepDescription, String CustomerDescription, Int32 TotalTime)
|
||||
{
|
||||
_PK = PK;
|
||||
_chamber = chamber;
|
||||
_start = start;
|
||||
_Stop = stop;
|
||||
_ProjectID = ProjectID;
|
||||
_ProjectDescription = ProjectDescription;
|
||||
_SubProject = SubProject;
|
||||
_SubProjectDescription = SubProjectDescription;
|
||||
_Step = Step;
|
||||
_StepDescription = StepDescription;
|
||||
_Customer = CustomerDescription;
|
||||
_TotalTime = TotalTime;
|
||||
}
|
||||
|
||||
|
||||
public Int32 PK
|
||||
{
|
||||
set { _PK = value; }
|
||||
get { return _PK; }
|
||||
}
|
||||
private Int32 _PK;
|
||||
|
||||
public Int32 Chamber
|
||||
{
|
||||
set { _chamber = value; }
|
||||
get { return _chamber; }
|
||||
}
|
||||
private Int32 _chamber;
|
||||
|
||||
|
||||
public DateTime Start
|
||||
{
|
||||
set { _start = value; }
|
||||
get { return _start; }
|
||||
}
|
||||
private DateTime _start;
|
||||
|
||||
|
||||
public DateTime? Stop
|
||||
{
|
||||
set { _Stop = value; }
|
||||
get { return _Stop; }
|
||||
}
|
||||
private DateTime? _Stop;
|
||||
|
||||
|
||||
public Int32? ProjectID
|
||||
{
|
||||
set { _ProjectID = value; }
|
||||
get { return _ProjectID; }
|
||||
}
|
||||
private Int32? _ProjectID;
|
||||
|
||||
public String ProjectDescription
|
||||
{
|
||||
set { _ProjectDescription = value; }
|
||||
get { return _ProjectDescription; }
|
||||
}
|
||||
private String _ProjectDescription;
|
||||
|
||||
public Int32? SubProject
|
||||
{
|
||||
set { _SubProject = value; }
|
||||
get { return _SubProject; }
|
||||
}
|
||||
private Int32? _SubProject;
|
||||
|
||||
public String SubProjectDescription
|
||||
{
|
||||
set { _SubProjectDescription = value; }
|
||||
get { return _SubProjectDescription; }
|
||||
}
|
||||
private String _SubProjectDescription;
|
||||
|
||||
public Int32? Step
|
||||
{
|
||||
set { _Step = value; }
|
||||
get { return _Step; }
|
||||
}
|
||||
private Int32? _Step;
|
||||
|
||||
public String StepDescription
|
||||
{
|
||||
set { _StepDescription = value; }
|
||||
get { return _StepDescription; }
|
||||
}
|
||||
private String _StepDescription;
|
||||
|
||||
public String Customer
|
||||
{
|
||||
set { _Customer = value; }
|
||||
get { return _Customer; }
|
||||
}
|
||||
private String _Customer;
|
||||
|
||||
public Int32 TotalTime
|
||||
{
|
||||
set { _TotalTime = value; }
|
||||
get { return _TotalTime; }
|
||||
}
|
||||
private Int32 _TotalTime;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("Project: Project_PK={0}, Chamber={1}, Start={2}, Project={4}, SubProject={5}, Step={6}, Customer={7}",
|
||||
_PK, _chamber, _start, _Stop, _ProjectID, _SubProject, _Step, _Customer);
|
||||
}
|
||||
|
||||
public string PathToFolderOnServer
|
||||
{
|
||||
get
|
||||
{
|
||||
// \\silicium\projects\2008\P080104\sub1
|
||||
Int32 Year = (Int32)Math.Floor((double)_ProjectID / 10000) + 2000;
|
||||
return String.Format("\\\\silicium\\projects\\{0}\\P{1:000000}\\sub{2}", Year, _ProjectID, _SubProject);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
36
Maser.Feanor/Properties/AssemblyInfo.cs
Normal file
36
Maser.Feanor/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Maser.Feanor")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Maser.Feanor")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2016")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("f96ec5eb-647c-405e-934f-08df688f55f8")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
63
Maser.Feanor/Result.cs
Normal file
63
Maser.Feanor/Result.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Maser.Feanor.Model
|
||||
{
|
||||
public class Result
|
||||
{
|
||||
public Result() { }
|
||||
|
||||
|
||||
public Result(Int32 PK, Int32 SensorPK, Double Value, DateTime TimeStamp, Int32 CalibrationPK)
|
||||
{
|
||||
_PK = PK;
|
||||
_SensorPK = SensorPK;
|
||||
_Value = Value;
|
||||
_TimeStamp = TimeStamp;
|
||||
_CalibrationPK = CalibrationPK;
|
||||
}
|
||||
|
||||
public Int32 PK
|
||||
{
|
||||
set { _PK = value; }
|
||||
get { return _PK; }
|
||||
}
|
||||
private Int32 _PK = -1;
|
||||
|
||||
|
||||
|
||||
public Int32 SensorPK
|
||||
{
|
||||
set { _SensorPK = value; }
|
||||
get { return _SensorPK; }
|
||||
}
|
||||
private Int32 _SensorPK = 0;
|
||||
|
||||
|
||||
public Double Value
|
||||
{
|
||||
set { _Value = value; }
|
||||
get { return _Value; }
|
||||
}
|
||||
private Double _Value = 0;
|
||||
|
||||
public DateTime TimeStamp
|
||||
{
|
||||
set { _TimeStamp = value; }
|
||||
get { return _TimeStamp; }
|
||||
}
|
||||
private DateTime _TimeStamp = DateTime.Now;
|
||||
|
||||
|
||||
|
||||
public Int32 CalibrationPK
|
||||
{
|
||||
set { _CalibrationPK = value; }
|
||||
get { return _CalibrationPK; }
|
||||
}
|
||||
private Int32 _CalibrationPK = 0; // A calibration PK equal to 0 means no calibration was applied.
|
||||
}
|
||||
}
|
||||
127
Maser.Feanor/Sensor.cs
Normal file
127
Maser.Feanor/Sensor.cs
Normal file
@@ -0,0 +1,127 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Maser.Feanor.Model
|
||||
{
|
||||
|
||||
public enum SensorType
|
||||
{
|
||||
NONE = 0,
|
||||
Pt100 = 1,
|
||||
ThermocoupleK = 2,
|
||||
Voltage = 3,
|
||||
PsychrometerRH = 4,
|
||||
PressurecookerRH = 5,
|
||||
Current = 6
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class Sensor
|
||||
{
|
||||
public Sensor() { }
|
||||
|
||||
|
||||
public Sensor(int PK, int ID, int ChamberPK, string Description, SensorType Type, Boolean Active, Boolean ApplyCalibration)
|
||||
{
|
||||
_PK = PK;
|
||||
_ID = ID;
|
||||
_chamberPK = ChamberPK;
|
||||
_Description = Description;
|
||||
_Type = Type;
|
||||
_Enabled = Active;
|
||||
_ApplyCalibration = ApplyCalibration;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public Int32 PK { set { _PK = value; } get { return _PK; } }
|
||||
private Int32 _PK = -1;
|
||||
|
||||
|
||||
|
||||
public Int32 ID { set { _ID = value; } get { return _ID; } }
|
||||
private Int32 _ID = 0;
|
||||
|
||||
|
||||
|
||||
public Boolean ApplyCalibration { get { return _ApplyCalibration; } set { _ApplyCalibration = value; } }
|
||||
private bool _ApplyCalibration = true;
|
||||
|
||||
|
||||
public Int32 ChamberPK { set { _chamberPK = value; } get { return _chamberPK; } }
|
||||
private Int32 _chamberPK = 0;
|
||||
|
||||
|
||||
public String Description { set { _Description = value; } get { return _Description; } }
|
||||
private String _Description = "";
|
||||
|
||||
|
||||
public SensorType Type { set { _Type = value; } get { return _Type; } }
|
||||
private SensorType _Type = SensorType.NONE;
|
||||
|
||||
public Boolean Enabled { set { _Enabled = value; } get { return _Enabled; } }
|
||||
private Boolean _Enabled = false;
|
||||
|
||||
|
||||
public String Units
|
||||
{
|
||||
get
|
||||
{
|
||||
switch (this.Type)
|
||||
{
|
||||
case SensorType.Pt100:
|
||||
return "°C";
|
||||
case SensorType.ThermocoupleK:
|
||||
return "°C";
|
||||
case SensorType.Voltage:
|
||||
return "V";
|
||||
case SensorType.PsychrometerRH:
|
||||
return "%rh";
|
||||
case SensorType.PressurecookerRH:
|
||||
return "%rh";
|
||||
case SensorType.Current:
|
||||
return "A";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public String ListDescription = "";
|
||||
|
||||
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{0:00} {1}", _ID, _Description);
|
||||
}
|
||||
|
||||
public string TypeToString()
|
||||
{
|
||||
switch (_Type)
|
||||
{
|
||||
case SensorType.Pt100:
|
||||
return "Pt100";
|
||||
case SensorType.ThermocoupleK:
|
||||
return "Thermoucouple K";
|
||||
case SensorType.PsychrometerRH:
|
||||
return "RH with psychrometer";
|
||||
case SensorType.PressurecookerRH:
|
||||
return "RH in pressurecooker";
|
||||
case SensorType.Voltage:
|
||||
return "Voltage";
|
||||
case SensorType.Current:
|
||||
return "Current";
|
||||
default:
|
||||
return _Type.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
47
Maser.Feanor/ServerType.cs
Normal file
47
Maser.Feanor/ServerType.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Maser.Feanor.Model
|
||||
{
|
||||
public enum ServerType
|
||||
{
|
||||
RaspberryPI = 1,
|
||||
// Server with sensor ID 0..19
|
||||
|
||||
Yun020208 = 2,
|
||||
// Server with sensor ID 0..11
|
||||
// 0-1: Pt100
|
||||
// 2-3: Thermocouple-K
|
||||
// 4-11: -70 to +70 V
|
||||
|
||||
RaspberryDELTA = 3,
|
||||
RaspberryHAMEG = 4,
|
||||
NONE = 5,
|
||||
}
|
||||
|
||||
|
||||
public static class ServerTypeExtensions
|
||||
{
|
||||
public static string ToText(this ServerType type)
|
||||
{
|
||||
string result = type.ToString();
|
||||
switch (type)
|
||||
{
|
||||
case ServerType.Yun020208:
|
||||
return String.Format("Yun server");
|
||||
case ServerType.RaspberryPI:
|
||||
return String.Format("Raspberry Pi server");
|
||||
case ServerType.RaspberryDELTA:
|
||||
return String.Format("RPI + Delta PS server");
|
||||
case ServerType.RaspberryHAMEG:
|
||||
return String.Format("RPI + Hameg PS server");
|
||||
case ServerType.NONE:
|
||||
return String.Format("NONE");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
48
Maser.Feanor/Time.cs
Normal file
48
Maser.Feanor/Time.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Maser.Feanor.Model
|
||||
{
|
||||
public static class Time
|
||||
{
|
||||
public static DateTime UnixToDatetime(Int32 UnixStamp)
|
||||
{
|
||||
DateTime dt = new DateTime(1970, 1, 1, 0, 0, 0);
|
||||
return dt.AddSeconds(UnixStamp);
|
||||
}
|
||||
|
||||
public static Int32 DatetimeToUnix(DateTime datetime)
|
||||
{
|
||||
return (Int32)(datetime.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;
|
||||
}
|
||||
|
||||
|
||||
public static DateTime UTC
|
||||
{ // Return UTC time
|
||||
get {return DateTime.Now.ToUniversalTime(); }
|
||||
}
|
||||
|
||||
public static DateTime Local
|
||||
{
|
||||
// Return the local time in The Netherlands
|
||||
get {return DateTime.Now; }
|
||||
}
|
||||
|
||||
|
||||
public static DateTime LocalToUtc(DateTime Local)
|
||||
{
|
||||
// Return the UTC time at given local time in The Netherlands
|
||||
return Local.ToUniversalTime();
|
||||
}
|
||||
|
||||
public static DateTime UtcToLocal(DateTime UTC)
|
||||
{
|
||||
// Return the local time in The Netherlands at given UTC time
|
||||
return UTC.ToLocalTime();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
27
Maser.Feanor/packages.config
Normal file
27
Maser.Feanor/packages.config
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="HarfBuzzSharp" version="7.3.0.3" targetFramework="net472" />
|
||||
<package id="HarfBuzzSharp.NativeAssets.Linux" version="7.3.0.3" targetFramework="net472" />
|
||||
<package id="HarfBuzzSharp.NativeAssets.macOS" version="7.3.0.3" targetFramework="net472" />
|
||||
<package id="HarfBuzzSharp.NativeAssets.Win32" version="7.3.0.3" targetFramework="net472" />
|
||||
<package id="LiveCharts" version="0.9.7" targetFramework="net472" />
|
||||
<package id="LiveCharts.WinForms" version="0.9.7.1" targetFramework="net472" />
|
||||
<package id="LiveCharts.Wpf" version="0.9.7" targetFramework="net472" />
|
||||
<package id="OpenTK" version="3.1.0" targetFramework="net472" />
|
||||
<package id="OpenTK.GLControl" version="3.1.0" targetFramework="net472" />
|
||||
<package id="ScottPlot" version="5.0.53" targetFramework="net472" />
|
||||
<package id="ScottPlot.WinForms" version="5.0.53" targetFramework="net472" />
|
||||
<package id="SkiaSharp" version="2.88.9" targetFramework="net472" />
|
||||
<package id="SkiaSharp.HarfBuzz" version="2.88.9" targetFramework="net472" />
|
||||
<package id="SkiaSharp.NativeAssets.Linux.NoDependencies" version="2.88.9" targetFramework="net472" />
|
||||
<package id="SkiaSharp.NativeAssets.macOS" version="2.88.9" targetFramework="net472" />
|
||||
<package id="SkiaSharp.NativeAssets.Win32" version="2.88.9" targetFramework="net472" />
|
||||
<package id="SkiaSharp.Views.Desktop.Common" version="2.88.9" targetFramework="net472" />
|
||||
<package id="SkiaSharp.Views.WindowsForms" version="2.88.9" targetFramework="net472" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
||||
<package id="System.Drawing.Common" version="4.7.3" targetFramework="net472" />
|
||||
<package id="System.Memory" version="4.5.5" targetFramework="net472" />
|
||||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
|
||||
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.3" targetFramework="net472" />
|
||||
<package id="System.ValueTuple" version="4.5.0" targetFramework="net472" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user