LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to implement producer consumer loop to enhance the speed,

Hello All,

 

I need to plot a graph as well as intensity plot. but for large number of data points the intensity graph slows down.

I know producer consumenr loop implementation can enhance the speed, but i m not able to figure out , how to implement it in my design..

please help..

i m posting jpg image as well as VI,  VI wont run as it needs supportng dll files which I can not share.

 

Thanks in advance

Download All
0 Kudos
Message 1 of 2
(2,088 Views)

I think your real problem is how you are handling the 2D array.  Instead of building the array and cutting it down, you might want to try preallocating the array (using initialize array) and then use Replace Array Subset to add your new data.  If you keep track of the index to replace in a shift register (increment with each replace, set back to 0 when you go to far), you can effectively create a circular buffer for your intesity graph.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,052 Views)