Why shows error for connecting Matlab with Aspen Plus ?
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
am 11 Apr. 2023
Are you using V12.1 ?
The format you are using, actxserver('Apwn.Document.39.0') does look plausible
Antworten (1)
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Use COM Objects in MATLAB 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!