-
Notifications
You must be signed in to change notification settings - Fork 161
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
enabled support for DAQmxSelfCal #460
Conversation
Hi @Sov-trotter, thank you for contributing.
|
This is a step in the right direction but we shouldn't close either issue yet. #22 includes the external calibration session class and external calibration adjustment functions, which is a sizeable effort. #23 includes the calibration info properties, which is a smaller effort. |
I am willing to take on that effort for this contribution! |
I agree. I'll clean up this PR description a bit. |
I forgot: we can put customizations in https://github.com/ni/nidaqmx-python/blob/master/src/codegen/metadata/functions_addon.py so that they are not overwritten. However, updating the build process that generates |
Thanks for the feedback @bkeryan. I moved the SelfCal customization to |
Can you please add support for LibraryInterpreter ? selfCal has the same C prototype than Selftest. The body of the Selftest function can be almost copy paste. Regards |
The interpreter classes are auto-generated and LibraryInterpreter was supported in the first commit, before @Sov-trotter tried my suggestion of using |
Hey @zhindes @bkeryan let me know if guys are able to update the said build process. Also it would be really great if you can tag a release as soon as possible. :) |
This week has been hell, but next week will be much more calm. I'll dig in then, and I also want to make a release soon as well. |
I figured out what's going on with Adding It's possible to work around this by adding Since @zhindes is planning to update the metadata next week, this is kind of a moot point, but I wanted to understand why the override didn't work. |
BTW, I made this change in #462 |
@Sov-trotter - You can update your metadata from users/zhindes/self_cal_metadata. The SelfCal changes look identical to me, but some other metadata was updated in the process that has no functional impact on the generated Python API (it is used by other tooling throughout our stack). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in other places: add a test and update to the latest official metadata
update funtion metadata to support selfcal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more issue (I think), but then we'll be good. Since we're here, can you also add this to the changelog under Merged Pull Requests? A link like this: 460: enabled support for DAQmxSelfCal.
I can make a release ASAP once this is in
This reverts commit 6576102.
@Sov-trotter - looks great. I'll get a release out ASAP. |
@Sov-trotter - bah, one last issue, I think.
You can run |
Head branch was pushed to by a user without write access
We're good now. I'll babysit it from here. |
@Sov-trotter its in! I should be able to make a release this afternoon, 🤞 |
0.9.0 is out |
Just upgraded to 0.9.0 - thx. :) I find the ai_dev_scaling_coeff but not much else. Dumb questions? |
a) No, we did not add that. However, nisyscfg (pypi, github) is high quality and should have support for that. b) We do not have any current plans to add broader calibration support. Reflection of calibration metadata should already be covered by nisyscfg, and I don't think calibration adjustment is a feature we will prioritize highly, likely ever. Self Calibration is a small-impact API that is expected to be run regularly for the health of a DAQ board, so that was something that I prioritized adding based on the high level of interest shown in this PR. |
Hi Thx for clarifying matters and for the nisycfg info. :) For what it is worth and, perhaps, as food 4 thought - the device calibration_date and its calibration_due_date is useful as Quality information data, ie to assess the device status. |
Hi,
Output:
|
@alra0351 That error being returned from |
@zhindes thank you for your response. "Self Calibration" from MAX works without any problems. Any further ideas what I can try? |
@alra0351 Can you create a new discussion and share the full code? |
What does this Pull Request accomplish?
This PR enables the support for
DAQmxSelfCal
hence enabling self calibration of the supported DAQ devices.Why should this Pull Request be merged?
Self Calibration is critical functionality for many devices that is encouraged to be run regularly. This also a simple and straight-forward addition that doesn't require tackling the complexity of #22 and #23
What testing has been done?
I have manually tested this on Ni-6133 and Ni-4309 DAQ devices.
cc: @neutronstriker
This is my first time contributing to this project. Please let me know if I have missed something. :)