BenchControl.Uni.Diverter/FlowMeter/RegReader added, etc. (many changes and refactorization).
This commit is contained in:
@@ -19,7 +19,7 @@ namespace TBF.BenchControl.Elde.PressureMeter
|
||||
readonly PressureMeterCfg pressureMeterCfg;
|
||||
public SchematicDrawing.IDrawingItem DrawingItem { get { return pressureMeterCfg as SchematicDrawing.IDrawingItem; } }
|
||||
|
||||
public readonly ControlBoardDev ControlBoard;
|
||||
public readonly CBoard ControlBoard;
|
||||
|
||||
public readonly int Idx0; /// 0..3
|
||||
public readonly byte RS485Address; /// 0..255
|
||||
@@ -33,7 +33,7 @@ namespace TBF.BenchControl.Elde.PressureMeter
|
||||
{
|
||||
pressureMeterCfg = cfg as PressureMeterCfg;
|
||||
|
||||
ControlBoard = (ControlBoardDev)TbfComponents.FindComponent(cfg.ParentName, components);
|
||||
ControlBoard = (CBoard)TbfComponents.FindComponent(cfg.ParentName, components);
|
||||
if (ControlBoard == null) throw new Exception("Cannot find " + Name + " parent");
|
||||
|
||||
Idx0 = pressureMeterCfg.Idx0;
|
||||
|
||||
Reference in New Issue
Block a user