Add project files.

This commit is contained in:
Wesley Hofman
2025-08-29 18:17:48 +02:00
parent 31eaf9e5f7
commit a0d5f3b21b
23 changed files with 2144 additions and 0 deletions

53
HTOLHAST/Sample.cs Normal file
View File

@@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HTOLHAST
{
public abstract class Sample
{
public DateTime TimeStamp { get; set; }
public string Unit { get; set; }
public Sample(DateTime timeStamp, string unit)
{
TimeStamp = timeStamp;
Unit = unit;
}
}
// Derived class for Data Logger Sample
public class Hameg4040Sample : Sample
{
public double Value { get; set; }
public int Channel { get; set; }
public Hameg4040Sample(DateTime timeStamp, string unit, double value, int channel ) : base(timeStamp , unit)
{
Value = value;
Channel = channel;
}
}
public class Keithley6485Sample : Sample
{
public double Value { get; set; }
public Keithley6485Sample(DateTime timeStamp, double value, string unit) : base(timeStamp, unit)
{
Value = value;
}
}
public class HMP4040Sample : Sample
{
public double Value { get; set; }
public HMP4040Sample(DateTime timeStamp, double value, string unit) : base(timeStamp, unit)
{
Value = value;
}
}
}