Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI USB-6009 Python control problem

Hello,

I'm using a USB-6009 device to send analog output signals using Python. However, after installing the software and Python package, the simplest testing command cannot work.

 

I believe it failed at "with nidaqmx.Task() as task" sentence. PowerShell text attached below.

 

----------------------------------------------------------------------------------------------------------------

 

Python 3.11.11 | packaged by Anaconda, Inc. | (main, Dec 11 2024, 16:34:19) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import nidaqmx
>>> with nidaqmx.Task() as task:
... task.ai_channels.add_ai_voltage_chan("Dev1/ai0")
...
Failed to get extended error info. DAQmxGetExtendedErrorInfo returned error code -200090.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "F:\conda\envs\python311\Lib\site-packages\nidaqmx\task\_task.py", line 96, in __init__
self._handle, self._close_on_exit = self._interpreter.create_task(new_task_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\conda\envs\python311\Lib\site-packages\nidaqmx\_library_interpreter.py", line 1835, in create_task
self.check_for_error(error_code)
File "F:\conda\envs\python311\Lib\site-packages\nidaqmx\_library_interpreter.py", line 6455, in check_for_error
raise DaqError(extended_error_info, error_code)
nidaqmx.errors.DaqError: Failed to retrieve error description. 

 

Status Code: -200090

0 Kudos
Message 1 of 2
(87 Views)

Error -200090, Shared library was not found.

 

Which DAQmx and Python version did you install? What's your Windows version?

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 2
(53 Views)