This package alows users to use data acquisition hardware from National Instrument with Python. It makes an interface between the NIDAQmx driver and Python. The package works on Windows and Linux.
The package is not an open source driver for NI acquisition hardware. You first need to install the driver provided by NI.
Compare to similar packages, the PyDAQmx module is a full interface to the NIDAQmx ANSI C driver. It imports all the functions from the driver and also imports all the predefined constants. This provided an almost one to one match between C and Python code.
A more convenient object oriented interface is provided, where the mecanisms of taskHandle in C is replace with a Task object.
The module support callback functions, see How to use callback function in PyDAQmx
You need first to install the NI DAQmx driver which is provided with your data-acquisition hardware. Please verify that you have install together with the driver the C API (which should be the case by default).
To install PyDAQmx, download the package and run the command
python setup.py install
You can also directly move the PyDAQmx directory to a location that Python can import from (directory in which scripts using PyDAQmx are run, etc.)
The source code is available on GitHub.
The How to use PyDAQmx gives you some example on how to use PyDAQmx.
The part Installation describes the installation and configuration of PyDAQmx.
The part How to use callback function in PyDAQmx gives code examples to use callback functions.
Examples are available of the GitHub repositery.
Please send bug reports or feedback to Pierre Cladé.
If you use this package for a publication (in a journal, on the web, etc.), please cite it by including as much information as possible from the following: PyDAQmx : a Python interface to the National Instrument DAQmx driver, Pierre CLADÉ, http://packages.python.org/PyDAQmx.