Jump to content
  • 0

ArgumentError when calling enable_event() (Python mcculw)


TMWang

Question

Hi,

In the attached Notebook, I was trying to test event callbacks. However, I got the error "ArgumentError: argument 4: TypeError: expected WinFunctionType instance instead of WinFunctionType", which I couldn't figure out the cause of it. I believe I have made a function instance in addition to the function definition (e.g. samplesAcquiredFcn_c in the Notebook). Could you help me find the problem please? I am not familiar with ctypes and couldn't find an example for enable_event(), either.

Thanks for your help!

TM.

System info:

Python - 3.10.13

mcculw - 1.0.0

DAQ - demo board or USB-1608GX-2AO

OS: - Windows 11

 

Screenshot 2024-09-25 160211.png

MCC_demoBoard.ipynb

Edited by TMWang
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...