Streaming Data from NI Data Acquisition (DAQmx) Devices into Python

Updated Oct 4, 2018

Reported In


  • LabWindows/CVI Full
  • LabWindows/CVI Base
  • LabVIEW Professional
  • LabVIEW Full
  • LabVIEW Base


  • NI-DAQmx

Programming Language

  • Python
  • C

Issue Details

I have a USB DAQ system from National Instruments, and:
  • I want to stream data from my hardware into Python to do data processing
  • I would like to use the NI-DAQmx C functions in my Python application
  • I would like to log data to disk


The best way to do this is to use the NI-DAQmx Python API provided by National Instruments (nidaqmx). The NI-DAQmx Python API is hosted on GitHub, and is available to download for free here or in the Related Links below.

The documentation in the Related Links section contains examples regarding data acquisition using the NI-DAQmx Python API.

Additional Information

The nidaqmx package is a wrapper around the NI-DAQmx C API using the ctypes Python library, and only supports the Windows operating system. Instructions for installation, example programs, and other information can be found on the GitHub page, and the help documentation can be found on Read the Docs here.


Not Helpful