01-20-2011 10:48 AM
01-24-2011 10:33 AM - edited 01-24-2011 10:36 AM
Hi Placebo,
I've had a look at the SubVI you've created and notice you are using the Insert Into Array function twice in your For Loop. This method required Memory Reallocation (physically moving data about in your computer's RAM) every time the loop iterates - once for the first array function, then again for the second array function.
If you know what the upper limit (maximum ever required) of the array size is, then it would be better to allocate that memory at the beginning of the For Loop, and get rid of any unused elements after.
Here are some useful resources on optimising for performance:
- NI LabVIEW 2010 Performance Details
- General Performance Improvements
- Achieve Maximum System Performance at Minimum Cost
If you are interested in learning more about optimising for memory and performance, I would highly recommend the new LabVIEW Performance course. I hope that helps improve your VI further.
edit: added performance.png as downloadable attachment
Regards,
Imtiaz Chowdhury
Project Manager
Green Running / Austin Consultants
01-26-2011 10:07 AM