Why shows error for connecting Matlab with Aspen Plus ?
조회 수: 13 (최근 30일)
이전 댓글 표시
I'm trying to use the command
Aspen = actxserver('Apwn.Document.39.0'); %34.0 ---> V8.8; 35.0 ---> V9.0; and 36.0 ---> V10.0
to connect aspen plus and Matlab. It works fine when I changed it to HYSYS. But it keeps showing the following error :
Error using feval
Server Creation Failed: Server execution failed
Error in actxserver (line 89)
h=feval(['COM.' convertedProgID], 'server', machinename, interface);
Error in AspenPlus_Matlab_Link (line 5)
Aspen = actxserver('Apwn.Document.39.0'); %34.0 ---> V8.8; 35.0 ---> V9.0; and 36.0 ---> V10.0
Could any one help me on this? It is reallt important for me.
Best regards,
Wanrong
댓글 수: 2
Walter Roberson
2023년 4월 11일
Are you using V12.1 ?
The format you are using, actxserver('Apwn.Document.39.0') does look plausible
답변 (1개)
Manikanta Aditya
2023년 4월 28일
Hi Wanrong,
As per my understanding, you tried running the above command to connect MATLAB and Aspen Plus and got an error ‘Server creation failed: Server Execution failed’.
The error could not be from MATLAB, but rather from windows produced error.
You can check the following MATLAB Answer to resolve the error:
I hope this resolves the issue you were facing.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!