Skip to main content

Python API for interacting with National Instrument's LabVIEW FPGA Devices

Project description

FPGA Interface Python API

Build Status

Overview

The National Instruments FPGA Interface Python API is used for communication between processor and FPGA within NI reconfigurable I/O (RIO) hardware such as NI CompactRIO, NI Single-Board RIO, NI FlexRIO, and NI R Series multifunction RIO.

With the FPGA Interface Python API, developers can use LabVIEW FPGA to program the FPGA within NI hardware and communicate to it from Python running on a host computer. This gives engineers and scientists with Python expertise the ability to take advantage of compiled LabVIEW FPGA bitfiles, also the option to reuse existing Python code.

Installation

NiFpga can be installed by cloning the master branch and then in a command line in the directory of setup.py run:

pip install --pre .

Or by installing from PyPI using:

pip install nifpga

nifpga supports Python 2.7 and 3.4+. Note, Python 2.7 support will be dropped in the next non-maintenance release.

Examples

The FPGA Interface Python API is session based. LabVIEW FPGA will generate bitfiles (.lvbitx) that can be used to program the hardware. For additional information on sessions view our Read the docs documentation

Example usage of FPGA configuration functions:

with Session(bitfile="BitfilePath.lvbitx", resource="RIO0") as session:
    session.reset()
    session.run()
    my_control = session.registers["MyControl"]
    my_control.write(4)
    data = my_control.read()

See our readthedocs page for more detailed examples and documentation.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

nifpga-20.0.0-py2.py3-none-any.whl (38.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file nifpga-20.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: nifpga-20.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 38.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for nifpga-20.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0167595ee8dbaaebe6c821b65d46939141baeaf0f05910bbc3289b272fab1674
MD5 30707a8aa057557cd2d0091dbac511e4
BLAKE2b-256 d4ef9728adfa802fc62b6414e113747bfe36ec4a6cf4db680324e2286a877414

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