62 lines
2.4 KiB
C#
62 lines
2.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using GenesisZeroFlow;
|
|
using Xylem.Common.Hardware.WaterMeter;
|
|
using Xylem.Common.Hardware.WaterMeter.Genesis;
|
|
|
|
namespace GenesisDisplayTool
|
|
{
|
|
|
|
public class ZeroFlowMeter : GenesisMeter
|
|
{
|
|
|
|
public String Password = String.Empty;
|
|
public Boolean LogOnEnable = false;
|
|
public Boolean PreparationEnable = false;
|
|
public Boolean AmplitudeEnable = false;
|
|
public Boolean ZeroFlowOffsetEnable = false;
|
|
public Boolean TempCalEnable = false;
|
|
public Boolean CompletionEnable = false;
|
|
public Boolean LoginFailed = false;
|
|
public Boolean PreparationFailed = false;
|
|
public Boolean AmplitudeFailed = false;
|
|
public Boolean ZeroFlowOffsetFailed = false;
|
|
public Boolean TempCalFailed = false;
|
|
public Boolean CompletionFailed = false;
|
|
public Boolean Ok = false;
|
|
public Boolean EmptyPipeCheckEnable = false;
|
|
public Boolean EmptyPipeCheckFailed = false;
|
|
public Boolean MeterSelected = false;
|
|
|
|
|
|
public DecodedData DecodedAllMeters = new DecodedData();
|
|
private Boolean NewDataIndicatorAmplitudeTest;
|
|
Double[] totalTimeOfFlightAverage = new Double[Constants.NumberOfPaths];
|
|
Double[] DeltaTimeOfFlightAverage = new Double[Constants.NumberOfPaths];
|
|
private Boolean NewDataIndicatorZeroFlowTest;
|
|
Double[] AmplitudeValuesPositive = new Double[Constants.NumberOfPaths];
|
|
Double[] AmplitudeValuesNegative = new Double[Constants.NumberOfPaths];
|
|
private Int32 BadDataCounterZeroFlowTest;
|
|
Int32 LineCounterZeroFlowTest;
|
|
Int32 LineCounterAmplitudeTest;
|
|
Int32 LineCounterEmptyPipeTest;
|
|
Int32[] ToFTempOffset = new Int32[Constants.NumberOfPaths];
|
|
Int32[] ZeroFlowOffset = new Int32[Constants.NumberOfPaths];
|
|
Byte[] FirstHitPercentage = new Byte[Constants.NumberOfPaths];
|
|
UInt16[] CalFactor = new UInt16[Constants.NumberOfPaths];
|
|
string LoggingPathZeroFlowTest = String.Empty;
|
|
bool StartLoggingIndicatorAmplitudeTest = false;
|
|
bool LoggingIndicatorAmplitudeTest = false;
|
|
String[] NumbersToLog = new String[Constants.NumberOfPaths];
|
|
Int32 SlotNr;
|
|
public ZeroFlowMeter(Int32 slot) : base()
|
|
{
|
|
SlotNr = slot;
|
|
base.SetupFromConfigFile(slot);
|
|
}
|
|
}
|
|
}
|