LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exec.vi does not work in Windows XP

We have an application that works in LabVIEW 6.1 on Windows98. It uses the System Exec.vi to send a command line and read the standard output. When this was ported to LabVIEW 7 on a WindowsXP machine, it doesn't work. The standard output window in the System Exec.vi is always blank. Is this a known issue with either LabVIEW 7 or WindowsXP? If so, is there a workaround?
0 Kudos
Message 1 of 4
(2,812 Views)

I have used similar setup on XP successfully.  What's your command to the System Exec VI?

-Khalid

0 Kudos
Message 2 of 4
(2,806 Views)
Is there any error on the error out of sytem exec? Is "wait until completion?" TRUE (default)?
0 Kudos
Message 3 of 4
(2,799 Views)

Sorry, I left out information. The user running the application is actually in another state. It works fine for me in Windows2000 and Windows98 with LV 6.1. I did confirm from them that yes, there is an error code 2 in the System Exec.vi.

The vi is launching an *.exe with command line arguments. The exact command works in a DOS window and returns the exepected information in the standard output.

The working directory input is set to the path for this vi

The standard input is set to 10 "\n" (new lines). I honestly can't remember why. Hmmm?

expected output size is 4096

wait until completion is TRUE

run minimized? is TRUE

The user is now going to copy the application to a Windows2000 machine with LV 6.1 and test that.

 

0 Kudos
Message 4 of 4
(2,779 Views)