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)

Installation

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

Or easy_install from setuptools:

$ python -m easy_install nixnet

You also can download the project source and run:

$ python setup.py install

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 is still early in its development with all the bugs, unimplemented features, and API changes that go along with that.

The areas that are more mature include:

  • FrameInStreamSession with reading and writing bytes, raw frames, and can frames.

  • FrameOutStreamSession with writing bytes, raw frames, and can frames.

  • FrameInQueuedSession with reading bytes, raw frames, and can frames.

  • FrameOutQueuedSession with writing bytes, raw frames, and can frames.

  • FrameInSinglePointSession with reading bytes, raw frames, and can frames.

  • FrameOutSinglePointSession with writing bytes, raw frames, and can frames.

  • SignalInSinglePointSession with reading values (timestamps are available but less mature).

  • SignalOutSinglePointSession with writing values.

nixnet currently supports

  • Windows operating system.

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

You can checkout the issues page for more details.

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.1.0.dev6.tar.gz (96.6 kB view details)

Uploaded Source

Built Distribution

nixnet-0.1.0.dev6-py2.py3-none-any.whl (101.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nixnet-0.1.0.dev6.tar.gz.

File metadata

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

File hashes

Hashes for nixnet-0.1.0.dev6.tar.gz
Algorithm Hash digest
SHA256 0ce463f7f5d12c82328961fa27f78499792c5c4040b2ea1537eb4968afeb589f
MD5 31f70ed6a220232f4c257c8680230e9b
BLAKE2b-256 11751a9e315650debe5b7553d7d0362efaa9a2272142dd3282a0e50ee6b06d0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nixnet-0.1.0.dev6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0ad9c3d7d75145c2df13ff7f2a4f6f5683d9f54b57ff6bcc4641f2595415b78c
MD5 f8603bacd8ef67723960f82f057f6845
BLAKE2b-256 b263ddba34d6c7b12f47636f0053a1e6591901fb5cce22c5b0fc2fbd4ea3a402

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