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

Fix for Tx writes not being valid when multiple instances of custom device exist #255

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

vijayvasu-ni
Copy link
Contributor

What does this Pull Request accomplish?

Forces each Tx Execution Unit class to store its own copy of previous data values. The current implementation shares data space across all Tx Execution Units due to the requirement that reentrant dynamic dispatch VIs be shared reentrant.

Adds a VI Check Previous Values.vi to compare the data values
Each execution unit calls Check Previous Values.vi in Write to Hardware.vi so the check is actually valid against the last iteration of that execution unit and the data used for whichever execution unit ran last.

Why should this Pull Request be merged?

Fix for #253

What testing has been done?

Ran all the unit tests. Manually tested that multiple instances are working as expected in RT target.
image

@vijayvasu-ni vijayvasu-ni requested a review from buckd as a code owner May 31, 2024 15:52
@niveristand-diff-bot
Copy link
Collaborator

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Ballard MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Tx Execution Unit.lvclass--Check Previous Values.vi.png

capture

Ballard MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Tx Execution Unit.lvclass--Write to Hardware.vi.png

capture

@vijayvasu-ni vijayvasu-ni self-assigned this Jun 1, 2024
@niveristand-diff-bot
Copy link
Collaborator

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Ballard MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Tx Execution Unit.lvclass--Check Previous Values.vi.png

capture

Ballard MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Tx Execution Unit.lvclass--Write to Hardware.vi.png

capture

@vijayvasu-ni vijayvasu-ni merged commit b25b1d2 into main Jun 14, 2024
7 checks passed
@Raagul-s Raagul-s deleted the mul-inst-tx-write-bug branch June 14, 2024 10:23
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.

3 participants