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

[minor] refactor: Update to use service class name as client library name when client name input is empty #637

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

varshini-senthil
Copy link
Contributor

  • This contribution adheres to CONTRIBUTING.md. (Required)
  • Automatically post PR comments with images for G code changes? (Recommended for small changes)

What does this Pull Request accomplish?

  • Updates the Generate Client.vi to use the service class name of the measurement plug-in as the client library name, instead of using the display name, when the client name input provided to the wrapper VI is an empty string.

Why should this Pull Request be merged?

  • To update the Generate Client.vi to use the service class name as the client library name when the client name input provided to the wrapper VI is an empty string. This change ensures the default value used for the client name is unique, avoiding potential naming conflicts due to similar library names as in the case of using the measurement's display name.

What testing has been done?

  • Created client for a sample measurement with the client name input set to empty string and verified the wrapper VI is working as expected.

@varshini-senthil
Copy link
Contributor Author

Generate Client.vi
Code diff
Before:
image

After:
image

@varshini-senthil varshini-senthil changed the title refactor: Update to use service class name as client library name when client name input is empty [minor] refactor: Update to use service class name as client library name when client name input is empty Feb 20, 2025
@varshini-senthil varshini-senthil marked this pull request as ready for review February 20, 2025 17:18
@varshini-senthil varshini-senthil merged commit ad3eb0b into main Feb 21, 2025
5 checks passed
@varshini-senthil varshini-senthil deleted the users/varshini/update-client-name-default branch February 21, 2025 06:28
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.

2 participants