-
Notifications
You must be signed in to change notification settings - Fork 99
Adding nirfsg module with initial set of APIs #2089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ni-jfitzger
merged 50 commits into
ni:master
from
Vaishnavigupta1312:users/vagupta/adding_rfsg_apis
Apr 26, 2025
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
441457d
Supported generation of nirfsg module and added its metadata
Vaishnavigupta1312 8c79a45
Supported ViAttr and ViRsrc
Vaishnavigupta1312 18af3dc
Added nirfsg to build_release.py
Vaishnavigupta1312 f9e8bb0
Final auditing for public APIs
Vaishnavigupta1312 5c4327b
Resolved syntax warnings and self_test definition
Vaishnavigupta1312 5e2456e
Added rfsg generation commands
Vaishnavigupta1312 c35ee8e
Enabled hightime functions for rfsg
Vaishnavigupta1312 3c37d71
Added basic system test for nirfsg
Vaishnavigupta1312 8864160
Modified CHANGELOG.md
Vaishnavigupta1312 57a7b4a
Added basic nirfsg example
Vaishnavigupta1312 b8e5b2d
Corrected resource name in example
Vaishnavigupta1312 c77a429
Removed system test for nirfsg
Vaishnavigupta1312 988a42e
Removed example
Vaishnavigupta1312 5f543a0
Added example
Vaishnavigupta1312 f0da800
Added system test for nirfsg
Vaishnavigupta1312 356d12f
generated examples.rst
Vaishnavigupta1312 9a94d2e
Updated tox.ini and tox-travis.ini with correct envlist
Vaishnavigupta1312 82d360c
Removed nirfsg from workflow files
Vaishnavigupta1312 0b20188
Addition of nirfsg to yaml files for running the system tests
Vaishnavigupta1312 3f90d2c
Added enums related to functions
Vaishnavigupta1312 017a78b
Related enums to functionas and renamed some enums
Vaishnavigupta1312 0371509
Fixed tox.ini and travis.ini
Vaishnavigupta1312 353a9ae
Updated the list to be alphabetical
Vaishnavigupta1312 8abaa83
Reverting the tooling changes
Vaishnavigupta1312 04a01be
Reverted helper.py changes
Vaishnavigupta1312 ab61a58
Removed system test for nirfsg
Vaishnavigupta1312 b8e0ff5
Restructured nirfsg example
Vaishnavigupta1312 217fad0
Modified nirfsg_usage.inc
Vaishnavigupta1312 71f92e3
Updated RFSG feed info
Vaishnavigupta1312 7de65af
Updated rfsg module version
Vaishnavigupta1312 bc2af92
generated README.rst with updated vesion
Vaishnavigupta1312 a201769
Updated enum description and disabled session lock calls for rfsg
Vaishnavigupta1312 964ab9e
Updated README.rst
Vaishnavigupta1312 64a5a10
removing input() for non-interactive use of example
Vaishnavigupta1312 6e178b2
Removed print statement from example
Vaishnavigupta1312 32809b7
Added documentation for functions
Vaishnavigupta1312 9a25599
Added documentation for functions
Vaishnavigupta1312 d44b870
Removing nirfsg out of action workflows
Vaishnavigupta1312 57accc1
Updated CHANGELOG.md and modified documentation
Vaishnavigupta1312 442d3f3
Resolved review comments
Vaishnavigupta1312 3677577
Merge remote-tracking branch 'upstream/master' into users/vagupta/add…
Vaishnavigupta1312 d8cd904
Modified CHANGELOG.md
Vaishnavigupta1312 5d268ed
Modified CHANGELOG.md
Vaishnavigupta1312 79512f8
Resolved comments
Vaishnavigupta1312 0d4fc7f
Updated latest nirfsg installer version
Vaishnavigupta1312 f31bdb1
Reran codegen and updated generated files
Vaishnavigupta1312 3276ab2
Merge branch 'ni:master' into users/vagupta/adding_rfsg_apis
Vaishnavigupta1312 54234a4
Merge remote-tracking branch 'origin/master' into users/vagupta/addin…
Vaishnavigupta1312 a99f7ce
Merge branch 'users/vagupta/adding_rfsg_apis' of https://github.com/V…
Vaishnavigupta1312 cc31893
Updated files
Vaishnavigupta1312 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| .. _documentation-section: | ||
|
|
||
| Documentation | ||
| ============= | ||
|
|
||
| Documentation is available `here <http://nirfsg.readthedocs.io>`_. | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| 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. | ||
|
|
||
| .. code-block:: python | ||
|
|
||
| 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. <https://github.com/ni/nimi-python/tree/master/src/nirfsg/examples>`_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # .readthedocs.yaml | ||
| # Read the Docs configuration file | ||
| # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
|
||
| # Why Use A Configuration File? | ||
| # https://docs.readthedocs.io/en/stable/config-file/index.html | ||
| # The main advantages of using a configuration file over the web interface are: | ||
| # * Settings are per version rather than per project. | ||
| # * Settings live in your VCS. | ||
| # * They enable reproducible build environments over time. | ||
| # * Some settings are only available using a configuration file | ||
|
|
||
| # Required | ||
| version: 2 | ||
|
|
||
| # Set the version of Python and other tools you might need | ||
| build: | ||
| os: ubuntu-22.04 | ||
| tools: | ||
| python: "3.11" | ||
| jobs: | ||
| # pre_build: | ||
| # # Check for broken external links | ||
| # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck | ||
| post_checkout: | ||
| # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition | ||
| # Build-cancellation rules are recommended for monorepos. | ||
| # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nirfsg/. | ||
| # | ||
| # If there are no changes (git diff exits with 0) we force the command to return with 183. | ||
| # This is a special exit code on Read the Docs that will cancel the build immediately. | ||
| - | | ||
| if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nirfsg/; | ||
| then | ||
| exit 183; | ||
| fi | ||
|
|
||
| # Have Read the Docs build documentation with Sphinx | ||
| sphinx: | ||
| builder: html | ||
| configuration: docs/nirfsg/conf.py | ||
|
|
||
| # If using Sphinx, optionally build your docs in additional formats such as PDF | ||
| formats: | ||
| - epub | ||
|
|
||
| # Declare the Python requirements required to build your docs | ||
| python: | ||
| install: | ||
| - requirements: docs/requirements.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| .. _about-section: | ||
|
|
||
| About | ||
| ===== | ||
|
|
||
| The **nirfsg** module provides a Python API for NI-RFSG. The code is maintained in the Open Source repository for `nimi-python <https://github.com/ni/nimi-python>`_. | ||
|
|
||
| Support Policy | ||
| -------------- | ||
| **nirfsg** supports all the Operating Systems supported by NI-RFSG. | ||
|
|
||
| It follows `Python Software Foundation <https://devguide.python.org/#status-of-python-branches>`_ support policy for different versions of CPython. | ||
|
|
||
| NI created and supports **nirfsg**. | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.