Adding nidcpower_hardware timed Single Point measurement.#8
Open
bkumarng-NI wants to merge 3 commits into
Open
Adding nidcpower_hardware timed Single Point measurement.#8bkumarng-NI wants to merge 3 commits into
bkumarng-NI wants to merge 3 commits into
Conversation
Adding nidcpower_hardware timed Single Point measurement.
There was a problem hiding this comment.
Pull request overview
Adds a new NI-DCPower example script demonstrating a hardware-timed Single Point workflow for PXIe-4139, including a CLI for configuring source/measure parameters and basic simulation-driven tests.
Changes:
- Introduces
nidcpower_hardware_timed_single_point.pyexample that sources two voltage levels sequentially and fetches measurements. - Adds CLI arguments for resource/options and key timing/range/limit parameters.
- Adds simulated pytest-style tests (
test_example,test_main) consistent with other examples in this repo.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+65
to
+70
| # Initiate output, fetch at voltage_level_1, change to voltage_level_2, fetch again. | ||
| # timeout=1.0 s — adjust if source_delay is longer than 1 s. | ||
| with session.initiate(): | ||
| measurements1 = session.fetch_multiple(count=1, timeout=1.0) | ||
| session.voltage_level = voltage_level_2 | ||
| measurements2 = session.fetch_multiple(count=1, timeout=1.0) |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adding nidcpower_hardware timed Single Point measurement.
Module used : PXIe-4139
python nidcpower_hardware_timed_single_point.py -n "PXI1Slot1" -vl1 3.0 -vl2 5.0 -sd 0.1
python nidcpower_hardware_timed_single_point.py -op "Simulate=1, DriverSetup=Model:4139; BoardType:PXIe"