clade / PyDAQmx

Interface to National Instrument NIDAQmx driver
Other
133 stars 55 forks source link

Problems with Windows 10 64-bit #46

Closed jhyearsley closed 7 years ago

jhyearsley commented 7 years ago

System specs:

I am using Windows 10 64-bit with NI-DAQmx version 17.1.0.

First issue:

NotImplementedError: Location of niDAQmx library and include file unknown on win32 - if you find out, please let the PyDAQmx project know

I have found the locations. The niDAQmx library and include files are located in the following paths:

lib_name = 'C:/Windows/System32/nicaiu.dll'
dot_h_file = 'C:/Program Files (x86)/National Instruments/Shared/ExternalCompilerSupport/C/include/nisyscfg.h'

Second issue:

After first issue has been solved (i.e. I have manually inserted the correct paths) there is an error within the Task.py file.


  File "C:\Users\johny\AppData\Local\Continuum\Anaconda2AGAIN\lib\site-packages\PyDAQmx\Task.py", line 142, in Task
    del function_name, name, func, arg_names, doc

NameError: name 'function_name' is not defined

It appears that function_dict and function_list are not being populated.

Takeaway

The package does not work with Windows 10 as of now and I am not familiar enough to debug any further. Also as a side note I think the codebase would be much better off if some of the importing conventions were changed. For instance imports like this make everything pretty confusing

import DAQmxFunctions
from DAQmxFunctions import *
clade commented 7 years ago

Are you sure that NI-DAQmx is install on your computer. There should be a file called NIDAQmx.h somewhere. I don't think its name has changed.

jhyearsley commented 7 years ago

You were correct, I had to install an earlier version of the NI-DAQmx driver to find the NIDAQmx.h file. Thanks!