Plugins devoted to National Instruments signal acquisition and generation, using the NI-DAQmx driver through the
nidaqmx package of National Instruments (documentation):
general actuator and viewers configured from the settings tree, and ready-to-use plugins for analog inputs, counting
and ramps on an analog output.
- Sébastien J. Weber
- Amelie Jarnac
- Aurore Finco
- Sébastien Guerrero (sebastien.guerrero@insa-lyon.fr)
- Cyril Auclair (cyril.auclair@insa-lyon.fr)
Below is the list of instruments included in this plugin
- NIDAQmx: One analog output (voltage / current) of a National Instrument device, set one point at a time
- NIDAQmx_DO: One digital output line (0 / 1, or a pulse to trigger an acquisition)
- NIDAQmx_Waveform: Waveforms (arrays of samples) played on several analog outputs of one device, with one clock; the
samples come from an application such as the waveform extension of
pymodaq_plugins_waveform - NIDAQmx_RampOutput: A quantity driven by an analog output, changed by voltage ramps timed by a counter used as a clock (value = voltage x conversion factor); several axes (x, y, z) can share the clock
- NIDAQmx: General measurement with National Instrument materials (one value per channel and per acquisition)
- DAQmxAI: One analog input, as a mean value (0D) or a trace (1D)
- DAQmxDualAI: Two analog inputs acquired together, as mean values (0D) or traces (1D)
- DAQmx_Counter: Rate of the edges received on a counter input, in counts per second
- NIDAQmx: General measurement with National Instrument materials, acquired in the hardware buffer
- PyMoDAQ >= 5.3.2
- The NI-DAQmx driver of National Instruments, installed on the computer connected to the device (use NI MAX to test your hardware). Where the driver cannot be found, the plugins are importable but list no device.
- The
nidaqmxPython package, installed with the plugin.
- The general
NIDAQmxviewers were tested with a cDAQ-9174 and a USB-6341 (modules NI-9205, NI-9211, NI-9217). - The general
NIDAQmxactuator is not finished yet: its movements still raiseNotImplementedError. DAQmxAI,DAQmxDualAI,DAQmx_CounterandNIDAQmx_RampOutputwere ported from thepydaqmxbranch and are tested against a fake of thenidaqmxlayer only, not yet on hardware.
Refer to the documentation to use this plugin or discover its functionalities.
The package has a Python API to describe and run NI-DAQmx tasks (AIVoltage, ClockSettings,
AnalogInputTask...), which imports neither Qt nor PyMoDAQ: use it in a plugin, an extension or a plain script.
See the Python API section of the documentation
(concepts, examples, reference, and how to move from the previous NIDAQmx object).
DAQmxAI (NIDAQmx_AI.py), DAQmx_Counter and NIDAQmx_RampOutput (ramp_output.py) are small examples
of plugins built on it.
The repository has two lines of plugins, using two different Python interfaces to the same NI-DAQmx driver:
5.3.x(this branch):nidaqmx, the package of National Instruments. This is the one to use and to contribute to.pydaqmx: PyDAQmx (DAQmxobject inhardware/national_instruments/daqmx.pyof that branch). It is frozen and kept for the users ofPyDAQmx(also the 1.1.x releases). Its genericDAQmxplugins have no equivalent here: use theNIDAQmxones.