Skip to content

Adding Measure Frequency in NI-DMM - #2226

Draft
NI-velmurugan wants to merge 8 commits into
ni:masterfrom
NI-velmurugan:users/velmurugan/add-nidmm-measure-frequency
Draft

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

Conversation

@NI-velmurugan

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_frequency.py, a Python adaptation of the LabVIEW Measure Frequency.vi

What testing has been done?

Manually tested the example only using simulated hardware and the real hardware.

@NI-velmurugan

Copy link
Copy Markdown
Contributor Author

@divakar-selvam07 the PR is ready for review.

@codecov-commenter

codecov-commenter commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

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

❌ Your project status has failed because the head coverage (75.14%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage.

❗ There is a different number of reports uploaded between BASE (cdbd8f2) and HEAD (4ae565a). Click for more details.

HEAD has 43 uploads less than BASE
Flag BASE (cdbd8f2) HEAD (4ae565a)
nifakeunittests 10 5
nidcpowerunittests 10 5
nidigitalunittests 10 5
nimodinstunittests 10 5
nirfsaunittests 10 5
niscopeunittests 10 5
nitclkunittests 10 5
codegenunittests 2 1
niscopesystemtests 1 0
nidigitalsystemtests 1 0
nidmmsystemtests 1 0
nifgensystemtests 1 0
nirfsasystemtests 1 0
nidcpowersystemtests 1 0
nitclksystemtests 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2226       +/-   ##
===========================================
- Coverage   88.11%   75.14%   -12.98%     
===========================================
  Files          88       58       -30     
  Lines       22832    10868    -11964     
===========================================
- Hits        20119     8167    -11952     
+ Misses       2713     2701       -12     
Flag Coverage Δ
codegenunittests 84.78% <ø> (ø)
nidcpowersystemtests ?
nidcpowerunittests 89.53% <ø> (ø)
nidigitalsystemtests ?
nidigitalunittests 68.43% <ø> (ø)
nidmmsystemtests ?
nifakeunittests 86.08% <ø> (ø)
nifgensystemtests ?
nimodinstsystemtests 73.85% <ø> (ø)
nimodinstunittests 94.20% <ø> (ø)
nirfsasystemtests ?
nirfsaunittests 63.40% <ø> (ø)
nirfsgsystemtests 70.08% <ø> (-11.10%) ⬇️
niscopesystemtests ?
niscopeunittests 43.20% <ø> (ø)
nisesystemtests 91.50% <ø> (ø)
niswitchsystemtests 81.66% <ø> (ø)
nitclksystemtests ?
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.

Comment thread src/nidmm/examples/nidmm_measure_frequency.py
Comment thread src/nidmm/examples/nidmm_measure_frequency.py Outdated
Comment thread src/nidmm/examples/nidmm_measure_frequency.py Outdated
Comment thread src/nidmm/examples/nidmm_measure_frequency.py Outdated
Comment thread src/nidmm/examples/nidmm_measure_frequency.py Outdated
@divakar-selvam07

Copy link
Copy Markdown
Contributor

@jarnoldNI , the PR is ready for your review.

with nidmm.Session(resource_name=resource_name, options=options) as session:
session.configure_measurement_digits(measurement_function=nidmm.Function[function], range=range, resolution_digits=RESOLUTION_DIGITS)
session.freq_voltage_range = max_amplitude
# The driver reports warnings through Python's warnings module; the warning code is included in the message.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
# The driver reports warnings through Python's warnings module; the warning code is included in the message.

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.

5 participants