You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to take data using callback method, and found PyDAQmx. I converted PyDAQmx 1.4.3 using 2to3 and installed to use it on python 3.7.6 (32bit), windows 10, NIDAQ USB-6212, NIDAQmx 19.6
I wrote code as below using PyDAQmx but it gives an error.
And if I run this code, it gives me the following error.
Traceback (most recent call last):
File ~~~, line 118, in some_func
pydaqmx.DAQmxRegisterEveryNSamplesEvent(AItaskHandle,DAQmx_Val_Acquired_Into_Buffer,1000,0,EveryNCallback,id_a)
File "<string>", line 2, in function
File "C:\Users\JungEun.Suh\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pydaqmx-1.4.3-py3.7.egg\PyDAQmx\DAQmxFunctions.py", line 57, in mafunction
error = f(*arg)
ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type
Do you have any idea what's wrong here? Please let me know if you need any further information.
Thank you in advance!
The text was updated successfully, but these errors were encountered:
I solved it by replacing
DAQmxRegisterEveryNSamplesEvent(AItaskHandle,DAQmx_Val_Acquired_Into_Buffer,1000,0,EveryNCallback,id_a)
by
nidaq.DAQmxRegisterEveryNSamplesEvent(AItaskHandle,DAQmx_Val_Acquired_Into_Buffer,1000,0,EveryNCallback,id_a)
where nidaq = ctypes.windll.nicaiu
(I installed NIDAQmx 19.6)
Hello,
I'm trying to take data using callback method, and found PyDAQmx. I converted PyDAQmx 1.4.3 using 2to3 and installed to use it on python 3.7.6 (32bit), windows 10, NIDAQ USB-6212, NIDAQmx 19.6
I wrote code as below using PyDAQmx but it gives an error.
And if I run this code, it gives me the following error.
Do you have any idea what's wrong here? Please let me know if you need any further information.
Thank you in advance!
The text was updated successfully, but these errors were encountered: