LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Difference Start->Run->cmd and System Exec.vi

What is the difference between a DOS-window opened with Start->Run...->cmd and one opened with System Exec.vi?
I am trying to run a batch file, which runs perfectly in the first case, an generates errors in the second case.
 
Gerwim
0 Kudos
Message 1 of 5
(3,620 Views)
It should be the same. The most common error is not having the right path. Which error are you getting?

___________________
Try to take over the world!
0 Kudos
Message 2 of 5
(3,612 Views)
In Start->Control Panel->System->Advanced->Environment Variables some changes were necessary to perform well. It looks as if these changes are not 'seen' in the LabVIEW mode.
 
Gerwim
0 Kudos
Message 3 of 5
(3,596 Views)

I have found the solution: Turn off the computer, go home and have a good night sleep, return and turn on the computer again. Then it works.

Gerwim

0 Kudos
Message 4 of 5
(3,582 Views)
Did you restart LabVIEW when you defined the environment variable? In Windows when a executable starts it gets copy of the current environment variables. So when you define a variable when LabVIEW (or any other program) is running they won't recognize this change until the you restart it.
 
This is also true for the commands issued with the System Exec.vi. Since this runs in the LabVIEW Environment it uses the variables that have been given to LabVIEW when it started.
 
Regards
Karsten
 
 
Message 5 of 5
(3,577 Views)