Running a batch file MATLAB - DIANA TNO

4 views (last 30 days)
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
Lisandro Jimenez
Lisandro Jimenez on 19 Oct 2016
Edited: Lisandro Jimenez on 19 Oct 2016
Dear Isakson,
I tried what you asked before, using the following command:
[status,cmdout] = system( fullfile(path,'filename.bat' ) );
This is what I obtained:
Now I'm thinking if perhaps it is related with the computer performance, which basic specifications can be found following:
  • Operative system Windows 7 Enterprise, 64 bits.
  • 16 Gb of memory RAM.
  • 4 Processors Intel® Xeon® 3.10 GHz.
As additional information, I may to say that the same routing was performed from Octave, and there was no problem, nevertheless, I would like to find a solution for MATLAB. Thanks in advance for any suggestion.
per isakson
per isakson on 21 Oct 2016
Edited: per isakson on 21 Oct 2016
"performed from Octave, and there was no problem" &nbsp I find that hard to believe.
nl41.exe &nbsp is part of Diana and mentioned several times in the manual
"related with the computer performance" &nbsp did you watch the Windows Task Manager when running Diana from Matlab?

Sign in to comment.

Answers (1)

Rolando Jose Alvarado Funes
Does anyone solved this issue? I'm having exactly the same problem....

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!