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

Fixes #21 data conversion issue #24

Merged
merged 6 commits into from
Sep 30, 2020

Conversation

ryanpoulos
Copy link
Contributor

What does this Pull Request accomplish?

  • Fixes the behavior observed where engine buffer data was not being correctly converted to the string buffer via the Default Buffer Converter class.
  • Fixes some Data Viewer endianness issues by adding a control to allow the user to select the endianness.

Why should this Pull Request be merged?

Only makes the above fixes. Does not change core functionality.

What testing has been done?

Ran Framework Test VI.

…fault byte order rather than big-endian, since this matches the OS/CPU on all targets supported by the DSF.
… viewing a buffer. Also fixed a small bug where characters from a larger number would still be shown when the value lowers to a smaller value.
…s. Changed the default configuration cluster value on front panel to include some string offsets for converting engine channels to string channels.
@ryanpoulos ryanpoulos changed the title Fixes #12 data conversion issue Fixes #21 data conversion issue Sep 29, 2020
@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.

DSF Core.lvlib--Data Viewer.vi.png

capture

DSF Core.lvlib--Default Buffer Converter Transfer Configuration.lvclass--Initialize From Settings.vi.png

capture

DSF Core.lvlib--Read Buffer.vi.png

capture

DSF Core.lvlib--Update Values Buffer.vi.png

capture

Framework Test.vi.png

capture

@dbendele
Copy link
Contributor

Many of the changes made here are aligned with changes in PR#22. Because it is G code, the merging of changes is not straightforward. I will schedule a meeting for us to resolve.

@dbendele
Copy link
Contributor

dbendele commented Sep 30, 2020

  • Use Scan from String primitive to convert from string to enum in Initialize From Settings.vi

image

@dbendele
Copy link
Contributor

dbendele commented Sep 30, 2020

  • Use subVI to convert from string buffer to string representation of value in Update Values Buffer.vi

Copy link
Contributor

@dbendele dbendele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love the changes. Thanks!

@dbendele dbendele linked an issue Sep 30, 2020 that may be closed by this pull request
@dbendele dbendele merged commit d890a6c into ni:main Sep 30, 2020
dbendele added a commit that referenced this pull request Oct 1, 2020
dbendele added a commit that referenced this pull request Oct 1, 2020
dbendele added a commit that referenced this pull request Oct 2, 2020
* set reentrancy and inlining consistent with needs for VIs that need to maintain state for each instance in memory; also use reentrancy to improve parallelization

* VI analyzer recommended changes

* remove unnecessary layer of subVI

* add tests for DSF reentrancy that verify functionality of two parallel instances of framework

* separate compiled code from source <AZDO>1097900 https://dev.azure.com/ni/DevCentral/_workitems/edit/1097900

* merge PR#22 changes with PR#24 changes and add unit test for new subVI added in PR #24; changed scope of subVI to public for unit test
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.

Buffer conversions to string buffer are not returning expected results
3 participants