nidaqmx-python
nidaqmx-python copied to clipboard
[Prototype] Address Event Callbacks Contain Unusable Parameters Issue
- [x] This contribution adheres to CONTRIBUTING.md.
Attempt to address the issue brought up in https://github.com/ni/nidaqmx-python/issues/143 Made a wrapper in task.py that takes in the callback_function that doesn't have task_handle or callback_data inside, and pass it to wrappers that modify the function to add in the missing functions respectively. This is just a first pass, let me know if you have different thoughts on how to implement this.
Updated functional test to test for the cases when the callback function has missing parameters.
Why should this Pull Request be merged?
Addresses the issue brought up in https://github.com/ni/nidaqmx-python/issues/143
What testing has been done?
Functional test coverage added and all pass
Run lint command to pass ci build