NI-RFSG Python API
Project description
Overall Status
master branch status |
|
GitHub status |
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 |
2025 Q3 |
PyPI Version |
|
Supported Python Version |
|
Documentation |
|
Open Issues |
|
Open Pull Requests |
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.0.1
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).
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nirfsg-1.0.1.tar.gz.
File metadata
- Download URL: nirfsg-1.0.1.tar.gz
- Upload date:
- Size: 91.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23b722c4a72208e30df262d66451f9b98b52fc4b15e349de821dd867ffb39fc9
|
|
| MD5 |
552a778d698af82b5bd70458b3bc3bcb
|
|
| BLAKE2b-256 |
ec18bb1b416b1676f3c12370bc06dcfc86b8494c5cb4cc18f47b41a1504bb4fd
|
File details
Details for the file nirfsg-1.0.1-py3-none-any.whl.
File metadata
- Download URL: nirfsg-1.0.1-py3-none-any.whl
- Upload date:
- Size: 93.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e6fb2a638448ea97e83a9df204fccd894c564b18b2fe1412fe91254e34543d6
|
|
| MD5 |
8478a5dc8ddc7b31cd64e6f7d0c28e5b
|
|
| BLAKE2b-256 |
d97a76477796c998878deb0a661f9ec84d0ef94f5490f09d1635d7f318929645
|