LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fast buffer (array manipulation)

I want to make a buffer for displaying graph with limited sample size like a size of history in a chart.

Using Delete From Array.vi, I realize the buffer but slow performance with large array input (upto 2MS/s).

Can you suggest any new routine for fast buffering (simple ring buffer)?

 

labmaster

0 Kudos
Message 1 of 4
(2,924 Views)

Your code makes no sense. Why don't you attach an actual VI instead of an image?

 

Is this a subVI? How is this used? What does "delete from array" have to do with a history buffer???

 

What is "large"? 2MS/s is a rate, not a size. (2MS/s for 1 micosecond is pretty small, but 1S/s for a century would be pretty big. ;))

 

In order to keep performance high, you need to avoid array resizing and unnecessary extra data copies.

 

We clearly need more information.

0 Kudos
Message 2 of 4
(2,893 Views)

Are you truing to program circular buffer?

http://www.youtube.com/watch?v=m9F7iH8-C5k

 

LV 2011, Win7
0 Kudos
Message 3 of 4
(2,869 Views)

I found my solution. It's not related to the buffering.

When I used "Variant to Data" in high speed (2MS/s) acquisition, the performance was very slow then overflow.

 

labmaster. 

0 Kudos
Message 4 of 4
(2,856 Views)