NI-XNET Python API
Project description
Info |
Communicate over CAN or LIN via NI-XNET hardware with Python. |
Author |
National Instruments |
>>> 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_can(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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nixnet-0.1.0.dev5.tar.gz
.
File metadata
- Download URL: nixnet-0.1.0.dev5.tar.gz
- Upload date:
- Size: 93.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8464ca526a43157ebaab3dac594b9f7fa926873437a4a1d3106b7f406ee61f79 |
|
MD5 | fa28c7e39a0f2f98bd577acf84b34a46 |
|
BLAKE2b-256 | e95ea4aee43aeae2420726388bb51fb60edc97b6945a3bca22b8136e692f3b3f |
File details
Details for the file nixnet-0.1.0.dev5-py2.py3-none-any.whl
.
File metadata
- Download URL: nixnet-0.1.0.dev5-py2.py3-none-any.whl
- Upload date:
- Size: 100.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3587e3feb7ecfa6018742d9811f4fe4208744eeb47e7116080862cabcd8590c |
|
MD5 | f22b0a37e31d3c2647b7d5230ea98705 |
|
BLAKE2b-256 | 3ed1cb8e83a8b91b26b7e671f82b721e6b62e0711e52f2a0673387fc54b12ba1 |