Skip to content

Adding nidcpower_hardware timed Single Point measurement.#8

Open
bkumarng-NI wants to merge 3 commits into
mainfrom
users/bkumarng-NI/Adding_dcpower_hardwaretimed_singlepoint
Open

Adding nidcpower_hardware timed Single Point measurement.#8
bkumarng-NI wants to merge 3 commits into
mainfrom
users/bkumarng-NI/Adding_dcpower_hardwaretimed_singlepoint

Conversation

@bkumarng-NI

Copy link
Copy Markdown
Collaborator

Adding nidcpower_hardware timed Single Point measurement.

Module used : PXIe-4139

  1. with Default value :
image
  1. with Custom values through CLI
    python nidcpower_hardware_timed_single_point.py -n "PXI1Slot1" -vl1 3.0 -vl2 5.0 -sd 0.1
image
  1. with Simulated option
    python nidcpower_hardware_timed_single_point.py -op "Simulate=1, DriverSetup=Model:4139; BoardType:PXIe"
image

Adding nidcpower_hardware timed Single Point measurement.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.py example 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 thread src/nidcpower/nidcpower_hardware_timed_single_point.py Outdated
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)
Comment thread src/nidcpower/nidcpower_hardware_timed_single_point.py Outdated
bkumarng-NI and others added 2 commits June 18, 2026 18:20
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants