取消
显示结果 
搜索替代 
您的意思是: 

Circular Buffer implementation for LabVIEW 8.5

已解决!
转到解答

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 项奖励
1 条消息(共 6 条)
4,761 次查看
解答
已被主题作者 telmo 接受
Attached is the library in 8.5.
2 条消息(共 6 条)
4,744 次查看

Great!

 

Exactly what I wanted 🙂

 

Thanks,

 

telmo

0 项奖励
3 条消息(共 6 条)
4,737 次查看

telmo,

 

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

 

Felix

0 项奖励
4 条消息(共 6 条)
4,717 次查看

 Correction made!

5 条消息(共 6 条)
4,704 次查看

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. 生气表情]

 

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 项奖励
6 条消息(共 6 条)
4,345 次查看