Open JE-Suh opened 4 years ago
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!