I have a model in DIANA TNO, and I was wondering if perhaps exist a way to execute the software from Python (more information click here) or MATLAB?

The final idea is to be able to create projects / create and run analysis / process the results from MATLAB and/or Python.

Honestly I haven't found helpful information about it, any contribution will be welcome.

Thanks in advance!

up vote 1 down vote accepted

I found the answer, and I hope this be helpful for whatever could be your purposes.

There are the steps:

  1. Create a .bat with the next information (for creating the .bat, just open a Notepad file and after save it, just change the extension to .bat):
rem === Diana Environment Setup ===
call "C:\Program Files\Diana 9.6\dialogin.bat"

diana q8axi
  1. Create a .dat, where basically has the information of your model, here is an example.

  2. Create a .dcf, where is specified the detail of the analysis that you want to perform. Here is and example.

  3. In MATLAB, create an script with the next information:

clc, clear all, close all
dos('NAME.bat')

Note: It's very important take into account that all the previous files (.bat .dat .dcf) got to have the same NAME.

  1. Finally, just save and run the Matlab file in the same folder where are located the others files.

Now you are able run a parametric analysis between MATLAB and DIANA TNO.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.