Borrar filtros
Borrar filtros

Why shows error for connecting Matlab with Aspen Plus ?

39 visualizaciones (últimos 30 días)
wanrong wang
wanrong wang el 11 de Abr. de 2023
Respondida: Manikanta Aditya el 28 de Abr. de 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 comentarios
Walter Roberson
Walter Roberson el 11 de Abr. de 2023
Are you using V12.1 ?
The format you are using, actxserver('Apwn.Document.39.0') does look plausible
wanrong wang
wanrong wang el 11 de Abr. de 2023
Yes, I am using V12.1

Iniciar sesión para comentar.

Respuestas (1)

Manikanta Aditya
Manikanta Aditya el 28 de Abr. de 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.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by