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.
Question
TMWang
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
MCC_demoBoard.ipynb
Edited by TMWangLink to comment
Share on other sites
1 answer to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now