필터 지우기
필터 지우기

Unable to launch ANSYS v192 APDL from MATLAB

조회 수: 3 (최근 30일)
Lara Vettorazzi
Lara Vettorazzi 2021년 12월 13일
편집: Bhanu Prakash 2024년 5월 29일
Hello,
I want to run ANSYS APDL code from MATLAB. When I insert the following line:
dos('ansys192 -b -i input_file.dat -o output2.txt');
However, I get the following error: 'Launch' is not recognized as an internal or external command, operable program or batch file. I have the same problem when I add "ansys_path = 'C:\Program Files\ANSYS Inc\v192\ansys\bin\winx64\ANSYS192.exe' " instead of just "ansys192".
What does this error mean exactly, and how do I get it to work?

답변 (1개)

Bhanu Prakash
Bhanu Prakash 2024년 5월 28일
편집: Bhanu Prakash 2024년 5월 29일
Hi Lara,
The error that you are encountering might occur when the command prompt is unable to recognize 'ansys192' or when the path to the executable is invalid. To troubleshoot this error, you can try the below-mentioned steps:
  1. Verify that the executable 'ANSYS192.exe' is present in the path mentioned.
  2. Verify that there are no typos in the path and the file names.
  3. Run 'MATLAB' as an administrator to make sure that MATLAB has the required permissions to run ANSYS.
  4. You can try using 'system' instead, which perfroms the same functionality as 'dos', by referring to the following documentation: https://www.mathworks.com/help/matlab/ref/system.html
Hope this helps!

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by