Constructors of components : Logging level increased to WARN

This commit is contained in:
Milan Hanajik
2021-02-19 09:50:48 +01:00
parent d2f3a937ec
commit 63a15fc1de
161 changed files with 164 additions and 164 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ namespace TBF.BenchControl.Ambient.Comet
: base(cfg) : base(cfg)
{ {
ambientCfg = cfg as AmbientCfg; ambientCfg = cfg as AmbientCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void Initialize() public void Initialize()
+1 -1
View File
@@ -58,7 +58,7 @@ namespace TBF.BenchControl.Ambient.Greco
: base(cfg) : base(cfg)
{ {
ambientCfg = cfg as AmbientCfg; ambientCfg = cfg as AmbientCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void Initialize() public void Initialize()
+1 -1
View File
@@ -50,7 +50,7 @@ namespace TBF.BenchControl.BuiltIn.Pump
bitPosition = pumpCfg.BitNr; bitPosition = pumpCfg.BitNr;
Mask = (((UInt128)1) << pumpCfg.BitNr); Mask = (((UInt128)1) << pumpCfg.BitNr);
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public bool State public bool State
+1 -1
View File
@@ -72,7 +72,7 @@ namespace TBF.BenchControl.BuiltIn.PumpTandem
else if (pump2 is Danfoss.VLT2800.Pump) { mask2 = (pump2 as Danfoss.VLT2800.Pump).Mask; } else if (pump2 is Danfoss.VLT2800.Pump) { mask2 = (pump2 as Danfoss.VLT2800.Pump).Mask; }
else { mask2 = 0; } else { mask2 = 0; }
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
+1 -1
View File
@@ -58,7 +58,7 @@ namespace TBF.BenchControl.BuiltIn.Valve
coupledTo = (IValve)TbfComponents.FindComponent(valveCfg.CoupledToName, components); coupledTo = (IValve)TbfComponents.FindComponent(valveCfg.CoupledToName, components);
} }
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public bool State public bool State
+2 -2
View File
@@ -53,8 +53,8 @@ namespace TBF.BenchControl.BuiltIn.ValveEx
{ {
InputValves[4] = TbfComponents.FindComponent(valveCfg.Input5, components) as IValve; InputValves[4] = TbfComponents.FindComponent(valveCfg.Input5, components) as IValve;
} }
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void UpdateRoute(ref UInt128 route) public void UpdateRoute(ref UInt128 route)
@@ -85,7 +85,7 @@ namespace TBF.BenchControl.ControlBoard.Papouch
} }
}; };
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void InitializeComponent(object thirdPartyComponent, UInt128 valvesToInvert, double[] tankCapacities) public void InitializeComponent(object thirdPartyComponent, UInt128 valvesToInvert, double[] tankCapacities)
+1 -1
View File
@@ -178,7 +178,7 @@ namespace TBF.BenchControl.Danfoss.VLT2800
} }
}; };
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void Initialize() public void Initialize()
@@ -31,7 +31,7 @@ namespace TBF.BenchControl.DataContainers.BackupAndSecurityOptions
Users.GlobalData.MinPasswdLength = myCfg.MinPasswdLength; Users.GlobalData.MinPasswdLength = myCfg.MinPasswdLength;
Users.GlobalData.PasswdExpirationPeriodDays = myCfg.PasswdExpirationPeriodDays; Users.GlobalData.PasswdExpirationPeriodDays = myCfg.PasswdExpirationPeriodDays;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
} }
} }
@@ -39,7 +39,7 @@ namespace TBF.BenchControl.DataContainers.BenchInfo.Extended
{ {
myCfg = cfg as ComponentCfg; myCfg = cfg as ComponentCfg;
Events.DB.SetBenchName(myCfg.TestBenchName); Events.DB.SetBenchName(myCfg.TestBenchName);
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
} }
} }
@@ -42,7 +42,7 @@ namespace TBF.BenchControl.DataContainers.BenchInfo.iPerl
{ {
myCfg = cfg as ComponentCfg; myCfg = cfg as ComponentCfg;
Events.DB.SetBenchName(myCfg.TestBenchName); Events.DB.SetBenchName(myCfg.TestBenchName);
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -38,7 +38,7 @@ namespace TBF.BenchControl.DataContainers.Evaporation
: base(cfg) : base(cfg)
{ {
myCfg = cfg as EvaporationCfg; myCfg = cfg as EvaporationCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public IList<Config.CalendarEvent.ICalendarEvent> GetCalendarEvents() public IList<Config.CalendarEvent.ICalendarEvent> GetCalendarEvents()
@@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Combined
wmCycleEndState = new string[Config.Data.CompoundWMsCount * 2]; wmCycleEndState = new string[Config.Data.CompoundWMsCount * 2];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Fewa
wmCycleEndState = new string[Config.Data.WMsCount]; wmCycleEndState = new string[Config.Data.WMsCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -94,7 +94,7 @@ namespace TBF.BenchControl.DataEntry.HeatMeters12
wmCycleEndState = new string[Config.Data.HeatMetersCount]; wmCycleEndState = new string[Config.Data.HeatMetersCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -94,7 +94,7 @@ namespace TBF.BenchControl.DataEntry.HeatMeters6
wmCycleEndState = new string[Config.Data.HeatMetersCount]; wmCycleEndState = new string[Config.Data.HeatMetersCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -68,7 +68,7 @@ namespace TBF.BenchControl.DataEntry.Munich
wmEndState = new string[Config.Data.CompoundWMsCount]; wmEndState = new string[Config.Data.CompoundWMsCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -81,7 +81,7 @@ namespace TBF.BenchControl.DataEntry.Munich3
wmCycleEndState = new string[Config.Data.WMsCount]; wmCycleEndState = new string[Config.Data.WMsCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Single
wmCycleEndState = new string[Config.Data.WMsCount]; wmCycleEndState = new string[Config.Data.WMsCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Standard12
wmCycleEndState = new string[Config.Data.WMsCount]; wmCycleEndState = new string[Config.Data.WMsCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Standard24
wmEndStateStr = new string[Config.Data.WMsCount]; wmEndStateStr = new string[Config.Data.WMsCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Standard48
wmCycleEndState = new string[Config.Data.WMsCount]; wmCycleEndState = new string[Config.Data.WMsCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -72,7 +72,7 @@ namespace TBF.BenchControl.DataEntry.Standard6
wmEndState = new double[Config.Data.WMsCount]; wmEndState = new double[Config.Data.WMsCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -126,7 +126,7 @@ namespace TBF.BenchControl.DataEntry.StandardCamera
wmCycleEndState = new string[Config.Data.WMsCount]; wmCycleEndState = new string[Config.Data.WMsCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.iPerl
wmCycleEndState = new string[Config.Data.WMsCount]; wmCycleEndState = new string[Config.Data.WMsCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
+1 -1
View File
@@ -24,7 +24,7 @@ namespace TBF.BenchControl.Dummy.Balance
public Component(Generic.IComponentCfg cfg) public Component(Generic.IComponentCfg cfg)
: base(cfg) : base(cfg)
{ {
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public int ScaleNr { get { return 0; } } public int ScaleNr { get { return 0; } }
+1 -1
View File
@@ -32,7 +32,7 @@ namespace TBF.BenchControl.Dummy.Diverter
{ {
switchTimeStart = new FloatBox(); switchTimeStart = new FloatBox();
switchTimeEnd = new FloatBox(); switchTimeEnd = new FloatBox();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public int DiverterNr { get { return 0; } } public int DiverterNr { get { return 0; } }
@@ -38,7 +38,7 @@ namespace TBF.BenchControl.Dummy.FlowMeter
{ {
flowMeterCfg = cfg as FlowMeterCfg; flowMeterCfg = cfg as FlowMeterCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -37,7 +37,7 @@ namespace TBF.BenchControl.Dummy.RegulValve
RegulValveCfg = cfg as RegulValveCfg; RegulValveCfg = cfg as RegulValveCfg;
dict = new Dictionary<double, float>(); dict = new Dictionary<double, float>();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void Initialize() { } public void Initialize() { }
+1 -1
View File
@@ -24,7 +24,7 @@ namespace TBF.BenchControl.Dummy.Valve
public Component(Generic.IComponentCfg cfg) public Component(Generic.IComponentCfg cfg)
: base(cfg) : base(cfg)
{ {
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
bool state; bool state;
+1 -1
View File
@@ -45,7 +45,7 @@ namespace TBF.BenchControl.Elde.CoverTest
message = coverTestCfg.Message; message = coverTestCfg.Message;
bypassLevel = coverTestCfg.BypassLevel; bypassLevel = coverTestCfg.BypassLevel;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
+1 -1
View File
@@ -150,7 +150,7 @@ namespace TBF.BenchControl.Elde.Diverter
diverterToSinkOp = new SwitchDiverterOp(controlBoard, false, flowMtrNr4Cmd); diverterToSinkOp = new SwitchDiverterOp(controlBoard, false, flowMtrNr4Cmd);
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
} }
+1 -1
View File
@@ -62,7 +62,7 @@ namespace TBF.BenchControl.Elde.FlowMeter
controlBoard.EtCalib[Idx1] = (float)flowMeterCfg.NominalFlow; controlBoard.EtCalib[Idx1] = (float)flowMeterCfg.NominalFlow;
} }
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// ///
@@ -130,7 +130,7 @@ namespace TBF.BenchControl.Elde.FlowMeterDewa
refFreq = new double[4]; refFreq = new double[4];
refPulses = new int[4]; refPulses = new int[4];
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public double ReadFlow() { return controlBoard.RefFlow; } public double ReadFlow() { return controlBoard.RefFlow; }
@@ -44,7 +44,7 @@ namespace TBF.BenchControl.Elde.FlowMeterTriplet
if (Idx1 >= controlBoard.EtCalib.Length) throw new Exception("Flowmeter " + Name + " parameter 'Idx1' is out of range"); if (Idx1 >= controlBoard.EtCalib.Length) throw new Exception("Flowmeter " + Name + " parameter 'Idx1' is out of range");
controlBoard.EtCalib[Idx1] = (float)flowMeterCfg.NominalFlow; controlBoard.EtCalib[Idx1] = (float)flowMeterCfg.NominalFlow;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public double ReadFlow() { return controlBoard.RefFlow; } public double ReadFlow() { return controlBoard.RefFlow; }
@@ -56,7 +56,7 @@ namespace TBF.BenchControl.Elde.FlowMeterTwins
/// Prepare data for SendCalibData() control board component method /// Prepare data for SendCalibData() control board component method
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public double ReadFlow() { return controlBoard.RefFlow; } public double ReadFlow() { return controlBoard.RefFlow; }
@@ -51,7 +51,7 @@ namespace TBF.BenchControl.Elde.PressureMeter
ControlBoard.MeretProtocol |= (byte)(1 << Idx0); ControlBoard.MeretProtocol |= (byte)(1 << Idx0);
} }
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -42,7 +42,7 @@ namespace TBF.BenchControl.Elde.PressureMeterInternal
ControlBoard.TempCalibData[pressureMeterCfg.CoefsIdx0, 4] = pressureMeterCfg.A5; ControlBoard.TempCalibData[pressureMeterCfg.CoefsIdx0, 4] = pressureMeterCfg.A5;
ControlBoard.MeretRS485Address[0] = 0; /// This disables Merets, Groch temperatures, enables on-board A/D pressure and temperature ControlBoard.MeretRS485Address[0] = 0; /// This disables Merets, Groch temperatures, enables on-board A/D pressure and temperature
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
+1 -1
View File
@@ -95,7 +95,7 @@ namespace TBF.BenchControl.Elde.PumpWithFM
Mask = (((UInt128)1) << pumpCfg.BitNr); Mask = (((UInt128)1) << pumpCfg.BitNr);
FMIndex = pumpCfg.FMIndex; FMIndex = pumpCfg.FMIndex;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -142,7 +142,7 @@ namespace TBF.BenchControl.Elde.RegulValve
StartChangeHandler(); StartChangeHandler();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -64,7 +64,7 @@ namespace TBF.BenchControl.Elde.RegulValveCoax
this.dict = new Dictionary<double, float>(); this.dict = new Dictionary<double, float>();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -114,7 +114,7 @@ namespace TBF.BenchControl.Elde.RegulValveCoax
this.leaveMeasurementRunning = leaveMeasurementRunning; this.leaveMeasurementRunning = leaveMeasurementRunning;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <summary> /// <summary>
@@ -59,7 +59,7 @@ namespace TBF.BenchControl.Elde.RegulValveTandem
this.dict = new Dictionary<double, float>(); this.dict = new Dictionary<double, float>();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <summary> /// <summary>
+1 -1
View File
@@ -47,7 +47,7 @@ namespace TBF.BenchControl.Elde.TempMeter
ControlBoard.TempCalibData[Idx0, 3] = (float)A4; ControlBoard.TempCalibData[Idx0, 3] = (float)A4;
ControlBoard.TempCalibData[Idx0, 4] = (float)A5; ControlBoard.TempCalibData[Idx0, 4] = (float)A5;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -42,7 +42,7 @@ namespace TBF.BenchControl.Elde.TempMeterInternal
ControlBoard.TempCalibData[tempMtrCfg.CoefsIdx0, 3] = tempMtrCfg.A4; ControlBoard.TempCalibData[tempMtrCfg.CoefsIdx0, 3] = tempMtrCfg.A4;
ControlBoard.TempCalibData[tempMtrCfg.CoefsIdx0, 4] = tempMtrCfg.A5; ControlBoard.TempCalibData[tempMtrCfg.CoefsIdx0, 4] = tempMtrCfg.A5;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -34,7 +34,7 @@ namespace TBF.BenchControl.Elde.TempMeterMeret
/// Prepare data for SendCalibData() control board component method /// Prepare data for SendCalibData() control board component method
ControlBoard.MeretRS485Address[tempMtrCfg.MeretIdx0] = tempMtrCfg.ModbusAddress; ControlBoard.MeretRS485Address[tempMtrCfg.MeretIdx0] = tempMtrCfg.ModbusAddress;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
+1 -1
View File
@@ -68,7 +68,7 @@ namespace TBF.BenchControl.Hart.Common
serialPort = null; serialPort = null;
hartCfg = cfg as HartCfg; hartCfg = cfg as HartCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
~Hart() ~Hart()
+1 -1
View File
@@ -69,7 +69,7 @@ namespace TBF.BenchControl.Hart.Nivotrack
levelReadings = new double[StableReadingsCount]; levelReadings = new double[StableReadingsCount];
sortedLevelReadings = new double[StableReadingsCount]; sortedLevelReadings = new double[StableReadingsCount];
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// ///
@@ -84,7 +84,7 @@ namespace TBF.BenchControl.Keithley.Multimeter_2010_RS232
currentChannel = 0; /// invalid, no :rout:clos command yet currentChannel = 0; /// invalid, no :rout:clos command yet
scanState = ScanState.Off; scanState = ScanState.Off;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
~Multimeter() ~Multimeter()
@@ -44,7 +44,7 @@ namespace TBF.BenchControl.Keithley.TempMeter
operations = new Dictionary<DoubleBox, IOperation>(); operations = new Dictionary<DoubleBox, IOperation>();
operations2 = new Dictionary<DoubleBox, IOperation>(); operations2 = new Dictionary<DoubleBox, IOperation>();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// ///
@@ -101,7 +101,7 @@ namespace TBF.BenchControl.MettlerToledo.Multi
Balances[nextBalanceIdx - 1] = this; Balances[nextBalanceIdx - 1] = this;
} }
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void Initialize() public void Initialize()
@@ -117,7 +117,7 @@ namespace TBF.BenchControl.MettlerToledo.Standard
Balances[nextBalanceIdx - 1] = this; Balances[nextBalanceIdx - 1] = this;
} }
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void Initialize() public void Initialize()
@@ -35,7 +35,7 @@ namespace TBF.BenchControl.MettlerToledo.Standard
public BalanceNewDev(Generic.IComponentCfg cfg) public BalanceNewDev(Generic.IComponentCfg cfg)
: base(cfg) : base(cfg)
{ {
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <summary> /// <summary>
@@ -32,7 +32,7 @@ namespace TBF.BenchControl.MettlerToledo.Standard
public BalanceOld(Generic.IComponentCfg cfg) public BalanceOld(Generic.IComponentCfg cfg)
: base(cfg) : base(cfg)
{ {
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -50,7 +50,7 @@ namespace TBF.BenchControl.Modbus.CometAmbient
modbus = (GenericDevices.IModbus)TbfComponents.FindComponent(cfg.ParentName, components); modbus = (GenericDevices.IModbus)TbfComponents.FindComponent(cfg.ParentName, components);
if (modbus == null) throw new Exception("Cannot find " + Name + " parent"); if (modbus == null) throw new Exception("Cannot find " + Name + " parent");
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void Initialize() public void Initialize()
+1 -1
View File
@@ -62,7 +62,7 @@ namespace TBF.BenchControl.Modbus.Common
serialPort = null; serialPort = null;
modbusCommonCfg = cfg as ModbusCfg; modbusCommonCfg = cfg as ModbusCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
~Modbus() ~Modbus()
+1 -1
View File
@@ -169,7 +169,7 @@ namespace TBF.BenchControl.Modbus.Danfoss.VLT
} }
}; };
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// ///
@@ -36,7 +36,7 @@ namespace TBF.BenchControl.Modbus.Easytherm
modbus = (GenericDevices.IModbus)TbfComponents.FindComponent(cfg.ParentName, components); modbus = (GenericDevices.IModbus)TbfComponents.FindComponent(cfg.ParentName, components);
if (modbus == null) throw new Exception("Cannot find " + Name + " parent"); if (modbus == null) throw new Exception("Cannot find " + Name + " parent");
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <summary>Initialize this device</summary> /// <summary>Initialize this device</summary>
@@ -37,7 +37,7 @@ namespace TBF.BenchControl.Modbus.Meret.PressureMeter
modbus = (GenericDevices.IModbus)TbfComponents.FindComponent(cfg.ParentName, components); modbus = (GenericDevices.IModbus)TbfComponents.FindComponent(cfg.ParentName, components);
if (modbus == null) throw new Exception("Cannot find " + Name + " parent"); if (modbus == null) throw new Exception("Cannot find " + Name + " parent");
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// ///
@@ -37,7 +37,7 @@ namespace TBF.BenchControl.Modbus.Meret.TempMeter
modbus = TbfComponents.FindComponent(cfg.ParentName, components) as GenericDevices.IModbus; modbus = TbfComponents.FindComponent(cfg.ParentName, components) as GenericDevices.IModbus;
if (modbus == null) throw new Exception("Cannot find " + Name + " parent"); if (modbus == null) throw new Exception("Cannot find " + Name + " parent");
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// ///
+1 -1
View File
@@ -40,7 +40,7 @@ namespace TBF.BenchControl.Modbus.QuidoRS
watchdogBitMask = (ushort)(quidoRSCfg.WatchdogEnabled ? (1 << quidoRSCfg.WatchdogBitNr) : 0); watchdogBitMask = (ushort)(quidoRSCfg.WatchdogEnabled ? (1 << quidoRSCfg.WatchdogBitNr) : 0);
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// ///
@@ -52,7 +52,7 @@ namespace TBF.BenchControl.Modbus.UltrasoundLevelMeter
/// Connect to handler /// Connect to handler
//ModbusAddress.MeretRS485Address[Idx0] = ModbusAddress; //ModbusAddress.MeretRS485Address[Idx0] = ModbusAddress;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <summary>Initialize this device</summary> /// <summary>Initialize this device</summary>
@@ -49,7 +49,7 @@ namespace TBF.BenchControl.Modbus.WaterAnalyzer
/// Connect to handler /// Connect to handler
//ModbusAddress.MeretRS485Address[Idx0] = ModbusAddress; //ModbusAddress.MeretRS485Address[Idx0] = ModbusAddress;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <summary>Initialize this device</summary> /// <summary>Initialize this device</summary>
@@ -42,7 +42,7 @@ namespace TBF.BenchControl.Network.Adapter
running = false; running = false;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
} }
} }
@@ -31,7 +31,7 @@ namespace TBF.BenchControl.Network.Camera.Display
{ {
DisplayCfg = cfg as DisplayCfg; DisplayCfg = cfg as DisplayCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
+1 -1
View File
@@ -141,7 +141,7 @@ namespace TBF.BenchControl.Network.Camera.Roi
//StartChangeHandler(); /// already done in StateMachine.InitializeBoardEtc(...) //StartChangeHandler(); /// already done in StateMachine.InitializeBoardEtc(...)
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -80,7 +80,7 @@ namespace TBF.BenchControl.Network.Camera.RoiForFixedStart
StartChangeHandler(); StartChangeHandler();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -68,7 +68,7 @@ namespace TBF.BenchControl.Network.Comet.Ambient
ipAddress = IPAddress.Parse(myCfg.IPAddress); ipAddress = IPAddress.Parse(myCfg.IPAddress);
tcpPort = myCfg.TcpPort; tcpPort = myCfg.TcpPort;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void Initialize() public void Initialize()
@@ -111,7 +111,7 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
netMask = netadapter.NetMask; netMask = netadapter.NetMask;
currentOpState = OpState.None; currentOpState = OpState.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// ///
@@ -52,7 +52,7 @@ namespace TBF.BenchControl.Output.DB.SaveDiverterCorrections
myCfg = cfg as SaveDiverterCorrCfg; myCfg = cfg as SaveDiverterCorrCfg;
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -52,7 +52,7 @@ namespace TBF.BenchControl.Output.DB.SaveFlowmeterCorrections
myCfg = cfg as SaveFlowmeterCorrCfg; myCfg = cfg as SaveFlowmeterCorrCfg;
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -23,7 +23,7 @@ namespace TBF.BenchControl.Output.EventTriggers.Iperl
{ {
triggerCfg = cfg as TriggerCfg; triggerCfg = cfg as TriggerCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -26,7 +26,7 @@ namespace TBF.BenchControl.Output.EventTriggers.Standard
{ {
triggerCfg = cfg as TriggerCfg; triggerCfg = cfg as TriggerCfg;
if (triggerCfg == null) throw new ArgumentException("triggerCfg"); if (triggerCfg == null) throw new ArgumentException("triggerCfg");
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
#region Configuration Change Handling #region Configuration Change Handling
@@ -39,7 +39,7 @@ namespace TBF.BenchControl.Output.FileWriters.Basic
{ {
writerCfg = cfg as WriterCfg; writerCfg = cfg as WriterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -38,7 +38,7 @@ namespace TBF.BenchControl.Output.FileWriters.Elde
{ {
writerCfg = cfg as WriterCfg; writerCfg = cfg as WriterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -38,7 +38,7 @@ namespace TBF.BenchControl.Output.FileWriters.Enhanced
{ {
writerCfg = cfg as WriterCfg; writerCfg = cfg as WriterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -51,7 +51,7 @@ namespace TBF.BenchControl.Output.FileWriters.IperlLogger
writerCfg = cfg as WriterCfg; writerCfg = cfg as WriterCfg;
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -40,7 +40,7 @@ namespace TBF.BenchControl.Output.FileWriters.OneFilePerMeter
{ {
writerCfg = cfg as WriterCfg; writerCfg = cfg as WriterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -41,7 +41,7 @@ namespace TBF.BenchControl.Output.FileWriters.Xml
{ {
writerCfg = cfg as WriterCfg; writerCfg = cfg as WriterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -43,7 +43,7 @@ namespace TBF.BenchControl.Output.FileWriters.XmlBatch
{ {
writerCfg = cfg as WriterCfg; writerCfg = cfg as WriterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -39,7 +39,7 @@ namespace TBF.BenchControl.Output.Printers.Enhanced
{ {
printerCfg = cfg as PrinterCfg; printerCfg = cfg as PrinterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -35,7 +35,7 @@ namespace TBF.BenchControl.Output.Printers.Label
{ {
printerCfg = cfg as PrinterCfg; printerCfg = cfg as PrinterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
void ApplyConfig() void ApplyConfig()
@@ -35,7 +35,7 @@ namespace TBF.BenchControl.Output.Printers.MultiLabel
{ {
printerCfg = cfg as PrinterCfg; printerCfg = cfg as PrinterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
void ApplyConfig() void ApplyConfig()
@@ -35,7 +35,7 @@ namespace TBF.BenchControl.Output.Printers.Munich
: base(cfg) : base(cfg)
{ {
printerCfg = cfg as PrinterCfg; printerCfg = cfg as PrinterCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -39,7 +39,7 @@ namespace TBF.BenchControl.Output.Printers.OnePerBatch
{ {
printerCfg = cfg as PrinterCfg; printerCfg = cfg as PrinterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -39,7 +39,7 @@ namespace TBF.BenchControl.Output.Printers.OnePerMeter
{ {
printerCfg = cfg as PrinterCfg; printerCfg = cfg as PrinterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -38,7 +38,7 @@ namespace TBF.BenchControl.Output.Printers.Zapiska
{ {
printerCfg = cfg as PrinterCfg; printerCfg = cfg as PrinterCfg;
ApplyConfig(); ApplyConfig();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
@@ -82,7 +82,7 @@ namespace TBF.BenchControl.RegisterReaders.KPackE.DataEntryForRadio
wmCycleEndState = new string[Config.Data.WMsCount]; wmCycleEndState = new string[Config.Data.WMsCount];
currentOp = CurrentOp.None; currentOp = CurrentOp.None;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <returns>Reference to the operation</returns> /// <returns>Reference to the operation</returns>
@@ -89,7 +89,7 @@ namespace TBF.BenchControl.RegisterReaders.KPackE.Radio
radioCfg = cfg as RadioCfg; radioCfg = cfg as RadioCfg;
data = new List<byte>(); data = new List<byte>();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
~Radio() ~Radio()
@@ -95,7 +95,7 @@ namespace TBF.BenchControl.RegisterReaders.KPackE.RegisterReader
Clear(); Clear();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void Clear() public void Clear()
@@ -52,7 +52,7 @@ namespace TBF.BenchControl.RegisterReaders.PulsesFromEldeCB
/// Prepare data for SendCalibData() control board component method /// Prepare data for SendCalibData() control board component method
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <summary> /// <summary>
@@ -185,7 +185,7 @@ namespace TBF.BenchControl.RegisterReaders.SerialStream
myCfg = cfg as SerialStreamCfg; myCfg = cfg as SerialStreamCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
/// <summary> /// <summary>
@@ -69,7 +69,7 @@ namespace TBF.BenchControl.RegisterReaders.StandingStartStop
Clear(); Clear();
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public void Clear() public void Clear()
@@ -26,7 +26,7 @@ namespace TBF.BenchControl.TestMethods.Adjustment
public TestMethod(Generic.IComponentCfg cfg) public TestMethod(Generic.IComponentCfg cfg)
: base(cfg) : base(cfg)
{ {
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition) public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
@@ -28,7 +28,7 @@ namespace TBF.BenchControl.TestMethods.ChangeFlowDirection
public TestMethod(Generic.IComponentCfg cfg) public TestMethod(Generic.IComponentCfg cfg)
: base(cfg) : base(cfg)
{ {
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition) public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
@@ -30,7 +30,7 @@ namespace TBF.BenchControl.TestMethods.CombinedWithDetection
: base(cfg) : base(cfg)
{ {
testMethodCfg = cfg as TestMethodCfg; testMethodCfg = cfg as TestMethodCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition) public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
@@ -51,8 +51,8 @@ namespace TBF.BenchControl.TestMethods.Counter
if (contersSoFar != null) for (int i = 0; i < contersSoFar.Length; i++) Counters[i] = contersSoFar[i]; if (contersSoFar != null) for (int i = 0; i < contersSoFar.Length; i++) Counters[i] = contersSoFar[i];
Counters[nextCounterIdx - 1] = this; Counters[nextCounterIdx - 1] = this;
} }
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition) public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
@@ -32,7 +32,7 @@ namespace TBF.BenchControl.TestMethods.DiverterTest
: base(cfg) : base(cfg)
{ {
testMethodCfg = cfg as TestMethodCfg; testMethodCfg = cfg as TestMethodCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition) public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
@@ -28,7 +28,7 @@ namespace TBF.BenchControl.TestMethods.Dummy
public TestMethod(Generic.IComponentCfg cfg) public TestMethod(Generic.IComponentCfg cfg)
: base(cfg) : base(cfg)
{ {
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition) public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
@@ -32,7 +32,7 @@ namespace TBF.BenchControl.TestMethods.Endurance
: base(cfg) : base(cfg)
{ {
testMethodCfg = cfg as TestMethodCfg; testMethodCfg = cfg as TestMethodCfg;
log.Debug(this.ToString()); log.Warn(this.ToString());
} }
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition) public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)

Some files were not shown because too many files have changed in this diff Show More