LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

speed up my code

hello,

 

I have posted before a problem on how to speed up my code,it had many local variables and other issues. and I got many ways to solve it. 

 

now I have this sub VI in the attach and it also slow down the code,especially the  control panal. for example,  when I want to change a vlaue in the main control panal it takes time to response? I am using 1 million samples with complex number.the problem here in this code there is nothing in my opinon makes the code be slower than usual !! any idea? thanks in advance  

0 Kudos
Message 1 of 5
(3,149 Views)

hello,

 

I have posted before a problem on how to speed up my code,it had many local variables and other issues. and I got many ways to solve it. 

 

now I have this sub VI in the attach and it also slow down the code,especially the  control panal. for example,  when I want to change a vlaue in the main control panal it takes time to response? I am using 1 million samples with complex number.the problem here in this code there is nothing in my opinon makes the code be slower than usual !! any idea? thanks in advance  

Download All
0 Kudos
Message 2 of 5
(3,156 Views)

Is this the subVI?  Attach your main VI.

 

Your subVI isn't using any local variables.  Nothing about it would take a long time.  So I suspect the problem is in your main VI.

 

 

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

In your SubVI's properties you can try changing its priority on the Exectution tab to "Subroutine" and see if that speeds it up much.

 

But I do agree that it seems fairly possible that the problem lies elsewhere.

0 Kudos
Message 4 of 5
(3,110 Views)

Al-rawachy a écrit :

hello,

 

now I have this sub VI in the attach and it also slow down the code,especially the  control panal. for example,  when I want to change a vlaue in the main control panal it takes time to response? I am using 1 million samples with complex number.the problem here in this code there is nothing in my opinon makes the code be slower than usual !! any idea? thanks in advance  


What do youmean exactly by slow down? As was already said there is nothing in the subVI that can really slows things down. The slowest part of the code here is the subarray to dBm conversion that takes approximatly 1 ms to execute using your default settings.

 

Ben64

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