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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Execute command line is very slow when runtime engine

Solved!
Go to solution

Hi,

 

I would like to execute a  command line by system exec. vi, and when I execute in development environment that cost about 80 ms. But when I build EXE and execute in runtime environment, it cost 36 seconds.

 

Did I do something wrong?

0 Kudos
Message 1 of 5
(2,745 Views)

Here is my source codeaaa.PNG

0 Kudos
Message 2 of 5
(2,717 Views)

Does the command succeed after 36 sec or fail? Maybe you could output the output and error info, and maybe also not minimise the window, just to see what happens.

Certified LabVIEW Architect
0 Kudos
Message 3 of 5
(2,701 Views)

You could also try disabling UAC temporarily to see if that alleviates the problem. And like Thols mentioned, check the STD out and ERR out for messages.

---------------------------------------------
Certified LabVIEW Developer (CLD)
There are two ways to tell somebody thanks: Kudos and Marked Solutions
0 Kudos
Message 4 of 5
(2,679 Views)
Solution
Accepted by topic author LiaoPH

Thanks everyone for gave advice.

I had try to enable/disable UAC and still not work. Finally that is  IT of our company locked something like UAC...

0 Kudos
Message 5 of 5
(2,641 Views)