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

3 ビュー (過去 30 日間)
Sanjar Mighty
Sanjar Mighty 2018 年 12 月 13 日
回答済み: Guillaume 2018 年 12 月 13 日
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!

回答 (1 件)

Guillaume
Guillaume 2018 年 12 月 13 日
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.

カテゴリ

Help Center および File ExchangeUse COM Objects in MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by