From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,284 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,282 Views)