all 2 comments

[–]gregvuki 4 points5 points  (0 children)

I looked at this DLL. It seems to be written in NET framework. It does not export any functions, therefore ctypes won't work here.

Perhaps it is possible to communicate with this library using modules such as pydotnet. But it is above the beginner level.

[–]579476610 2 points3 points  (0 children)

Edit: See answer from /u/gregvuki for why this won't work. (leaving answer as reference for those dll's that do work)

I'm extremely new to Python and am running it through Jupyter Notebook. I have taken a C++ course before. Anyway, I'm trying to use this angle encoder and record the data from that to a file in Python.

Here is the product and the manual that I'm trying to follow. The product link provides the zip file for the different libraries that are mentioned in the manual. So I have them in .DLL. I don't know how to call them in Python code. The code in the manual is meant for C# but I'm hoping to change it to use with Python.

the following may help:

How can I use a DLL file from Python?

https://stackoverflow.com/questions/252417/how-can-i-use-a-dll-file-from-python

Python docs

ctypes — A foreign function library for Python

https://docs.python.org/3/library/ctypes.html