Jun-12-2023, 03:35 PM
Thanks,
I tried to use clr. It does work, but I have a problem when I try to throw a function, the system cannot find to try a type System.ComponentModel.Componet.
>>> res = box.SetSerial('COM5', 10, pcprot.CCB2);
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
System.TypeLoadException: Could not load type 'System.ComponentModel.Component' from assembly 'System.ComponentModel.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at WiredBoxLib.SerialPortAdapter.get_PortName()
at WiredBoxLib.WiredBox.SetSerial(String port, Int32 txinterval, PC_PROTOCOL protocol)
Above I reported what my python shell reports
I tried to use clr. It does work, but I have a problem when I try to throw a function, the system cannot find to try a type System.ComponentModel.Componet.
>>> res = box.SetSerial('COM5', 10, pcprot.CCB2);
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
System.TypeLoadException: Could not load type 'System.ComponentModel.Component' from assembly 'System.ComponentModel.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at WiredBoxLib.SerialPortAdapter.get_PortName()
at WiredBoxLib.WiredBox.SetSerial(String port, Int32 txinterval, PC_PROTOCOL protocol)
Above I reported what my python shell reports