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

Auto-generation support for daqmx streaming apis #1123

Merged
merged 7 commits into from
Nov 22, 2024

Conversation

Raghav-NI
Copy link
Contributor

@Raghav-NI Raghav-NI commented Nov 19, 2024

What does this Pull Request accomplish?

This PR adds support for auto-generation of DAQmx streaming APIs.

Why should this Pull Request be merged?

  • Updated metadata for DAQmx functions to include additional information regarding streaming.
  • Added custom_proto.mako which defines protobuf message definitions to encapsulate different data types for DAQmx apis.
  • Modified logic in service_helpers.mako to auto-generate the streaming function bodies.
  • Modified service_helpers.py and common_helpers.py to generate the correct function structure for streaming apis.
  • Removed few unnecessary whitespaces from nifpga_service.cpp.

What testing has been done?

I am able to build the server code without any errors and able to use the client call and call the server with all the new streaming APIs.

generated/nifpga/nifpga_service.cpp Outdated Show resolved Hide resolved
generated/nifpga/nifpga_service.cpp Show resolved Hide resolved
source/codegen/service_helpers.py Outdated Show resolved Hide resolved
source/codegen/service_helpers.py Outdated Show resolved Hide resolved
source/codegen/templates/service_helpers.mako Show resolved Hide resolved
generated/nifpga/nifpga_service.cpp Outdated Show resolved Hide resolved
source/codegen/templates/service_helpers.mako Show resolved Hide resolved
source/codegen/templates/service_helpers.mako Show resolved Hide resolved
generated/nidaqmx/nidaqmx_service.cpp Show resolved Hide resolved
source/codegen/templates/service_helpers.mako Show resolved Hide resolved
source/codegen/templates/service_helpers.mako Show resolved Hide resolved
source/codegen/templates/service_helpers.mako Show resolved Hide resolved
source/codegen/templates/service_helpers.mako Outdated Show resolved Hide resolved
source/codegen/templates/service_helpers.mako Outdated Show resolved Hide resolved
source/codegen/templates/service_helpers.mako Show resolved Hide resolved
source/codegen/service_helpers.py Outdated Show resolved Hide resolved
source/codegen/service_helpers.py Outdated Show resolved Hide resolved
@Raghav-NI Raghav-NI changed the title Auto-generation changes for daqmx streaming apis Auto-generation support for daqmx streaming apis Nov 21, 2024
@Raghav-NI Raghav-NI marked this pull request as ready for review November 21, 2024 13:35
@Raghav-NI Raghav-NI merged commit 2452661 into main Nov 22, 2024
9 of 10 checks passed
@Raghav-NI Raghav-NI deleted the users/rrawat/auto-generation_daqm_api branch November 22, 2024 18:16
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.

4 participants