Skip to content
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

Add Offset Nulling Calibration API support for nidaqmx-python #468

Merged
merged 9 commits into from
Jan 15, 2024

Conversation

DeborahOoi96
Copy link
Collaborator

@DeborahOoi96 DeborahOoi96 commented Jan 5, 2024

What does this Pull Request accomplish?

We want to include support for Offset Nulling Calibration API in python.
This PR adds support for the following C functions in python
DAQmxPerformBridgeOffsetNullingCalEx
DAQmxPerformThrmcplLeadOffsetNullingCal

Also added regression test coverage to ensure that these functions behave as expected.
To make the regression test for DAQmxPerformThrmcplLeadOffsetNullingCal work, I had to add a new simulated device 9214 in the simulated cDAQ chassis as all other devices do not support performing thermocouple lead offset nulling calibration.

Why should this Pull Request be merged?

It provides support for the Offset Nulling Calibration functions in python

What testing has been done?

Regression tests added, all pass successfully in my test machine.
image

@DeborahOoi96 DeborahOoi96 marked this pull request as draft January 5, 2024 08:53
@DeborahOoi96 DeborahOoi96 marked this pull request as ready for review January 5, 2024 08:57
generated/nidaqmx/task.py Outdated Show resolved Hide resolved
src/handwritten/task.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@zhindes zhindes left a comment

Choose a reason for hiding this comment

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

Looks good! I am fine following up with grpc support later for all the stuff y'all are doing.

generated/nidaqmx/_grpc_interpreter.py Outdated Show resolved Hide resolved
tests/component/test_task.py Outdated Show resolved Hide resolved
tests/component/test_task.py Outdated Show resolved Hide resolved
tests/component/test_task.py Outdated Show resolved Hide resolved
src/handwritten/task.py Outdated Show resolved Hide resolved
generated/nidaqmx/_grpc_interpreter.py Outdated Show resolved Hide resolved
src/handwritten/task.py Outdated Show resolved Hide resolved
@DeborahOoi96 DeborahOoi96 merged commit c5fddf5 into ni:master Jan 15, 2024
15 of 16 checks passed
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.

Expose Shunt Calibration and Offset Nulling Calibration Functions in Bindings
3 participants