Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The best way to implement DLL/COM devices #246

Open
paulgoulain opened this issue Feb 4, 2020 · 3 comments
Open

The best way to implement DLL/COM devices #246

paulgoulain opened this issue Feb 4, 2020 · 3 comments

Comments

@paulgoulain
Copy link
Contributor

Hello,

I'm interested in using pymeasure for a experiment, but one of my device I want to use is controlled using a the Component Object Model. My first move was to create a new adapter that inherit the adapter class and uses win32com.client library. But when I want to communicate with my instrument, I have to use a syntax which is like that :

COMobject.name_of_the_method()

and it returns the result of the method.

What would be the right way to implement such an adapter ?

bests,

Paul

@bilderbuchi
Copy link
Member

Interesting question! I also have a device that communicates via a compiled DLL, would be curious if that can be made to talk via pymeasure...

@tinix84
Copy link

tinix84 commented Mar 10, 2020

@moritzj29
Copy link
Contributor

just if anyone is still wondering how DLLs can be used: I did this in #417 by creating a separate adapter. I think this makes sense, if the DLL provides access to more than one instrument at the time.

@bilderbuchi bilderbuchi changed the title The best way to implement COM devices The best way to implement DLL/COM devices Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants