Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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)

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-ModInst Python API Status

NI-ModInst (nimodinst)

Driver Version Tested Against

17.0.0

PyPI Version

Latest NI-ModInst Version

Supported Python Version

NI-ModInst supported Python versions

Open Issues

Open Issues + Pull Requests for NI-ModInst

Open Pull Requests

Pull Requests for NI-ModInst

Installation

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

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

$ python -m pip install nimodinst

Or easy_install from setuptools:

$ python -m easy_install nimodinst

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 nimodinst module to retrieve information on all High Speed Digitizers currently in the system.

import nimodinst
with nimodinst.Session("niscope") as session:
    for device in session:
        print("{: >20} {: >15} {: >10}".format(device.device_name, device.device_model, device.serial_number))

Additional examples for NI-ModInst are located in src/nimodinst/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, please use the GitHub issues page.

Information to Include When Asking for Help

Please include all of the following information when opening an issue:

  • Detailed steps on how to reproduce the problem and full traceback, if applicable. Code samples are encouraged!

  • The python version used:

    $ python -c "import sys; print(sys.version)"
  • The module (i.e. nidmm) and its version:

    $ python -m pip list
  • The version of the driver used (i.e. NI-DMM 17.1). Follow this KB article to determine the version you have installed.

  • The operating system, version, and bitness. For example 64-bit Windows 7.

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.

Metadata

Release files for nimodinst 0.8.0.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nimodinst 0.8.0.dev0
File Size Uploaded Provenance Actions
nimodinst-0.8.0.dev0.tar.gz 13.5 kB Without provenance Details for nimodinst-0.8.0.dev0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nimodinst 0.8.0.dev0
File Interpreter ABI Platform Actions
nimodinst-0.8.0.dev0-py2.py3-none-any.whl Python 2, Python 3 none any Details for nimodinst-0.8.0.dev0-py2.py3-none-any.whl

Total release size: 31.5 kB

Release files / nimodinst-0.8.0.dev0.tar.gz

Download URL nimodinst-0.8.0.dev0.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3a6873b30e9c983ed3dfcb135d24e8b9e44e127aa4ea2620e3a1590f992db9ec
BLAKE2b-256 checksum
How to use checksums
2b7ce07328a223fbfd03b44575ac1ef490a08313fe0a1dbc33a7c365df4a4d96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / nimodinst-0.8.0.dev0-py2.py3-none-any.whl

Download URL nimodinst-0.8.0.dev0-py2.py3-none-any.whl
Size 18.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3ab8fe05d992847fe1b23f7fa8001df30b7df7a1ac40cef85f3897065cd679f1
BLAKE2b-256 checksum
How to use checksums
b91dbccabf024f8b4d407ed5cf9e58ea0de12f42d701aa143d701b4c06dfece7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nimodinst 0.8.0.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page