init
This commit is contained in:
@@ -0,0 +1,139 @@
|
||||
using System;
|
||||
using DTS.Common.Classes.Sensors;
|
||||
|
||||
namespace DTS.SensorDB
|
||||
{
|
||||
/// <summary>
|
||||
/// an entry in the Start Sensor Channel Information section of a TSF
|
||||
/// can contain
|
||||
/// datachan,rack,mod,chan,descrip,s/n,offsetlow,offsethigh,calmode,calstep(ohm/volt),shuntval(eu),proptoext,sens(mv/eu or mv/v/eu),gain,extvolt,EU,filter,invert,zeroref,desiredmaxrange,commentfield,caldate,Offset?,InitialEU,sensorID,ISOcode,IRTRACC exponent,sensor category,desired max range scaling,C0,C1,C2,C3,C4,C5
|
||||
/// these entries are analog sensor channels
|
||||
/// </summary>
|
||||
public class TSFSensorEntry : TSFChannel
|
||||
{
|
||||
public enum Fields
|
||||
{
|
||||
datachan,
|
||||
rack,
|
||||
mod,
|
||||
chan,
|
||||
descrip,
|
||||
serialNumber,
|
||||
offsetlow,
|
||||
offsethigh,
|
||||
calmode,
|
||||
calstep,//(ohm/volt),
|
||||
shuntval,//(eu)
|
||||
proptoext,
|
||||
sens,//(mv/eu or mv/v/eu),
|
||||
gain,
|
||||
extvolt,
|
||||
EU,
|
||||
filter,
|
||||
invert,
|
||||
zeroref,
|
||||
desiredmaxrange,
|
||||
commentfield,
|
||||
caldate,
|
||||
Offset,//?,
|
||||
InitialEU,
|
||||
sensorID,
|
||||
ISOcode,
|
||||
IRTRACCexponent,
|
||||
sensorcategory,
|
||||
desiredmaxrangescaling,
|
||||
C0,
|
||||
C1,
|
||||
C2,
|
||||
C3,
|
||||
C4,
|
||||
C5
|
||||
}
|
||||
|
||||
public int DataChan { get; set; }
|
||||
|
||||
public int Rack { get; set; }
|
||||
|
||||
public int Module { get; set; }
|
||||
|
||||
public int Chan { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public string SerialNumber { get; set; }
|
||||
|
||||
public double OffsetLow { get; set; }
|
||||
|
||||
public double OffsetHigh { get; set; }
|
||||
|
||||
public bool RemoveOffset { get; set; } = true;
|
||||
|
||||
public CalMode CalMode { get; set; } = new CalMode();
|
||||
|
||||
public double CalStep { get; set; }
|
||||
|
||||
public double ShuntValue { get; set; }
|
||||
|
||||
public bool ProportionalToExcitation { get; set; }
|
||||
|
||||
public double Sensitivity { get; set; }
|
||||
|
||||
public double Gain { get; set; }
|
||||
|
||||
public double ExtVolt { get; set; }
|
||||
|
||||
public string EU { get; set; }
|
||||
|
||||
/*private string _filter;
|
||||
public string Filter { get { return _filter; } set { _filter = value; } }
|
||||
*/
|
||||
public double Filter { get; set; }
|
||||
|
||||
public bool Invert { get; set; }
|
||||
|
||||
public ZeroRef ZeroRef { get; set; }
|
||||
|
||||
public double DesiredMaxRange { get; set; }
|
||||
|
||||
public string CommentField { get; set; }
|
||||
|
||||
public DateTime CalDate { get; set; }
|
||||
|
||||
public bool Offset { get; set; }
|
||||
|
||||
public double InitialEU { get; set; }
|
||||
|
||||
private string _sensorId;
|
||||
public string SensorId
|
||||
{
|
||||
get { return _sensorId; }
|
||||
set
|
||||
{
|
||||
if (value.ToLower() == "none") { value = ""; }
|
||||
_sensorId = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string ISOCode { get; set; }
|
||||
|
||||
public double IRTRACCexponent { get; set; }
|
||||
|
||||
public SensorInformationFile.TDCSensorCategory SensorCategory { get; set; } = SensorInformationFile.TDCSensorCategory.Normal;
|
||||
|
||||
public double DesiredMaxRangeScaling { get; set; }
|
||||
|
||||
public double C0 { get; set; }
|
||||
|
||||
public double C1 { get; set; }
|
||||
|
||||
public double C2 { get; set; }
|
||||
|
||||
public double C3 { get; set; }
|
||||
|
||||
public double C4 { get; set; }
|
||||
|
||||
public double C5 { get; set; }
|
||||
|
||||
public double C6 { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user