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

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

More Answers (3)

I met the same problem. Have you solved it?

1 Comment

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.

Sign in to comment.

Check this out, might be helpful. https://youtu.be/sE3NkH1m24w%20 using MATLAB to run (ANSYS) APDL macro code

Categories

Community Treasure Hunt

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

Start Hunting!