3

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.

Do you know what is the reason and how to fix it? Thanks, Cheers!

2 Answers2

0

Run this pip install nidaqmx command from cmd to install module.

Seyi Daniel
  • 2,259
  • 2
  • 8
  • 18
0

There are two different software packages you have to install:

  • The Hardware driver (NI-DAQmx)
  • The software driver package (Python package nidaqmx)

You are missing the Hardware driver. You can download it here.

Benedict H.
  • 129
  • 7