Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Optimizing code

Thanks a lot  for your help guys.

 

I want to optimize my code, its very slow. I have matrix of 512*512*512, for visualizing in plane I am taking one column/row from each 512*512 and making it new 512 by 512 matrix but it taking so much time. Please share your idea to make this code faster.

 

Here I am attaching my code. I will appriciate your help 

Download All
0 Kudos
Message 1 of 5
(5,051 Views)

Why are you using so many local variables when you can connect them directly ?

0 Kudos
Message 2 of 5
(5,034 Views)

Here I am  posting few block of program. When your program contain like five six tabls and much more frame handling these wire is bit difficult , that's why I used local variables.

 

Thanks  

0 Kudos
Message 3 of 5
(5,015 Views)

Here are a couple of documents that discuss different ways to optimize LabVIEW code. Specifically, I'd consider parallel for loops if subsequent iterations of your loop don't have a data dependency on earlier iterations. 

 

Improving Performance with Parallel For Loops

Ryan K.
Product Manager, ATCA and BEEcube
National Instruments
0 Kudos
Message 4 of 5
(4,988 Views)

Thank for your reply and providing nice linkSmiley Happy

0 Kudos
Message 5 of 5
(4,975 Views)