Skip to main content

NI-XNET Python API

Project description

Info

Communicate over CAN or LIN via NI-XNET hardware with Python.

Author

National Instruments

PyPI Documentation License Language versions Build Unit-test Coverage
>>> import nixnet
>>> with nixnet.FrameInStreamSession('CAN1') as input_session:
>>>     input_session.intf.can_term = constants.CanTerm.ON
>>>     input_session.intf.baud_rate = 125000

>>>     frames = input_session.frames.read(count)
>>>     for frame in frames:
>>>         print('Received frame:')
>>>         print(frame)

Quick Start

Running nixnet requires NI-XNET or NI-XNET Runtime. Visit the ni.com/downloads to download the latest version of NI-XNET.

nixnet can be installed with pip:

$ python -m pip install nixnet

Now you should be able to move onto the Examples.

Resources

Product Support

The nixnet package and NI-XNET are supported by NI. For support, open a request through the NI support portal at ni.com.

Bugs / Feature Requests

We welcome all kinds of contributions. If you have a bug to report or a feature request for nixnet, feel free to open an issue on Github or contribute the change yourself.

Status

nixnet package is created and maintained by National Instruments.

  • The following is support is included:
    • CAN and LIN protocol

    • Frames, Signals, and frame/signal conversion

    • Database import

    • For a complete list of supported features and functions, see the documentation.

  • See the enhancement issues for potential future work.

  • Breaking API changes will be kept to a minimum. If a breaking change is made, it will be planned through breaking-change isssues and communicated via semver and the release notes.

  • Known issues.

nixnet currently supports

  • Windows operating system.

  • CPython 2.7.0+, 3.4+, PyPy2, and PyPy3.

  • NI-XNET 15.5+

License

nixnet 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.

Project details


Download files

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

Source Distribution

nixnet-0.2.1.tar.gz (116.7 kB view details)

Uploaded Source

Built Distribution

nixnet-0.2.1-py2.py3-none-any.whl (117.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nixnet-0.2.1.tar.gz.

File metadata

  • Download URL: nixnet-0.2.1.tar.gz
  • Upload date:
  • Size: 116.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nixnet-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6c6a880fcb370c5e0c697bdd9f6efaddb831d60aae7306be5efe8d2e06a9e0fc
MD5 f09eac393831957c62980f1ea7a0bb25
BLAKE2b-256 8e162911434ae1472d657fd1d283ca702249ff221b0e8ea14d92538e4733826e

See more details on using hashes here.

File details

Details for the file nixnet-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nixnet-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 09be8c7cc06016fe019d7f9ae997155988f414273b9fc214fe1fa73bf71fe1ca
MD5 4491cd298b374d11ecb7ed63c2156729
BLAKE2b-256 62d5c528254d239dd43440b88310e88d783475e99d67b55a63497ad7c41f2674

See more details on using hashes here.

Supported by

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