Jump to content

[CR] Circular Buffer


Recommended Posts

Posted

I suspect it's array based, but who's to say? I'd toss that under the "all other implementation details are equal" part. While considering a queue I was focusing only on push/pop scalar operations at the ends of the buffer otherwise there are pretty big differences between the implementations.

  • 4 years later...
Posted

@hooovahh

The XNodes in this library... can these be replaced with VIMs at this point? Are the XNodes doing any type adaptation that couldn't be done with VIMs? I haven't opened up the code to investigate... figured I'd ask you first in case you know off the top of your head.

Posted

So for the most part I believe these could be replaced with VIMs.  I think the only feature that is used that a VIM wouldn't support is that the icons change color based on the data type being used, but I'm not sure anyone would really miss it.  This also supports writing a scalar or array of data but a well constructed VIM can do that too.

Also I believe there was a bug in early versions of LabVIEW that supported VIMs, which wouldn't allow for an inlined VI that had the New DVR primitive, but I just tested in 2020 and it worked fine.

Posted

I did a Circular Buffer using VIMs, so I'm pretty sure one can get the same basic functionality, though i suspect there is advanced Xnode stuff that VIMs can't do.

 

 

Posted

Powell: I looked at your library. Useless to me because it doesn't expose the raw buffer for traversal... it allows a *copy* of the buffer, but not an IPE access to the buffer. You abstracted everything away.

Posted

Not sure I understand.  The data type is just an array in a cluster; it's not actually protected in any way.  It makes a copy if you want an ordered array, but not if you want to just access the circular buffer itself.  That you can do by "unbundle". 

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.