简体   繁体   English

nidaqmx.Task: (OSError: [WinError 126] The specified module could not be found)

[英]nidaqmx.Task: (OSError: [WinError 126] The specified module could not be found)

The following code for data acquisition gives the below error以下用于数据采集的代码给出了以下错误

import nidaqmx
with nidaqmx.Task() as task:
    nidaqmx.Task.ai_channels.add_ai_voltage_chan("Dev1/ai0")
    task.read()

OSError: [WinError 126] The specified module could not be found. OSError: [WinError 126] 找不到指定的模块。

Do you know what is the reason and how to fix it?你知道是什么原因以及如何解决吗? Thanks, Cheers!谢谢,干杯!

The following code for data acquisition gives the below error以下数据采集代码给出了以下错误

import nidaqmx
with nidaqmx.Task() as task:
    nidaqmx.Task.ai_channels.add_ai_voltage_chan("Dev1/ai0")
    task.read()

OSError: [WinError 126] The specified module could not be found. OSError: [WinError 126] 找不到指定的模块。

Do you know what is the reason and how to fix it?你知道是什么原因以及如何解决吗? Thanks, Cheers!谢谢,干杯!

There are two different software packages you have to install:您必须安装两个不同的软件包:

  • The Hardware driver (NI-DAQmx)硬件驱动程序 (NI-DAQmx)
  • The software driver package (Python package nidaqmx)软件驱动package(Python package nidaqmx)

You are missing the Hardware driver.您缺少硬件驱动程序。 You can download it here .你可以在这里下载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 OSError: [WinError 126] 找不到指定的模块? - OSError: [WinError 126] The specified module could not be found? OSError: [WinError 126] Python中找不到指定的模块 - OSError: [WinError 126] The specified module could not be found in Python Pycharm 错误 - OSError: [WinError 126] 找不到指定的模块 - Pycharm error - OSError: [WinError 126] The specified module could not be found 错误ctypes OSError:[WinError 126]找不到指定的模块 - error ctypes OSError: [WinError 126] The specified module could not be found “OSError: [WinError 126] 找不到指定的模块”使用 pvfactors 库 - "OSError: [WinError 126] The specified module could not be found" using pvfactors library OSError: [WinError 126] 在 pyinstaller 中找不到指定的模块 - OSError: [WinError 126] The specified module could not be found in pyinstaller 导入隐藏OSError:[WinError 126]找不到指定的模块 - Import hid OSError: [WinError 126] The specified module could not be found OSError:[WinError 126]找不到在Pycharm中导入mxnet的指定模块 - OSError: [WinError 126] The specified module could not be found importing mxnet in Pycharm 安装 Shapely: OSError: [WinError 126] 找不到指定的模块 - Install Shapely: OSError: [WinError 126] The specified module could not be found OSError:找不到[WinError 126]模块 - OSError: [WinError 126] module could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM