LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Performance Issue

Dear Friends, I would like to know

Will there be a performance issue, If I use 2D Array instead of 1D array. Because I'm working in a time critical issue.

And I would like to know How to optimize the time, in case of LabView. Is there any guide lines, If so, can you provide some guideline/Link

 

 

Thank you,

 

Best Regards,

Rathan

 

 

 

 

 

 

0 Kudos
Message 1 of 5
(2,719 Views)

In general, no. Your application will be alot more affected by what you do in your loop, how much/which way the data is transferred and so on. If the array causes performance issues it's faster to create the array outside the loop and replace elements than have it build the array.

 

Basically build your loop through threads and shift registers instead of local variables, it's alot faster.

 

Else, show us what you've got and you can get more specific input.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 5
(2,704 Views)

The more data moved around each iteration the slower your code will work. Remember that each local, global, indicator requires its own copy of data. Another trick is to turn of debugging options. This may also help speed up your code.

Unless you post your code it is hard to give you more pointers



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 3 of 5
(2,689 Views)

rathan wrote:

Dear Friends, I would like to know

Will there be a performance issue,...If so, can you provide some guideline/Link

 

 

Thank you,

 

Best Regards,

Rathan

 

 

 

 

 

 


This Tag cloud is for LabVIEW Perfomance realted threads. Most all performance related issues are covered by that collection.

 

Have fun!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 5
(2,674 Views)
When you start your application build a buffer and just replace the items in the array with the replace array subset. This will minimize the ammount of time it takes as long as you know how big your arry will get.
Tim
GHSP
0 Kudos
Message 5 of 5
(2,671 Views)