Skip to main content

Overall Status

master branch status

Build Status - master branch MIT License Test Coverage - master branch

GitHub status

Open Issues + Pull Requests Open Pull Requests

Info

NI Modular Instrument driver APIs for Python.

Author

NI

About

The nirfsa module provides a Python API for NI-RFSA. The code is maintained in the Open Source repository for nimi-python.

Support Policy

nirfsa supports all the Operating Systems supported by NI-RFSA.

It follows Python Software Foundation support policy for different versions of CPython.

NI created and supports nirfsa.

NI-RFSA Python API Status

NI-RFSA (nirfsa)

Driver Version Tested Against

2026 Q3

PyPI Version

Latest NI-RFSA Version

Supported Python Version

NI-RFSA supported Python versions

Documentation

NI-RFSA Python API Documentation Status

Open Issues

Open Issues + Pull Requests for NI-RFSA

Open Pull Requests

Pull Requests for NI-RFSA

Installation

As a prerequisite to using the nirfsa module, you must install the NI-RFSA runtime on your system. Visit ni.com/downloads to download the driver runtime for your devices.

The nimi-python modules (i.e. for NI-RFSA) can be installed with pip:

$ python -m pip install nirfsa~=1.0.0

Contributing

We welcome contributions! You can clone the project repository, build it, and install it by following these instructions.

Usage

The following is a basic example of using the nirfsa module to open a session to an RF Signal Analyzer and perform a spectrum acquisition.

import nirfsa

# Configure the session
with nirfsa.Session(resource_name='5841', id_query=False, reset_device=False, options='Simulate=1, DriverSetup=Model:5841') as rfsa_session:
    rfsa_session.acquisition_type = nirfsa.AcquisitionType.IQ

    rfsa_session.reference_level = -10
    rfsa_session.iq_carrier_frequency = 1e9

    iq_data_array = np.zeros(1024, dtype=np.complex128)

    wfm_info = rfsa_session.read_iq_single_record_into(iq_data_array)
    # Perform measurements...

Other usage examples can be found on GitHub. .. _support-section:

Support / Feedback

For support specific to the Python API, follow the processs in Bugs / Feature Requests. For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit NI Community Forums.

Bugs / Feature Requests

To report a bug or submit a feature request specific to Python API, please use the GitHub issues page.

Fill in the issue template as completely as possible and we will respond as soon as we can.

Documentation

Documentation is available here.

License

nimi-python 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.

gRPC Features

For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is subject to the NI General Purpose EULA (see NILICENSE).

Metadata

Release files for nirfsa 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nirfsa 1.0.0
File Size Uploaded
nirfsa-1.0.0.tar.gz 141.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nirfsa 1.0.0
File Interpreter ABI Platform
nirfsa-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 287.5 kB

Release files / nirfsa-1.0.0.tar.gz

Download URL nirfsa-1.0.0.tar.gz
Size 141.6 kB
Tags Source
SHA-256 checksum
How to use checksums
179c0274c1e959b3eb1b014735c00dea184e191a8ffbd40990d20db54e6ac784
BLAKE2b-256 checksum
How to use checksums
0387906ce19474514e58a143e27649b8fa05ea3e4301b431cba5aeeba446155c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / nirfsa-1.0.0-py3-none-any.whl

Download URL nirfsa-1.0.0-py3-none-any.whl
Size 145.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69c275228dc14208531617b63221722e044a5066c98f4850219cbd1d94fff347
BLAKE2b-256 checksum
How to use checksums
fe01e6a9edeba9d3db46b593dd8a02b44f34ff13b16af1f3f421573455a397e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page