ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
01-28-2016 11:55 AM
Hi,
I am writing a python code, it works fine on the other system but I get the following error:
iotask.write(val)
File "C:\Python27\lib\site-packages\nidaqmx\libnidaqmx.py", line 2660, in write
float64(timeout), float64(data), None)==0
File "C:\Python27\lib\site-packages\nidaqmx\libnidaqmx.py", line 178, in CALL
func = getattr(libnidaqmx, funcname)
File "C:\Python27\lib\ctypes\__init__.py", line 378, in __getattr__
func = self.__getitem__(name)
File "C:\Python27\lib\ctypes\__init__.py", line 383, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'DAQmxWriteAnalogScalar64' not found
Could you please help me?
Thanks
01-29-2016 05:47 PM
Hi fahimeh,
Is this the only DAQmx function that is not found or are there errors for the other DAQmx functions you are using? There's a possibility that the DAQmx driver didn't install correctly on the new machine, or that it didn't install with with the C API.
Thanks,
Selene v.
01-29-2016 05:54 PM
Hi,
Thanks for your reply. I am sure that the cards are installed properly, because I do not get this error for the other codes.
02-01-2016 03:05 PM
Hi fahimeh,
Okay, so unfortunately that's not an easy fix. Since this is the only function that's not working I'm not sure what's wrong. Unfortunately using DAQmx in Python isn't officially supported by National Instruments so there are pretty limited resources on this, somethign I did find was this KB on using the FFI package:
http://digital.ni.com/public.nsf/allkb/ED1C0156519E3E348625748A00198020
Or, you may want to look into PyDAQmx
https://pythonhosted.org/PyDAQmx/
I'm not sure if this is helpful, since like you said all the other functions are working. I'm sorry I wasn't able to be more helpful.
Best,
Selene