common/Logic/ProductionOrderCore/TestResults/CalibrationResults.cs
2026-04-23 17:50:07 +02:00

141 lines
3.9 KiB
C#

using System;
using System.Collections.Generic;
namespace Xylem.Common.Logic.ProductionOrderCore.TestResults
{
/// <summary>
/// Container for calibration results
/// </summary>
public class CalibrationResults
{
/// <summary>
/// List of all calibration values needed to be read and compared
/// </summary>
public static readonly List<String> CalibrationRegisterNames = new List<String>
{
"GENESISFLOW_CalFactor1",
"GENESISFLOW_CalFactor2",
"GENESISFLOW_CalFactor3",
"GENESISFLOW_ZeroOffset1",
"GENESISFLOW_ZeroOffset2",
"GENESISFLOW_ZeroOffset3",
"GENESISFLOW_FirstHitUpdatePeriod",
"GENESISFLOW_FirstHitShift",
"GENESISFLOW_FirstHitPercent1",
"GENESISFLOW_FirstHitPercent2",
"GENESISFLOW_FirstHitPercent3",
"GENESISFLOW_ToFTempOffset1",
"GENESISFLOW_ToFTempOffset2",
"GENESISFLOW_ToFTempOffset3",
"GENESISFLOW_MeterSize"
};
/// <summary>
/// Definition of registers which should be checked for default because this is doubtful and
/// may indicate an uncalibrated (flow-test) meter.
/// </summary>
public static readonly List<String> CheckForDefaultsRegisterNames = new List<String>
{
"GENESISFLOW_CalFactor1",
"GENESISFLOW_CalFactor2",
"GENESISFLOW_CalFactor3"
};
/// <summary>
/// ID of DB table
/// </summary>
public Int32 Id { get; set; }
/// <summary>
/// Unique identifier for PCB
/// </summary>
public String PcbId { get; set;}
/// <summary>
/// Calibration value channel 1
/// </summary>
public UInt16 CalFactor1 { get; set;}
/// <summary>
/// Calibration value channel 2
/// </summary>
public UInt16 CalFactor2 { get; set;}
/// <summary>
/// Calibration value channel 3
/// </summary>
public UInt16 CalFactor3 { get; set;}
/// <summary>
/// Zero offset channel 1
/// </summary>
public Int32 ZeroOffset1{ get; set;}
/// <summary>
/// Zero offset channel 2
/// </summary>
public Int32 ZeroOffset2{ get; set;}
/// <summary>
/// Zero offset channel 3
/// </summary>
public Int32 ZeroOffset3{ get; set;}
/// <summary>
/// First hit update period
/// </summary>
public Byte FirstHitUpdatePeriod{ get; set;}
/// <summary>
/// First hit shift
/// </summary>
public Byte FirstHitShift { get; set;}
/// <summary>
/// First hit percent channel 1
/// </summary>
public Byte FirstHitPercent1 { get; set;}
/// <summary>
/// First hit percent channel 2
/// </summary>
public Byte FirstHitPercent2 { get; set;}
/// <summary>
/// First hit percent channel 3
/// </summary>
public Byte FirstHitPercent3 { get; set;}
/// <summary>
/// Time of flight temperature offset channel 1
/// </summary>
public Int32 ToFTempOffset1 { get; set;}
/// <summary>
/// Time of flight temperature offset channel 2
/// </summary>
public Int32 ToFTempOffset2 { get; set;}
/// <summary>
/// Time of flight temperature offset channel 3
/// </summary>
public Int32 ToFTempOffset3 { get; set;}
/// <summary>
/// Meter size
/// </summary>
public Byte MeterSize { get; set;}
/// <summary>
/// Test date time
/// </summary>
public DateTime Date { get; set;}
/// <summary>
/// Test labeled as succeeded
/// </summary>
public Boolean Succeeded { get; set;}
}
}