Hi! When I try to link Matlab with hysys, error message occurs:

3 views (last 30 days)
Hi! When I try to link Matlab with hysys, error message occurs:
h=actxserver('HYSYS.Application');
Error using actxserver (line 93)
Server creation failed. Invalid ProgID 'HYSYS.Application'.
What can I do?
Thanks!

Answers (1)

Guillaume
Guillaume on 13 Dec 2018
The error message is a bit misleading. The ProgID is indeed valid (at least for my version of Aspen Hysys). However. the error you're seeing comes from Windows, not matlab.
There can be several reason for this type of error:
  • The progID is indeed invalid. That shouldn't be the case for you but just in case check in the documentation of Hysys that you've got the correct progID. Note that progID are not case sensitive.
  • Aspen Hysis is not installed. Then of course, you can't talk to it.
  • The COM component of Aspen Hysis is not registered correctly. The installer normally registers it, but maybe that didn't happen. In that case, you would have to look through the documentation of Hysis for how to register it.

Community Treasure Hunt

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

Start Hunting!