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 additional metadata to NIDAQmx errors #918

Merged
merged 13 commits into from
May 18, 2023

Conversation

Sakthi-SM
Copy link
Contributor

What does this Pull Request accomplish?
This PR updates the read and write methods in NIDAQmx to send additional metad
ata when an error occurs.

  • In read methods, additionally samps_per_chan_read will be added to the error info.
  • In write methods, additionally samps_per_chan_wrtiten will be added to the error info.

Why should this Pull Request be merged?
Implements Task 2323110: Update the nidaqmx gRPC server to return RPC exceptions with data on the number of samples read/written in a read/write operation.

What testing has been done?
Manually generated the files and verified the changes made.

@Sakthi-SM Sakthi-SM requested review from bkeryan and keer1111 May 10, 2023 18:25
generated/nidaqmx/nidaqmx_service.h Outdated Show resolved Hide resolved
source/codegen/metadata/nidaqmx/functions_addon.py Outdated Show resolved Hide resolved
source/custom/nidaqmx_service.custom.cpp Outdated Show resolved Hide resolved
source/codegen/common_helpers.py Outdated Show resolved Hide resolved
@Sakthi-SM Sakthi-SM requested a review from bkeryan May 12, 2023 14:57
source/codegen/templates/service_helpers.mako Outdated Show resolved Hide resolved
source/codegen/templates/service_helpers.mako Outdated Show resolved Hide resolved
generated/nidaqmx/nidaqmx_service.cpp Outdated Show resolved Hide resolved
@Sakthi-SM Sakthi-SM requested a review from bkeryan May 15, 2023 10:07
@keer1111 keer1111 merged commit f276a8e into main May 18, 2023
@keer1111 keer1111 deleted the users/sakthi/read-write-exception-info branch May 18, 2023 03:35
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.

6 participants