Various.TankWithLevelMsrmnt can use a calibration table loaded from a CSV file.
This commit is contained in:
@@ -32,8 +32,9 @@ namespace TBF.BenchControl.Various.TankWithLevelMsrmnt
|
||||
private int drainTimeSec;
|
||||
public int DrainTimeSec { get { return drainTimeSec; } set { drainTimeSec = value; } }
|
||||
|
||||
public string LevelMeasurement;
|
||||
|
||||
public string LevelMeasurement; /// Name of a level measurement component, 'Various.ManualLevelMsrmnt' is used when left empty.
|
||||
public string CalibrationTable; /// Path name of a calibration table in CSV format (column1 = height[mm], column2 = volume[l])
|
||||
/// Volume calculation using formulas for std. tanks in Level2Volume() is used when left empty.
|
||||
|
||||
/// Private parameterless constructor invoked by all other (public) constructors
|
||||
TankCfg()
|
||||
@@ -58,12 +59,13 @@ namespace TBF.BenchControl.Various.TankWithLevelMsrmnt
|
||||
DrainValve = "VB1";
|
||||
DrainTimeSec = 180;
|
||||
LevelMeasurement = string.Empty;
|
||||
CalibrationTable = string.Empty;
|
||||
}
|
||||
|
||||
public string ToString(int i)
|
||||
{
|
||||
return string.Format("Name={0}, {1}l, empty={2}l, drainVlv={3}, drainTm={4}s",
|
||||
Name, Capacity, Empty, DrainValve, DrainTimeSec);
|
||||
return string.Format("Capacity={0}l, empty={1}l, drainValve={2}, drainTime={3}s, levelMsrmnt={4}, cal.table={5}",
|
||||
Capacity, Empty, DrainValve, DrainTimeSec, LevelMeasurement, CalibrationTable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user