I get message "ANSYS Program has stopped working" when I try to run Ansys by Matlab!

조회 수: 8 (최근 30일)
I prepare a matlab code that has to use Ansys somewhere. I tried following lines;
dos('"C:\Program Files\ANSYS Inc\v140\ANSYS\bin\winx64\ansys140.exe" -p ane3fl -dir "C:\..." -b -i "C:\..\input.txt" -o "C:\...\file.out"')
%
!"C:\Program Files\ANSYS Inc\v140\ANSYS\bin\winx64\ansys140.exe" -p ane3fl -dir "C:\..." -b -i "C:\..\input.txt" -o "C:\...\file.out"
This line works properly on command prompt. But in Matlab (R2014b), Ansys stops working immediately.
I even try to write cmd lines as *.bat file and call it to Matlab however it doesn't work.
How can I fix this problem?
Thanks

채택된 답변

Sarah Palfreyman
Sarah Palfreyman 2017년 1월 10일
See ANSYS for the MATLAB AAS Toolbox interface.

추가 답변 (3개)

Dan Li
Dan Li 2015년 11월 9일
I met the same problem. Have you solved it?
  댓글 수: 1
Enes Tunca
Enes Tunca 2015년 11월 9일
That is still unsolved. I skip to seeking an answer for this situation, I just uninstall the current Matlab and install version R2013a. That solved my problem more quickly.

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2015년 11월 9일
Use Dependency Walker on ANSYS outside of MATLAB to find out which C or C++ libraries it needs. Then when you set up the dos() or system() command inside MATLAB, set up the environment so that the directory is on the search path; more on that in https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586%28v=vs.85%29.aspx and http://stackoverflow.com/questions/694351/setting-library-path-for-win32-console-applications

Akshay Kumar
Akshay Kumar 2018년 6월 13일
편집: Geoff Hayes 2018년 6월 14일
Check this out, might be helpful. https://youtu.be/sE3NkH1m24w%20 using MATLAB to run (ANSYS) APDL macro code

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by