Skip to main content

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~=0.8.0

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

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
File Size Uploaded Provenance Actions
nimodinst-0.8.0.tar.gz 14.3 kB Without provenance Details for nimodinst-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 29.7 kB

Release files / nimodinst-0.8.0.tar.gz

Download URL nimodinst-0.8.0.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
55e6a81f602ce0c53f16faa47837f41640ccb0950fcb96f05a5754379beaebc2
BLAKE2b-256 checksum
How to use checksums
b12291012c21185af051430cbfa1d59ed64e4ef89cb9b0a7fb4ff2c5cde0e56e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

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

Security for nimodinst 0.8.0

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

0.8.0 This release

2 release files No provenance

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