07-22-2005 05:13 AM
07-22-2005 05:23 AM
I'm not entirely sure what you are doing, but LV should not have a problem with handling an array with 200,000 elements. The best advice is probably to make sure you don't resize the array. Initialize it once and use a loop with a shift register to replace elements of the array.
If this didn't help you, I suggest you post the relevant piece of code, or at least an image of it (no BMPs, please). Also, add some more details about what you're trying to accomplish.
07-22-2005 05:24 AM
07-22-2005 05:30 AM
07-22-2005 05:38 AM
07-22-2005 05:47 AM
Hi,
Replace those locals you have there with shift registers and you'll see the performance of your program increasing drastically.
Paulo
07-22-2005 06:10 AM
Well I don't know if you can apply this concept to your original program but with the sample program you provided you can built your array in the for loop itself. With the sample program you provided this is the fastest way to build an array. View attached image for details. Hope this can be applied to your original program. If not post more details about your original program.
Nariman07-22-2005 06:16 AM
07-22-2005
09:40 AM
- last edited on
12-03-2025
02:10 PM
by
Content Cleaner
Your VI is very big, has hundreds of local variables of your controls and seems to have a lot of code repetition. This is a certain recipe for bugs, headaches and (as you found out), bad performence. It's possible that the only way you will find to really improve performance is to rebuild the entire application.
I suggest you read the LabVIEW style guide. Also, think about taking of NI's courses.
As a stop cap measure, start by right clicking the array's terminal and select Hide Indicator. Then, replace all instances of the array inside the loop with a shift register that will carry your data and use Replace Array Subset instead of build array.
This should give you some improvement, but ultimately, the only thing you can really do is rewrite the app.