88 lines
3.9 KiB
C#
88 lines
3.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace DTS.SensorDB
|
|
{
|
|
/// <summary>
|
|
/// handles the calibration information section of the TSF
|
|
/// </summary>
|
|
public class TSFCalibrationInformation
|
|
{
|
|
private int _version;
|
|
public int Version { get { return _version; } set { _version = value; } }
|
|
|
|
private TSFChannelDescription _parent;
|
|
public TSFChannelDescription Parent { get { return _parent; } set { _parent = value; } }
|
|
|
|
private int _source;
|
|
public int Source { get { return _source; } set { _source = value; } }
|
|
|
|
private ulong _crc32;
|
|
public ulong CRC32 { get { return _crc32; } set { _crc32 = value; } }
|
|
|
|
private bool _calibrationValid;
|
|
public bool CalibrationValid { get { return _calibrationValid; } set { _calibrationValid = value; } }
|
|
|
|
private bool _calPas;
|
|
public bool CalPass { get { return _calPas; } set { _calPas = value; } }
|
|
|
|
private double _calGainErrorPercent;
|
|
public double CalGainErrorPercent { get { return _calGainErrorPercent; } set { _calGainErrorPercent = value; } }
|
|
|
|
private double _calShuntErrorPercent;
|
|
public double CalShuntErrorPercent { get { return _calShuntErrorPercent; } set { _calShuntErrorPercent = value; } }
|
|
|
|
private double _calMeasuredScaleFactorMV;
|
|
public double CalMeasuredScaleFactorMV { get { return _calMeasuredScaleFactorMV; } set { _calMeasuredScaleFactorMV = value; } }
|
|
|
|
private double _calExcitationVolts;
|
|
public double CalExcitationVolts { get { return _calExcitationVolts; } set { _calExcitationVolts = value; } }
|
|
|
|
private int _calChannelOffsetADC;
|
|
public int CalChannelOffsetADC { get { return _calChannelOffsetADC; } set { _calChannelOffsetADC = value; } }
|
|
|
|
private int _calChannelZeroADC;
|
|
public int CalChannelZeroADC { get { return _calChannelZeroADC; } set { _calChannelZeroADC = value; } }
|
|
|
|
private double _calNaturalSensorOffsetMV;
|
|
public double CalNaturalSensorOffsetMV { get { return _calNaturalSensorOffsetMV; } set { _calNaturalSensorOffsetMV = value; } }
|
|
|
|
private int _calNaturalFloorADC;
|
|
public int CalNaturalFloorADC { get { return _calNaturalFloorADC; } set { _calNaturalFloorADC = value; } }
|
|
|
|
private double _calInputRangeMV { get { return _calInputRangeMV; } set { _calInputRangeMV = value; } }
|
|
|
|
private double _calNoiseFloorADC;
|
|
public double CalNoiseFloorADC { get { return _calNoiseFloorADC; } set { _calNoiseFloorADC = value; } }
|
|
|
|
private double _calNoiseAtRangeADC;
|
|
public double CalNoiseAtRangeADC { get { return _calNoiseAtRangeADC; } set { _calNoiseAtRangeADC = value; } }
|
|
|
|
public TSFCalibrationInformation() { }
|
|
|
|
public TSFCalibrationInformation(TSFCalibrationInformation copy, TSFChannelDescription channel)
|
|
{
|
|
_calChannelOffsetADC = copy._calChannelOffsetADC;
|
|
_calChannelZeroADC = copy._calChannelZeroADC;
|
|
_calExcitationVolts = copy._calExcitationVolts;
|
|
_calGainErrorPercent = copy._calGainErrorPercent;
|
|
_calibrationValid = copy._calibrationValid;
|
|
_calInputRangeMV = copy._calInputRangeMV;
|
|
_calMeasuredScaleFactorMV = copy._calMeasuredScaleFactorMV;
|
|
_calNaturalFloorADC = copy._calNaturalFloorADC;
|
|
_calNaturalSensorOffsetMV = copy._calNaturalSensorOffsetMV;
|
|
_calNoiseAtRangeADC = copy._calNoiseAtRangeADC;
|
|
_calNoiseFloorADC = copy._calNoiseFloorADC;
|
|
_calPas = copy._calPas;
|
|
_calShuntErrorPercent = copy._calShuntErrorPercent;
|
|
_crc32 = copy._crc32;
|
|
_parent = channel;
|
|
_source = copy._source;
|
|
_version = copy._version;
|
|
}
|
|
|
|
}
|
|
}
|