Mar-06-2024, 09:23 AM
Thakyou for your answer
Python 3.10.12 (main, Jun 14 2023, 19:14:29) [GCC 13.1.0 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. pymodbus accessible >>> import sys,ctypes >>> myLib = ctypes.CDLL("./ICNC2_VS.dll") >>> print(dir(myLib)) ['_FuncPtr', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattr__', '__getattribute__', ' __getitem__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__redu ce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_func_flags_', '_func_restype_', '_handle', '_n ame'] >>> type(myLib) <class 'ctypes.CDLL'>I suspect that the problem comes from the fact that the dll has been compiled in C++, so the name of the function is decorated with the type of arguments an return value.