Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxWriteAnalogScalar64' not found

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

0 Kudos
Message 1 of 4
(3,640 Views)

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.

Selene
0 Kudos
Message 2 of 4
(3,618 Views)

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.

0 Kudos
Message 3 of 4
(3,613 Views)

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

Selene
0 Kudos
Message 4 of 4
(3,583 Views)