Skip to content

SWC-Advanced-Microscopy/Python_DAQmx_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python_DAQmx_examples

NI's officially supported DAQmx package, nidaqmx , was released in 2017 for Windows only. nidaqmx wraps the DAQmx C API using ctypes and is documented here. This repository provides more detailed examples than those given by NI and also shows how to couple dynamic plotting with with data acquistion. If you wish to use NI's hardware on Linux you can try PyDAQmx.

Installation

Install the API, then you can play with the examples.

pip install nidaqmx

Notes on hardware

Features differ by DAQ device. e.g. max sample rates differ, not all devices have clocked digital lines, etc. It is possible some examples will not work on certain devices. If you are using a USB DAQ, keep in mind that the devices are optimised for data throughput not response latency. You don't want to service tasks (e.g. pull data off the board) more than about 5 times a second. Consequently you should plan to perform larger operations on a USB DAQ than on a PCI or PCIe-based device.

See also