-
Notifications
You must be signed in to change notification settings - Fork 186
Add Active Dev to Timing Class #767
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
Conversation
|
@bkeryan I'm not too sure how we should go about specifying |
Can you try that in LabVIEW with the Property Node - what does it do if you specify one with an attribute that doesn't support it? Overall, it looks good :) Once we figure out the behavior here, let's add a couple unit tests. Add a simulated cDAQ module that supports this, and then validate whatever the error cases (or not error depending on what we decide) are. |
Look at The timing properties that do not have an Note that you should still use the generic functions like How do you know based on the metadata which properties have active devices? I think you probably need to update scrapigen to look at whether
Normally I am in favor of parity with the LabVIEW API, but the underlying interfaces used by the LabVIEW API allow passing active devices to properties that do not support active devices in the C API. We ran into this when we updated the .NET API to call the C API, and ended up using a warning instead of an error in some cases. See |
...
That all sounds good to me! |
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.
Still looking for tests!
@zhindes I'm trying to add a test for the timing boolean property, |
Multiplexed X Series supports AIConvDigFltrEnable but not the active devs version. Active devs timing was added to allow setting per-module convert rate on C Series modules, like the NI 9205. However, I don't think they support external convert clock, so there is no reason to support digital filtering of the convert clock. Active devs for this specific property is the intersection of two corner cases, so I don't think you can test it.
raptor.dds, cseries.dds, tCDAQCartridgeAITimingExpert.attr, tAttributeQueryTest, etc. |
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.
Sorry for the delays. This looks almost done, but there are a few minor things I want you to fix.
What does this Pull Request accomplish?
_active_devstoTimingclass__getitem__to return a new Timing instance with_active_devsset to the index_exinterpreter method if_active_devsis set.Why should this Pull Request be merged?
What testing has been done?
ai_conv_rateattribute with device specifiedfirst_samp_timestamp_enableattribute with device specified