iPerl Fixes

This commit is contained in:
Michal Buzik 2025-10-27 11:49:42 +01:00
parent 77cabfd712
commit 42002e3fa4
5 changed files with 11 additions and 1 deletions

View File

@ -14,7 +14,11 @@ namespace TBF.Rig.RegisterReaders.PoseidonCmdStartStop
return _cliExists.Value;
} }
public string SerialPortCmdClientPath {
#if DEBUG
get { return Path.Combine("C:\\","TBF","Cli", CmdClientName);}
#else
get { return Path.Combine("..","Cli", CmdClientName);}
#endif
}
public string CmdClientName { get; set; } = "HalCli.exe";
public string PortName { get; set; }

View File

@ -12,6 +12,7 @@ using TBF.Rig.RegisterReaders.CommonRR.IPerl;
namespace TBF.Rig.TestMethods.iPerlCommunication
{
[XmlRoot("TestMethodCfg")] // Add this attribute to match the XML root
public class TestMethodCfg_IPerl : ComponentCfgBase, IiPerlTestMethodCfg
{
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(TestMethodCfg_IPerl) })[0];

View File

@ -9,6 +9,8 @@ namespace TBF.Rig.TestMethods.iPerlCommunication
public class TestMethodFactory : IComponentFactory
{
public string ClassName { get { return GetType().Namespace.Substring(8); } }
public override string ToString() { return ClassName; }
public IComponent DummyComponent() { return new TestMethod(); }

View File

@ -9,6 +9,9 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
public class Factory : IComponentFactory
{
public string ClassName { get { return "RegisterReader for iPerl"; } }
//TODO BuMi to the future, now has class name as 'Factory' !
//public override string ToString() { return ClassName; }
public IComponent DummyComponent() { return new IperlHead(); }

View File

@ -163,7 +163,7 @@ namespace TBF.UI
Rig.StateMachine.MachineState = TBF.DB.CurrentBench.IsRealBench ? Rig.MachineState.StartingUp : Rig.MachineState.Disabled;
#if DEBUG
//define alvays valid for printer test - BUMI
//define always valid for printer test - BUMI
Rig.StateMachine.MachineState = Rig.MachineState.StartingUp;
#endif