nidaqmx-python icon indicating copy to clipboard operation
nidaqmx-python copied to clipboard

[Prototype] Address Event Callbacks Contain Unusable Parameters Issue

Open DeborahOoi96 opened this issue 1 year ago • 1 comments

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 image

DeborahOoi96 avatar Jan 19 '24 10:01 DeborahOoi96

Run lint command to pass ci build

DeborahOoi96 avatar Jan 19 '24 11:01 DeborahOoi96