psychopy.org | Reference | Downloads | Github

Use PyDAQmx in Psychopy coder

Hello. I want to import PyDAQmx usign Psychopy, one of the steps for sending triggers from laptop to EEG machine connected computer.

While writing import PyDAQmx in Psychopy shell, i get following error:

import PyDAQmx
Traceback (most recent call last):
File “”, line 1, in
File “build\bdist.win32\egg\PyDAQmx_init_.py”, line 7, in
File “build\bdist.win32\egg\PyDAQmx\DAQmxFunctions.py”, line 119, in
File “build\bdist.win32\egg\PyDAQmx\DAQmxConfig.py”, line 37, in get_lib
DAQlib = ctypes.windll.LoadLibrary(lib_name)
File “C:\Program Files (x86)\PsychoPy2\lib\ctypes_init_.py”, line 443, in LoadLibrary
return self.dlltype(name)
File "C:\Program Files (x86)\PsychoPy2\lib\ctypes_init
.py", line 365, in init
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 1114] A dynamic link library (DLL) initialization routine failed

Can anyone please help here?