Filter löschen
Filter löschen

Why shows error for connecting Matlab with Aspen Plus ?

39 Ansichten (letzte 30 Tage)
wanrong wang
wanrong wang am 11 Apr. 2023
Beantwortet: Manikanta Aditya am 28 Apr. 2023
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 Kommentare
Walter Roberson
Walter Roberson am 11 Apr. 2023
Are you using V12.1 ?
The format you are using, actxserver('Apwn.Document.39.0') does look plausible
wanrong wang
wanrong wang am 11 Apr. 2023
Yes, I am using V12.1

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Manikanta Aditya
Manikanta Aditya am 28 Apr. 2023
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.

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by