Skip to main content

A library to control the myRIO board from National Instruments

Project description

myRIO_library - a library for working with NI myRIO in Python

This library is an improvement over nifpga, a Python library that gives access to the FPGA registers of NI targets with FPGA.

https://github.com/ni/nifpga-python

In this library, we have created some support functions and a class named MyRIO. We call it "library" because the aim of this project is to create a collection of packages for running Python programs in different environments (multiple myRIOs, for example).

The packages myRIO_base and myRIO_API are designed to work locally, inside the myRIO. myRIO runs a reduced version of Linux named NI Linux RT.

https://www.ni.com/en/shop/linux/under-the-hood-of-ni-linux-real-time.html

The main idea is to be able to install the base library inside myRIO and to run basic functions easily.

If you want to use the base library, you will need an updated NI Linux RT image, SSH enabled (it is easy to set in NI MAX, the configuration tool), and Internet enabled on your myRIO (check the myRIO documentation for that).

When ready, you should connect (ssh) to the myRIO and ensure that everything is up-to-date before installing myRIO_library:

https://oldwiki.archive.openwrt.org/doc/techref/opkg

opkg update opkg install python3 python3-misc python-pip

python -m pip install myRIO_library

Check the examples folder inside the site-packages/myRIO_library/examples folder for further help.

The myRIO_API package creates and serves an API implementation based on myRIO_base.

Read its specific documentation and examples for more information.

And finally, the third package of the library, myRIO_API_client, can run on any computer that supports Python. You can install it using pip:

pip install myRIO_library

This package is a client implementation for accessing the API. You will need communication with the myRIO (via USBLAN or WiFi) in order to use the API. More info in the specific docs about the myRIO_API_client package.

Last update: 2024/03/12 Aitzol Ezeiza Ramos (UPV/EHU)

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

myRIO_library-1.1.0.tar.gz (938.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

myRIO_library-1.1.0-py3-none-any.whl (960.3 kB view details)

Uploaded Python 3

File details

Details for the file myRIO_library-1.1.0.tar.gz.

File metadata

  • Download URL: myRIO_library-1.1.0.tar.gz
  • Upload date:
  • Size: 938.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for myRIO_library-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7b16f8f51e7e465860fe5b36047a74d843665e988dbf489ba3d9bd5dbff09213
MD5 501262ddfd47b96412b126516c391696
BLAKE2b-256 33e7f19f3d4b61f95888e1fdc50e5a83f85f22e6460d095ba7418d608880cc29

See more details on using hashes here.

File details

Details for the file myRIO_library-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: myRIO_library-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 960.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for myRIO_library-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a81229df4eab4286b5e2313df057c31e1d3839697f42c965db6c4f10afd0cba1
MD5 62a277f5c139f45172cf89b01930db3c
BLAKE2b-256 6af8dc83edb8d90c8e7e62c774aa7a83121915fed2b73dfebdada905de27c893

See more details on using hashes here.

Supported by

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