execute .exe files in a loop

  • Follow


Hi
I am running a file 'simulator.exe' (a compiled Fortran program) in Matlab which reads data from an input text file and sends the results to an output text file. I have written an M-file which changes the specific parameters in the input file and then runs the .exe file which is running fine.
The problem is I want to run the .exe file numerous times in a loop but each run of the loop I want to change different parameters in the input file.
Any help would be great
1
Reply phillo 1/26/2011 11:13:03 AM

On Jan 26, 12:13=A0pm, "phillo " <kevintarran...@gmail.com> wrote:
> Hi
> I am running a file 'simulator.exe' (a compiled Fortran program) in Matla=
b which reads data from an input text file and sends the results to an outp=
ut text file. I have written an M-file which changes the specific parameter=
s in the input file and then runs the .exe file which is running fine.
> The problem is I want to run the .exe file numerous times in a loop but e=
ach run of the loop I want to change different parameters in the input file=
..
> Any help would be great

Hi

And what is the problem you are having? Should the call to the .exe
keep blocking the execution after the first call? You should be a
little more specific about your description I guess.

Peter
1
Reply ISO 1/26/2011 1:53:50 PM


1 Replies
267 Views

(page loaded in 0.043 seconds)

Similiar Articles:













7/23/2012 10:00:47 PM


Reply: