Skip to content

Adding Measure Capacitance example in NI-DMM - #2225

Open
NI-velmurugan wants to merge 4 commits into
ni:masterfrom
NI-velmurugan:users/velmurugan/add-nidmm-measure-capacitance
Open

NI-velmurugan wants to merge 4 commits into
ni:masterfrom
NI-velmurugan:users/velmurugan/add-nidmm-measure-capacitance

Conversation

@NI-velmurugan

@NI-velmurugan NI-velmurugan commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor
  • This contribution adheres to CONTRIBUTING.md.
  • I've updated CHANGELOG.md if applicable.
    - [ ] I've added tests applicable for this pull request

What does this Pull Request accomplish?

This PR adds nidmm_measure_capacitance.py, a Python adaptation of the LabVIEW Measure Capacitance.vi

What testing has been done?

Manually tested the example only using simulated hardware.

@codecov-commenter

codecov-commenter commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.12%. Comparing base (cdbd8f2) to head (e92fc8d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2225   +/-   ##
=======================================
  Coverage   88.11%   88.12%           
=======================================
  Files          88       88           
  Lines       22832    22832           
=======================================
+ Hits        20119    20120    +1     
+ Misses       2713     2712    -1     
Flag Coverage Δ
codegenunittests 84.78% <ø> (ø)
nidcpowersystemtests 94.40% <ø> (+0.04%) ⬆️
nidcpowerunittests 89.53% <ø> (ø)
nidigitalsystemtests 92.04% <ø> (ø)
nidigitalunittests 68.43% <ø> (ø)
nidmmsystemtests 92.33% <ø> (ø)
nifakeunittests 86.08% <ø> (ø)
nifgensystemtests 94.34% <ø> (ø)
nimodinstsystemtests 73.85% <ø> (ø)
nimodinstunittests 94.20% <ø> (ø)
nirfsasystemtests 82.71% <ø> (ø)
nirfsaunittests 63.40% <ø> (ø)
nirfsgsystemtests 81.18% <ø> (ø)
niscopesystemtests 89.99% <ø> (ø)
niscopeunittests 43.20% <ø> (ø)
nisesystemtests 91.50% <ø> (ø)
niswitchsystemtests 81.66% <ø> (ø)
nitclksystemtests 94.87% <ø> (ø)
nitclkunittests 98.26% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Avinash2Suresh

Copy link
Copy Markdown

Approved!

@NI-velmurugan

NI-velmurugan commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

NOTE:

  • Testing was limited to simulation with a DMM (NI-DMM 4082) because the NI-DMM 4081 on the test PC is not supported by this example. The supported models are 4072 and 4082, as shown in the LabVIEW documentation.
  • The LabVIEW VI does not validate the instrument model. This Python example adds that check, based on the documented supported models, so unsupported instruments are handled clearly.
Screenshot 2026-10-13 194146

@NI-velmurugan

Copy link
Copy Markdown
Contributor Author

@jarnoldNI, the PR is ready for your review.

@NI-velmurugan
NI-velmurugan marked this pull request as ready for review October 14, 2026 07:35
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.

4 participants