LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why doesn't Open/Create... work with Exec?

The attached VI reads an EXE file and feeds the results to "System Exec.vi" -- it doesn't work.  When I write the same string to an INI file, retrieve and pass it back into "System Exec.vi", it works.

What's up with that?

   ...Dan
0 Kudos
Message 1 of 3
(2,563 Views)
You should not be trying to open the file as if you were going to edit it. All you need is the File Dialog function to get a path.
Message 2 of 3
(2,558 Views)
There is no reason to open the file, but if you do, you should close it before calling sytem exec (or open the file in read-only mode). This eliminates the error.
 
Of course the right way to do this is using a file dialog (as Dennis already mentioned). See attached (LabVIEW 7.0).

Message Edited by altenbach on 08-31-2005 02:46 PM

Message 3 of 3
(2,549 Views)