LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

system exec+ problem

I'm using the system exec+ file to read in a msdos executable into labview, and to have it stay open until the user exits. Whats happening now is that when its reading in my program (awc.exe), it pops up an error message (in dos) that says "cannot find fonts." The font files are in the directory (c:\awc) with the executable. Do I need to link the font files somehow to awc.exe, or is this being caused by some other problem?
0 Kudos
Message 1 of 3
(3,007 Views)
jdaltonnal wrote:

> I'm using the system exec+ file to read in a msdos executable into
> labview, and to have it stay open until the user exits. Whats
> happening now is that when its reading in my program (awc.exe), it
> pops up an error message (in dos) that says "cannot find fonts." The
> font files are in the directory (c:\awc) with the executable. Do I
> need to link the font files somehow to awc.exe, or is this being
> caused by some other problem?

Not sure about your awc.exe prog but I have had similar problems with
other exe progs.
The awc program is probably expecting c:\awc is set as the dos current
directory; I don't think exec+ does this.
Try this:
Open a dos session manually in Windows.
Don't change directory; keep the default one dos gives you.
Type in the
command you are passing to exec+; maybe c:\awc\awc.exe (or
just awc.exe if c:\awc has been set in your path?) What happens?. Same
problem? So now try running awc.exe again but first change to c:\awc
directory. Does it now work ok. If so you need to set c:\awc as the
working directory from within exec+. To complicate things you must set
this current directory in the same dos session as awc.exe is called so
you can't do this by running two exec+ commands.

I use the following technique. Write a .bat (just a text file saved with
the file extension .bat). You could call this awc.bat
In this file put something like:
c:
cd \awc
awc.exe

then call exec+ to execute awc.bat instead of awc.exe
You will need to tell exec+ to wait for execution to finish but I guess
you already know that.

Hope this works for you.
Dave.
0 Kudos
Message 2 of 3
(3,007 Views)
What I did was specify the directory (c:\awc) in the working directory box. Then the filename was just \awc.exe. This works, so I didn't have to write a bat file, but I understand how that works. Thanks for you help.
0 Kudos
Message 3 of 3
(3,007 Views)