diff --git a/nidaqmx/task.py b/nidaqmx/task.py index 0c3f6d87..9bb7d244 100644 --- a/nidaqmx/task.py +++ b/nidaqmx/task.py @@ -889,6 +889,11 @@ def register_signal_event(self, signal_type, callback_method): DAQmxSignalEventCallbackPtr = ctypes.CFUNCTYPE( ctypes.c_int32, lib_importer.task_handle, ctypes.c_int32, ctypes.c_void_p) + + cfunc = lib_importer.daqlib.DAQmxRegisterSignalEvent + cfunc.argtypes = [ + lib_importer.task_handle, ctypes.c_int, ctypes.c_uint, + DAQmxSignalEventCallbackPtr, ctypes.c_void_p] cfunc = lib_importer.daqlib.DAQmxRegisterSignalEvent cfunc.argtypes = [