07-26-2013 06:14 AM
You might also want to check this discussion thread for some more information on Subroutine priority.
Norbert
07-26-2013 09:25 AM
@battler. wrote:
Running as subroutine is many times faster. These are number crunching routines working on large arrays.
This is very surprising and should not be that way. One of the main reason for speedup of the subrouting setting is the fact that the front panel is not updated, even if the panel is open. You only see that apparent speed gain if you compare it with a non-subroutine subVI that has the front panel open, so make sure you have all panels closed when comparing, especially if they contain huge arrays.
What kind of "number crunching" is it? Can you describe? What is the definition of "large"?
It is really impossible to give more detailed advice without seeing any of the code.
Whenever there is a coding challenge, we see that different approaches to the problem can result in orders of magnitude different speeds. Are you sure the code is optimized for e.g. inplaceness, etc.