03-08-2016 11:40 AM
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
03-08-2016 11:40 AM
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
03-08-2016 12:07 PM
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.
03-08-2016 12:58 PM
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.
03-08-2016 04:43 PM
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