LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Circular Buffer implementation for LabVIEW 8.5

Solved!
Go to solution

Greetings,

 

Several weeks ago I downloaded the implementation of a circular buffer for LabVIEW 8.5 from ni.com. The current webpage is:

 

http://zone.ni.com/devzone/cda/epd/p/id/5883

 

Unfortunately, this webpage has been updated since then and the available files for download (swcircularbuffer1.0.19.zip) are for LabVIEW 8.6.

 

So my question is: where can I find the implementation of a circular buffer for LabVIEW 8.5 ?

 

 

Thank you very much!

 

telmo

0 Kudos
Message 1 of 6
(4,400 Views)
Solution
Accepted by topic author telmo
Attached is the library in 8.5.
Message 2 of 6
(4,383 Views)

Great!

 

Exactly what I wanted 🙂

 

Thanks,

 

telmo

0 Kudos
Message 3 of 6
(4,376 Views)

telmo,

 

you should mark smercurio's message as solution and not your own.

 

Felix

0 Kudos
Message 4 of 6
(4,356 Views)

 Correction made!

Message 5 of 6
(4,343 Views)

Thanks Smercurio,  I needed this too. 

 

After looking at the code and seeing a note on the download page concerning a possibly more efficient method I'm wondering whether anyone has tried it yet.  I'm thinking that using the in-place structure to simply overwrite a pre-defined memory space would indeed be a better implementation of a circular buffer than the somewhat kludgy bounds checking and data wrapping that the NI code provides.  I plan to work on it myself of course but my boss gave me one of those "it would be great if we could have it tomorrow" talks that I'm sure most LV coders know only too well.  [While the C++ guys get two weeks to write Hello Wurld. Smiley Mad]

 

Anyway, the app is quite simple:   Run my USB-6251 card with a single channel as fast as possible (1.25MS/s) collecting to the circular buffer.  When a trigger is pressed, store the buffer so I get a file with a few mSec of pre-trigger data.  

 

I haven't yet tried the NI code so it may be sufficient for my needs but if anyone is working with the in-place structure and has ideas, code or suggestions I'd love to hear them.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 6 of 6
(3,984 Views)