Running a batch file MATLAB - DIANA TNO
4 views (last 30 days)
Show older comments
Currently, I'm working with a finite element software called DIANA, I've been always capable of running "simple" models with MATLAB executing a batch file. Nevertheless, now I'm starting to use more "complex" models (just more robust, with more elements), but the procedure is exactly the same to the one that I've been using before. The problem is that now I can't run the model from MATLAB, it apparently start to run it, but stops suddenly. I'm using the next commands:
dos('path\filename.bat')
or
system(fullfile(path,'filename.bat' ))
Both lines execute the .bat file. I thought that I had something wrong with the files, so I reviewed them but apparently there's nothing wrong with them. Then I just made double click on the .bat file, and the procedure runs without problems. Then I realized that the problem wasn't the files, it was the execution from MATLAB. Now that you know the context of the problem, can you giving me some advice in order to avoid that MATLAB "kills" the process internally?
I'm changing the current directory with MATLAB in order to execute the batch file in the same folder.
The trace of execution showed in MATLAB:
diana: working directory is *CURRENT DIRECTORY NAME*
diana: input file is *FILENAME*.dat
diana: command file is *FILENAME*.dcf
diana: output file is *FILENAME*.out
diana: filos file is diana.ff
DIANA JOB 8028 finished
The trace execution making directly double click in the batch file is the following:

In the remarked files showed in the previous figure, are contained the output of the model, while executing directly from MATLAB, those don't appear, because MATLAB finish the process before.
Thanks in advance for any answer!
Pd: I'm using a computer with the next characteristics: Windows7, 12 Gb RAM, OS 64bits, Processor Intel Xeon 2.53 GHz.
6 Comments
per isakson
on 21 Oct 2016
Edited: per isakson
on 21 Oct 2016
"performed from Octave, and there was no problem"   I find that hard to believe.
"related with the computer performance"   did you watch the Windows Task Manager when running Diana from Matlab?
Answers (1)
Rolando Jose Alvarado Funes
on 21 Jul 2022
Does anyone solved this issue? I'm having exactly the same problem....
0 Comments
See Also
Categories
Find more on Search Path in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!