Skip to main content

NI-DMM Python API

Project description

Overall Status

master branch status

Build Status - master branch Documentation Status - master branch MIT License Test Coverage - master branch

GitHub status

Open Issues + Pull Requests Open Pull Requests

Info

Python bindings for NI Modular Instrument drivers. See GitHub for the latest source.

Author

National Instruments

NI Digital Multimeter with Python logo

About

The nimi-python repository generates Python bindings (Application Programming Interface) for interacting with the Modular Instrument drivers. Currently, the following drivers are supported:

  • NI-DCPower (Python module: nidcpower)

  • NI-DMM (Python module: nidmm)

  • NI-FGEN (Python module: nifgen)

  • NI-SCOPE (Python module: niscope)

  • NI-SWITCH (Python module: niswitch)

  • NI-ModInst (Python module: nimodinst)

  • NI Switch Executive (Python module: nise)

It is implemented as a set of Mako templates and per-driver metafiles that produce a Python module for each driver. The driver is called through its public C API using the ctypes Python library.

nimi-python supports all the Operating Systems supported by the underlying driver.

nimi-python supports Python 2.7, 3.4 and later using CPython or PyPy.

NI-DMM Python API Status

NI-DMM (nidmm)

Driver Version Tested Against

17.1.0

PyPI Version

Latest NI-DMM Version

Supported Python Version

NI-DMM supported Python versions

Open Issues

Open Issues + Pull Requests for NI-DMM

Open Pull Requests

Pull Requests for NI-DMM

Installation

As a prerequisite to using the nidmm module, you must install the NI-DMM runtime on your system. Visit ni.com/downloads to download the driver runtime for your devices.

The nimi-python modules (i.e. for NI-DMM) can be installed with pip:

$ python -m pip install nidmm~=1.0.1

Or easy_install from setuptools:

$ python -m easy_install nidmm

Contributing

We welcome contributions! You can clone the project repository, build it, and install it by following these instructions.

Usage

The following is a basic example of using the nidmm module to open a session to a DMM and perform a 5.5 digits of resolution voltage measurement in the 10 V range.

import nidmm
with nidmm.Session("Dev1") as session:
    session.configureMeasurementDigits(nidmm.Function.DC_VOLTS, 10, 5.5)
    print("Measurement: " + str(session.read()))

Additional examples for NI-DMM are located in src/nidmm/examples/ directory.

Support / Feedback

The packages included in nimi-python package are supported by NI. For support, open a request through the NI support portal at ni.com.

Bugs / Feature Requests

To report a bug or submit a feature request specific to NI Modular Instruments Python bindings (nimi-python), please use the GitHub issues page.

Fill in the issue template as completely as possible and we will respond as soon as we can.

For hardware support or any other questions not specific to this GitHub project, please visit [NI Community Forums](https://forums.ni.com/). .. _documentation-section:

Documentation

Documentation is available here.

License

nimi-python is licensed under an MIT-style license (see LICENSE). Other incorporated projects may be licensed under different licenses. All licenses allow for non-commercial and commercial use.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nidmm-1.0.1.tar.gz (37.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nidmm-1.0.1-py2.py3-none-any.whl (39.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file nidmm-1.0.1.tar.gz.

File metadata

  • Download URL: nidmm-1.0.1.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/2.7.12

File hashes

Hashes for nidmm-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9e9251614efb6683c2555a1e55efeafe25f682723e394fc597f1764305d4dcbb
MD5 39eab9f02376e3c34983262ba482d05e
BLAKE2b-256 049dad7fb1e13c1e09589692def9da8d605d6813f96b5094af7bc4d6e6ac340b

See more details on using hashes here.

File details

Details for the file nidmm-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: nidmm-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 39.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/2.7.12

File hashes

Hashes for nidmm-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3e20d114456cad3935d78a72a28b4c4990253c452bcdb8cbf1a6998eb33a774c
MD5 2b2d914f777d62466a36638e5fc68cd7
BLAKE2b-256 8223aad7fe62c208c66a071ada71de1ec365e0cb2f38650730381a59dd268856

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page