find_library () em ctypes

Estou tentando usar o comando find_library () de ctypes, mas estou recebendo um erro que não entendo o motivo. Estou trabalhando no Windows

Este é o código:

import ctypes
from ctypes.util import find_library
import numpy
from string import atoi
from time import sleep

# Class constants
#nidaq = ctypes.windll.nicaiu
nidaq  = ctypes.cdll.LoadLibrary(find_library('NIDAQmx'))

E este é o erro que estou recebendo:

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    nidaq  = ctypes.cdll.LoadLibrary(find_library('NIDAQmx'))
  File "C:\Python27\lib\ctypes\__init__.py", line 443, in LoadLibrary
    return self._dlltype(name)
  File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
TypeError: expected string or Unicode object, NoneType found

Devo colocar o NIDAQmx em um local específico, por exemplo, para que ele possa ser encontrado? Ou isso não tem relação?

Obrigado!

questionAnswers(2)

yourAnswerToTheQuestion