Quantcast
Viewing all articles
Browse latest Browse all 69003

system exec.vi doesn't work anymore after building the application as .exe

Hi,

 

I would like to shutdown my computer (W7 32bits) with an LabVIEW app.

For this i am using the "system exec.vi" from LabVIEW Toolbox.

I am using LabVIEW 2013 SP1 and I have administrators right on my computer.

My app contains:

1 VI Shutdown.vi

1 FGV getting elapsed time

2 .ctl

1 .ico

 

Problem :

My application works fine in the LabVIEW developpement system (Lauch Shutdown.vi to execute)

When i ask the app to shutdown the computer i have a Window popup which appear saying "Windows is going to shut down in less than a minute"

But after building my app as .exe and runnig it (Lauch Shutdown.exe to execute)

When i ask the app to shutdown the computer... Window popup doens't appear... and computer didn't shutdown !

 

I did so many trials like

* add "cmd /c" previous"shutdown /f /s /t xxx" command

* add "/n" at the end

* tried : Wait until completion = true/false

 

When the .exe is runnig and the command shutdown is asked, i can see a cmd window oppening and closing (same as .vi executing) but seems like the command line is not executed using .exe because Windows popup dosn't show up.

It is so weird VI works perfectly as expected and doesn't work after building the app...

 

Anyone already got similiar problems ?

Any help would be nice !

 

BR,

Vincent


Viewing all articles
Browse latest Browse all 69003

Trending Articles