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 nirfsg module provides a Python API for NI-RFSG. The code is maintained in the Open Source repository for nimi-python.

Support Policy

nirfsg supports all the Operating Systems supported by NI-RFSG.

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

NI created and supports nirfsg.

NI-RFSG Python API Status

NI-RFSG (nirfsg)

Driver Version Tested Against

2026 Q3

PyPI Version

Latest NI-RFSG Version

Supported Python Version

NI-RFSG supported Python versions

Documentation

NI-RFSG Python API Documentation Status

Open Issues

Open Issues + Pull Requests for NI-RFSG

Open Pull Requests

Pull Requests for NI-RFSG

Installation

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

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

$ python -m pip install nirfsg~=1.2.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 nirfsg module to open a session to an RF Signal Generator and generate a continuous wave (CW) signal.

import nirfsg

# Configure the session
with nirfsg.Session(resource_name='5841', id_query=False, reset_device=False, options='Simulate=1, DriverSetup=Model:5841') as session:
    # Configure RF settings
    session.configure_rf(
        frequency=1e9,  # Frequency in Hz
        power_level=-10.0  # Power level in dBm
    )
    session.generation_mode = nirfsg.GenerationMode.CW

    # Start signal generation
    with session.initiate():
        input("Press Enter to stop generation")

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 nirfsg 1.2.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 nirfsg 1.2.0
File Size Uploaded
nirfsg-1.2.0.tar.gz 127.2 kB Details

Built distribution (wheel)

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

Total release size: 257.0 kB

Release files / nirfsg-1.2.0.tar.gz

Download URL nirfsg-1.2.0.tar.gz
Size 127.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e43c0acae1c29692a3d9a3103d62822394c590397a96ff1b0ab47d0c14375542
BLAKE2b-256 checksum
How to use checksums
a1e0fd459490fe606c079b9b891abc5084719ebcf2409c63d70ba92e04acd8d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / nirfsg-1.2.0-py3-none-any.whl

Download URL nirfsg-1.2.0-py3-none-any.whl
Size 129.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb3a2811bedfeae67158ccba0c0e0ab10cc3c3a43597a26f3d5bb32a6730fff3
BLAKE2b-256 checksum
How to use checksums
da13c9e72ac9a8226a79d183ac69068be843b7317557f54931e26d30cd0bc042
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.2.0 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

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