Constructors of components : Logging level increased to WARN.
This commit is contained in:
parent
0dd5c469f5
commit
c72fb29f36
@ -51,7 +51,7 @@ namespace TBF.BenchControl.Ambient.Comet
|
||||
: base(cfg)
|
||||
{
|
||||
ambientCfg = cfg as AmbientCfg;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
|
||||
@ -58,7 +58,7 @@ namespace TBF.BenchControl.Ambient.Greco
|
||||
: base(cfg)
|
||||
{
|
||||
ambientCfg = cfg as AmbientCfg;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
|
||||
@ -129,7 +129,7 @@ namespace TBF.BenchControl.Danfoss.VLT2800
|
||||
Mask = (((UInt128)1) << bitPosition);
|
||||
Mask |= (((UInt128)1) << (bitPosition + 1));
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
|
||||
@ -31,7 +31,7 @@ namespace TBF.BenchControl.DataContainers.BackupAndSecurityOptions
|
||||
Users.GlobalData.MinPasswdLength = myCfg.MinPasswdLength;
|
||||
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;
|
||||
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;
|
||||
Events.DB.SetBenchName(myCfg.TestBenchName);
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@ namespace TBF.BenchControl.DataContainers.Buoyancy
|
||||
/// This is to have data in reports
|
||||
Results.WMeterRsltItemSpec.Buoyancy = Buoyancy;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public IList<Config.CalendarEvent.ICalendarEvent> GetCalendarEvents()
|
||||
|
||||
@ -38,7 +38,7 @@ namespace TBF.BenchControl.DataContainers.Density
|
||||
Results.WMeterRsltItemSpec.RealDensity = RealDensity;
|
||||
Results.WMeterRsltItemSpec.AtTemperature = AtTemperature;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public IList<Config.CalendarEvent.ICalendarEvent> GetCalendarEvents()
|
||||
|
||||
@ -38,7 +38,7 @@ namespace TBF.BenchControl.DataContainers.Evaporation
|
||||
: base(cfg)
|
||||
{
|
||||
myCfg = cfg as EvaporationCfg;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public IList<Config.CalendarEvent.ICalendarEvent> GetCalendarEvents()
|
||||
|
||||
@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Combined
|
||||
wmCycleEndState = new string[Config.Data.CompoundWMsCount * 2];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Fewa
|
||||
wmCycleEndState = new string[Config.Data.WMsCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -94,7 +94,7 @@ namespace TBF.BenchControl.DataEntry.HeatMeters12
|
||||
wmCycleEndState = new string[Config.Data.HeatMetersCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -94,7 +94,7 @@ namespace TBF.BenchControl.DataEntry.HeatMeters6
|
||||
wmCycleEndState = new string[Config.Data.HeatMetersCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -68,7 +68,7 @@ namespace TBF.BenchControl.DataEntry.Munich
|
||||
wmEndState = new string[Config.Data.CompoundWMsCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -81,7 +81,7 @@ namespace TBF.BenchControl.DataEntry.Munich3
|
||||
wmCycleEndState = new string[Config.Data.WMsCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Single
|
||||
wmCycleEndState = new string[Config.Data.WMsCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Standard12
|
||||
wmCycleEndState = new string[Config.Data.WMsCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Standard24
|
||||
wmCycleEndState = new string[Config.Data.WMsCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.Standard48
|
||||
wmCycleEndState = new string[Config.Data.WMsCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -72,7 +72,7 @@ namespace TBF.BenchControl.DataEntry.Standard6
|
||||
wmEndState = new double[Config.Data.WMsCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -126,7 +126,7 @@ namespace TBF.BenchControl.DataEntry.StandardCamera
|
||||
wmCycleEndState = new string[Config.Data.WMsCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -76,7 +76,7 @@ namespace TBF.BenchControl.DataEntry.iPerl
|
||||
wmCycleEndState = new string[Config.Data.WMsCount];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -24,7 +24,7 @@ namespace TBF.BenchControl.Dummy.Balance
|
||||
public Component(Generic.IComponentCfg cfg)
|
||||
: base(cfg)
|
||||
{
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public int ScaleNr { get { return 0; } }
|
||||
|
||||
@ -32,7 +32,7 @@ namespace TBF.BenchControl.Dummy.Diverter
|
||||
{
|
||||
switchTimeStart = new FloatBox();
|
||||
switchTimeEnd = new FloatBox();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public int DiverterNr { get { return 0; } }
|
||||
|
||||
@ -36,7 +36,7 @@ namespace TBF.BenchControl.Dummy.FlowMeter
|
||||
{
|
||||
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;
|
||||
dict = new Dictionary<double, float>();
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize() { }
|
||||
|
||||
@ -24,7 +24,7 @@ namespace TBF.BenchControl.Dummy.Valve
|
||||
public Component(Generic.IComponentCfg cfg)
|
||||
: base(cfg)
|
||||
{
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
bool state;
|
||||
|
||||
@ -305,7 +305,7 @@ namespace TBF.BenchControl.Elde
|
||||
}
|
||||
}
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -44,7 +44,7 @@ namespace TBF.BenchControl.Elde.CoverTest
|
||||
message = coverTestCfg.Message;
|
||||
bypassLevel = coverTestCfg.BypassLevel;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -146,7 +146,7 @@ namespace TBF.BenchControl.Elde.Diverter
|
||||
diverterToTankOp = new SwitchDiverterOp(controlBoard, true, flowMtrNr4Cmd);
|
||||
diverterToSinkOp = new SwitchDiverterOp(controlBoard, false, flowMtrNr4Cmd);
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@ namespace TBF.BenchControl.Elde.FixedStartRegisterReader
|
||||
|
||||
Clear();
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
|
||||
@ -59,7 +59,7 @@ namespace TBF.BenchControl.Elde.FlowMeter
|
||||
controlBoard.EtCalib[Idx1] = (float)flowMeterCfg.NominalFlow;
|
||||
}
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
///
|
||||
|
||||
@ -129,7 +129,7 @@ namespace TBF.BenchControl.Elde.FlowMeterDewa
|
||||
refFreq = new double[4];
|
||||
refPulses = new int[4];
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public double ReadFlow() { return controlBoard.ReferenceFlow; }
|
||||
|
||||
@ -43,7 +43,7 @@ namespace TBF.BenchControl.Elde.FlowMeterTriplet
|
||||
if (Idx1 >= controlBoard.EtCalib.Length) throw new Exception("Flowmeter " + Name + " parameter 'Idx1' is out of range");
|
||||
controlBoard.EtCalib[Idx1] = (float)flowMeterCfg.NominalFlow;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public double ReadFlow() { return controlBoard.ReferenceFlow; }
|
||||
|
||||
@ -55,7 +55,7 @@ namespace TBF.BenchControl.Elde.FlowMeterTwins
|
||||
|
||||
/// Prepare data for SendCalibData() control board component method
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public double ReadFlow() { return controlBoard.ReferenceFlow; }
|
||||
|
||||
@ -49,7 +49,7 @@ namespace TBF.BenchControl.Elde.PressureMeter
|
||||
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.MeretRS485Address[0] = 0; /// This disables Merets, Groch temperatures, enables on-board A/D pressure and temperature
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ namespace TBF.BenchControl.Elde.Pump
|
||||
bitPosition = pumpCfg.BitPosition;
|
||||
Mask = (((UInt128)1) << pumpCfg.BitPosition);
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public bool State
|
||||
|
||||
@ -71,7 +71,7 @@ namespace TBF.BenchControl.Elde.PumpTandem
|
||||
else if (pump2 is Danfoss.VLT2800.Pump) { mask2 = (pump2 as Danfoss.VLT2800.Pump).Mask; }
|
||||
else { mask2 = 0; }
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -64,7 +64,7 @@ namespace TBF.BenchControl.Elde.PumpWithFM
|
||||
Mask = (((UInt128)1) << pumpCfg.BitPosition);
|
||||
FMIndex = pumpCfg.FMIndex;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -122,7 +122,7 @@ namespace TBF.BenchControl.Elde.RegulValve
|
||||
|
||||
StartChangeHandler();
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ namespace TBF.BenchControl.Elde.RegulValveCoax
|
||||
|
||||
this.dict = new Dictionary<double, float>();
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ namespace TBF.BenchControl.Elde.RegulValveTandem
|
||||
|
||||
this.dict = new Dictionary<double, float>();
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -45,7 +45,7 @@ namespace TBF.BenchControl.Elde.TempMeter
|
||||
ControlBoard.TempCalibData[Idx0, 3] = (float)A4;
|
||||
ControlBoard.TempCalibData[Idx0, 4] = (float)A5;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ namespace TBF.BenchControl.Elde.TempMeterInternal
|
||||
ControlBoard.TempCalibData[tempMtrCfg.CoefsIdx0, 3] = tempMtrCfg.A4;
|
||||
ControlBoard.TempCalibData[tempMtrCfg.CoefsIdx0, 4] = tempMtrCfg.A5;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ namespace TBF.BenchControl.Elde.TempMeterMeret
|
||||
/// Prepare data for SendCalibData() control board component method
|
||||
ControlBoard.MeretRS485Address[tempMtrCfg.MeretIdx0] = tempMtrCfg.ModbusAddress;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -57,7 +57,7 @@ namespace TBF.BenchControl.Elde.Valve
|
||||
coupledTo = (IValve)TbfComponents.FindComponent(valveCfg.CoupledToName, components);
|
||||
}
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public bool State
|
||||
|
||||
@ -48,7 +48,7 @@ namespace TBF.BenchControl.Elde.ValveEx
|
||||
if (InputValves.Length > 4)
|
||||
InputValves[4] = TbfComponents.FindComponent(valveCfg.Input5, components) as IValve;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void UpdateRoute(ref UInt128 route)
|
||||
|
||||
@ -67,7 +67,7 @@ namespace TBF.BenchControl.Hart.Common
|
||||
|
||||
serialPort = null;
|
||||
hartCfg = cfg as HartCfg;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
~Hart()
|
||||
|
||||
@ -69,7 +69,7 @@ namespace TBF.BenchControl.Hart.Nivotrack
|
||||
levelReadings = 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
|
||||
scanState = ScanState.Off;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
~Multimeter()
|
||||
|
||||
@ -43,7 +43,7 @@ namespace TBF.BenchControl.Keithley.TempMeter
|
||||
operations = 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;
|
||||
}
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
|
||||
@ -110,7 +110,7 @@ namespace TBF.BenchControl.MettlerToledo.Standard
|
||||
Balances[nextBalanceIdx - 1] = this;
|
||||
}
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
|
||||
@ -35,7 +35,7 @@ namespace TBF.BenchControl.MettlerToledo.Standard
|
||||
public BalanceNewDev(Generic.IComponentCfg cfg)
|
||||
: base(cfg)
|
||||
{
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -32,7 +32,7 @@ namespace TBF.BenchControl.MettlerToledo.Standard
|
||||
public BalanceOld(Generic.IComponentCfg 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);
|
||||
if (modbus == null) throw new Exception("Cannot find " + Name + " parent");
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
|
||||
@ -58,7 +58,7 @@ namespace TBF.BenchControl.Modbus.Common
|
||||
|
||||
serialPort = null;
|
||||
modbusCommonCfg = cfg as ModbusCfg;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
~Modbus()
|
||||
|
||||
@ -36,7 +36,7 @@ namespace TBF.BenchControl.Modbus.Easytherm
|
||||
modbus = (GenericDevices.IModbus)TbfComponents.FindComponent(cfg.ParentName, components);
|
||||
if (modbus == null) throw new Exception("Cannot find " + Name + " parent");
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <summary>Initialize this device</summary>
|
||||
|
||||
@ -33,7 +33,7 @@ namespace TBF.BenchControl.Modbus.PressureMeter.Meret
|
||||
modbus = (GenericDevices.IModbus)TbfComponents.FindComponent(cfg.ParentName, components);
|
||||
if (modbus == null) throw new Exception("Cannot find " + Name + " parent");
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <summary>Initialize this device</summary>
|
||||
|
||||
@ -40,7 +40,7 @@ namespace TBF.BenchControl.Modbus.QuidoRS
|
||||
|
||||
watchdogBitMask = (ushort)(quidoRSCfg.WatchdogEnabled ? (1 << quidoRSCfg.WatchdogBitNr) : 0);
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <summary>Initialize this device</summary>
|
||||
|
||||
@ -52,7 +52,7 @@ namespace TBF.BenchControl.Modbus.UltrasoundLevelMeter
|
||||
/// Connect to handler
|
||||
//ModbusAddress.MeretRS485Address[Idx0] = ModbusAddress;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <summary>Initialize this device</summary>
|
||||
|
||||
@ -49,7 +49,7 @@ namespace TBF.BenchControl.Modbus.WaterAnalyzer
|
||||
/// Connect to handler
|
||||
//ModbusAddress.MeretRS485Address[Idx0] = ModbusAddress;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <summary>Initialize this device</summary>
|
||||
|
||||
@ -49,7 +49,7 @@ namespace TBF.BenchControl.Modbus.WaterAnalyzer2
|
||||
/// Connect to handler
|
||||
//ModbusAddress.MeretRS485Address[Idx0] = ModbusAddress;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <summary>Initialize this device</summary>
|
||||
|
||||
@ -42,7 +42,7 @@ namespace TBF.BenchControl.Network.Adapter
|
||||
|
||||
running = false;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@ namespace TBF.BenchControl.Network.Camera.Display
|
||||
{
|
||||
DisplayCfg = cfg as DisplayCfg;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -141,7 +141,7 @@ namespace TBF.BenchControl.Network.Camera.Roi
|
||||
|
||||
//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();
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -67,7 +67,7 @@ namespace TBF.BenchControl.Network.Comet.Ambient
|
||||
ipAddress = IPAddress.Parse(myCfg.IPAddress);
|
||||
tcpPort = myCfg.TcpPort;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
|
||||
@ -111,7 +111,7 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
|
||||
|
||||
netMask = netadapter.NetMask;
|
||||
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;
|
||||
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;
|
||||
currentOp = CurrentOp.None;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -120,7 +120,7 @@ namespace TBF.BenchControl.Output.DB.SensusOracle
|
||||
{
|
||||
dbCfg = cfg as DatabaseCfg;
|
||||
currentOpState = OpState.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
///
|
||||
|
||||
@ -23,7 +23,7 @@ namespace TBF.BenchControl.Output.EventTriggers.Iperl
|
||||
{
|
||||
triggerCfg = cfg as TriggerCfg;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ namespace TBF.BenchControl.Output.EventTriggers.Standard
|
||||
{
|
||||
triggerCfg = cfg as TriggerCfg;
|
||||
if (triggerCfg == null) throw new ArgumentException("triggerCfg");
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
#region Configuration Change Handling
|
||||
|
||||
@ -39,7 +39,7 @@ namespace TBF.BenchControl.Output.FileWriters.Basic
|
||||
{
|
||||
writerCfg = cfg as WriterCfg;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ namespace TBF.BenchControl.Output.FileWriters.Elde
|
||||
{
|
||||
writerCfg = cfg as WriterCfg;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ namespace TBF.BenchControl.Output.FileWriters.Enhanced
|
||||
{
|
||||
writerCfg = cfg as WriterCfg;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -51,7 +51,7 @@ namespace TBF.BenchControl.Output.FileWriters.IperlLogger
|
||||
writerCfg = cfg as WriterCfg;
|
||||
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;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ namespace TBF.BenchControl.Output.FileWriters.Xml
|
||||
{
|
||||
writerCfg = cfg as WriterCfg;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ namespace TBF.BenchControl.Output.FileWriters.XmlBatch
|
||||
{
|
||||
writerCfg = cfg as WriterCfg;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ namespace TBF.BenchControl.Output.Printers.Enhanced
|
||||
{
|
||||
printerCfg = cfg as PrinterCfg;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@ namespace TBF.BenchControl.Output.Printers.Label
|
||||
{
|
||||
printerCfg = cfg as PrinterCfg;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
void ApplyConfig()
|
||||
|
||||
@ -35,7 +35,7 @@ namespace TBF.BenchControl.Output.Printers.MultiLabel
|
||||
{
|
||||
printerCfg = cfg as PrinterCfg;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
void ApplyConfig()
|
||||
|
||||
@ -35,7 +35,7 @@ namespace TBF.BenchControl.Output.Printers.Munich
|
||||
: base(cfg)
|
||||
{
|
||||
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;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ namespace TBF.BenchControl.Output.Printers.OnePerMeter
|
||||
{
|
||||
printerCfg = cfg as PrinterCfg;
|
||||
ApplyConfig();
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ namespace TBF.BenchControl.Output.Printers.Zapiska
|
||||
{
|
||||
printerCfg = cfg as PrinterCfg;
|
||||
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];
|
||||
|
||||
currentOp = CurrentOp.None;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
|
||||
@ -88,7 +88,7 @@ namespace TBF.BenchControl.RegisterReaders.KPackE.Radio
|
||||
radioCfg = cfg as RadioCfg;
|
||||
data = new List<byte>();
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
~Radio()
|
||||
|
||||
@ -94,7 +94,7 @@ namespace TBF.BenchControl.RegisterReaders.KPackE.RegisterReader
|
||||
|
||||
Clear();
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
|
||||
@ -55,7 +55,7 @@ namespace TBF.BenchControl.RegisterReaders.PulsesFromEldeCB
|
||||
|
||||
/// Prepare data for SendCalibData() control board component method
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
|
||||
@ -185,7 +185,7 @@ namespace TBF.BenchControl.RegisterReaders.SerialStream
|
||||
|
||||
myCfg = cfg as SerialStreamCfg;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -24,7 +24,7 @@ namespace TBF.BenchControl.TestMethods.Adjustment
|
||||
public TestMethod(Generic.IComponentCfg cfg)
|
||||
: base(cfg)
|
||||
{
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
|
||||
|
||||
@ -24,7 +24,7 @@ namespace TBF.BenchControl.TestMethods.ChangeFlowDirection
|
||||
public TestMethod(Generic.IComponentCfg cfg)
|
||||
: base(cfg)
|
||||
{
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
|
||||
|
||||
@ -27,7 +27,7 @@ namespace TBF.BenchControl.TestMethods.CombinedWithDetection
|
||||
: base(cfg)
|
||||
{
|
||||
testMethodCfg = cfg as TestMethodCfg;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
|
||||
|
||||
@ -49,7 +49,7 @@ namespace TBF.BenchControl.TestMethods.Counter
|
||||
Counters[nextCounterIdx - 1] = this;
|
||||
}
|
||||
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
|
||||
|
||||
@ -29,7 +29,7 @@ namespace TBF.BenchControl.TestMethods.DiverterTest
|
||||
: base(cfg)
|
||||
{
|
||||
testMethodCfg = cfg as TestMethodCfg;
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
|
||||
|
||||
@ -24,7 +24,7 @@ namespace TBF.BenchControl.TestMethods.Dummy
|
||||
public TestMethod(Generic.IComponentCfg cfg)
|
||||
: base(cfg)
|
||||
{
|
||||
log.Debug(this.ToString());
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
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
Loading…
Reference in New Issue
Block a user