ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Poor Performance of Script When Called from Another Script

Solved!
Go to solution

Hello,

 

I have developed a .SUD which calls another script via "ScriptInclude" command and I have noticed a substantial decrease in performance when executed this way.

 

Normally my calculation scripts executes in less then 10 sec when executed alone.

 

However when I call the script from my .SUD script it takes anywhere from 2 to 10 minutes on the same data set.

 

It almost like it is running in debug mode where I can actually see my channel list being populated with data as the script executes.

 

What could be slowing this process down so much?

 

Using DIAdem 2015 32 bit.

 

Tim
0 Kudos
Message 1 of 2
(3,775 Views)
Solution
Accepted by topic author smoothdurban

OK I used this to speed up the result and it works like a charm

 

 Call UIAutoRefreshSet(False)     
Tim
Message 2 of 2
(3,773 Views)