Jump to content

Flatten-Unflatten + shiftregister bug


Recommended Posts

When unflattening a string that is wired to a shiftregister, the remaining string output (from unflatten function) might contain garbage when it leaves the loop.

The result of the operation depends of the size of the remaining string, small strings are OK, but large strings contains garbage.

To test this: flatten a cluster containing a boolean and a numeric, then add some additional data (U8-array converted to string).

The combined string is then fed to an Unflatten function within a while loop (only running one iteration).

Unflattening is done in two ways, one where the string is passed through a shift register, and one where data is passed through a loop tunnel.

In the case of a loop tunnel, the remaining string and the resulting U8-array is OK, but with the shiftregister, data in the U8 array is corrupted.

To summarize; when using large strings the remaining string output is OK within the loop, but right after the loop it has changed.

See attached VI for details.

http://forums.lavag.org/index.php?act=attach&type=post&id=5413

This has been reported to NI, but I have not gotten a CAR for this one yet.

/J

http://forums.lavag.org/index.php?act=attach&type=post&id=5412

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.